openflights-data-git

maintainer dreieck · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads data files and licenses from non-whitelisted but project-owned hosts (github.com, openflights.org); these are non-executable data assets, so the worst case of a swapped source is data tampering, not code execution.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 90%): The package downloads data files and licenses from non-whitelisted but project-owned hosts (github.com, openflights.org); these are non-executable data assets, so the worst case of a swapped source is data tampering, not code execution.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:14 url="http://openflights.org/data"
  • PKGBUILD:43 "License_ODbL_1.0.html::http://opendatacommons.org/licenses/odbl/1.0/"

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: dreieck
2
3# PKGBUILD last time manually edited: At least on 2025-09-08.
4
5_gitname=openflights
6_pkgname="${_gitname}-data"
7pkgname="${_pkgname}-git"
8epoch=0
9_pkgver=latest
10pkgver=r35.20200131
11pkgrel=2
12pkgdesc="Airport, train station, ferry terminal, airline and flight routes data as CSV files to be used e.g. in GIS-applications."
13arch=(any)
14url="http://openflights.org/data"
15license=(
16 'ODbL-1.0'
17 'LicenseRef-DbCL-1.0'
18)
19
20groups=(
21 "openflights"
22)
23
24depends=()
25makedepends=(
26 'git'
27)
28replaces=(
29 "${_pkgname}-latest"
30)
31optdepends=()
32
33provides=(
34 "${_pkgname}=${pkgver}"
35)
36conflicts=(
37 "${_pkgname}"
38)
39
40source=(
41 "${_gitname}::git+https://github.com/jpatokal/openflights.git"
42 "info.html::http://openflights.org/data"
43 "License_ODbL_1.0.html::http://opendatacommons.org/licenses/odbl/1.0/"
44 "License_DbCL_1.0.html::http://opendatacommons.org/licenses/dbcl/1.0/"
45)
46
47sha256sums=(
48 'SKIP'
49 'SKIP'
50 'SKIP'
51 'SKIP'
52)
53
54prepare() {
55 cd "${srcdir}/${_gitname}"
56
57 git log data/*.dat > git.log
58
59 echo "${url}" > "info.url"
60}
61
62pkgver() {
63 cd "${srcdir}/${_gitname}"
64
65 _rev="$(git rev-list --count HEAD data/*.dat)"
66 _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad" data/*.dat)"
67
68 if [ -z "${_rev}" ]; then
69 error "Could not determine git commit count of 'data/*.dat'."
70 return 1
71 else
72 printf '%s' "r${_rev}.${_date}"
73 fi
74}
75
76package() {
77 _instdirbase='/opt/openflights-data'
78 _instdir="${pkgdir}/${_instdirbase}"
79 _docdirbase="/usr/share/doc/${_pkgname}"
80 _docdir="${pkgdir}/${_docdirbase}"
81 _licensedirbase="/usr/share/licenses/${pkgname}"
82 _licensedir="${pkgdir}/${_licensedirbase}"
83
84 cd "${srcdir}/${_gitname}"
85
86
87# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat"
88# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports-extended.dat"
89# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports-dafif.dat"
90# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airlines.dat"
91# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/routes.dat"
92# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/countries.dat"
93# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/locales.dat"
94
95 install -Dvm644 -t "${_instdir}" "data"/*.dat
96
97 install -Dvm644 -t "${_docdir}" "${srcdir}/info.html"
98 install -Dvm644 -t "${_docdir}" git.log info.url
99
100 install -Dvm644 -t "${_licensedir}" "${srcdir}"/License_{ODbL,DbCL}_1.0.html
101}
102

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion