heidisql

MEDIUM
maintainer D3SOX 54 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The prepare() function downloads a locale archive from an untrusted host (heidisql.com) not listed in source=(), which is not verifiable and could be silently swapped, posing a supply-chain risk for non-executable data.

Triggered rules

Medium External download from an untrusted host, not in source=() external_download_not_in_source

curl/wget fetches a URL on a non-allowlisted host that is not part of source=(), so it is not checksum-verified by makepkg.

  • PKGBUILD:30 curl -fsSL "https://www.heidisql.com/downloads/locale/${locale_zip}" -o "/tmp/${locale_zip}" || exit 1
Medium AI review llm_review

An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is MEDIUM (confidence 90%): The prepare() function downloads a locale archive from an untrusted host (heidisql.com) not listed in source=(), which is not verifiable and could be silently swapped, posing a supply-chain risk for non-executable data.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Nico <d3sox at protonmail dot com>
2# Contributor: Liviu Cristian Mirea-Ghiban <liviu dot mirea at wecodepixels dot com>
3pkgname=heidisql
4epoch=1
5pkgver=12.20
6pkgrel=1
7pkgdesc="HeidiSQL Shared files: wrapper script, locale/ini files, documentation (install a provider of your choice for heidisql-client to use it)"
8arch=(x86_64)
9url="http://www.heidisql.com/"
10license=('GPL-2.0-or-later')
11optdepends=('heidisql-qt6: Qt6 variant'
12 'heidisql-gtk2: GTK2 variant')
13makedepends=(curl unzip)
14install=heidisql.install
15
16source=(
17 "https://github.com/HeidiSQL/HeidiSQL/archive/v${pkgver}.tar.gz"
18 heidisql
19)
20sha256sums=('04e82a09aedb60647406c435cf355d9f1539ea1ee2f045b6b51d70fd4c038753'
21 'cb084209a5ce3270a2888bf93c8a5adb6f714eda487ad13a50512ac538b3fc87')
22
23prepare() {
24 cd "${srcdir}/HeidiSQL-${pkgver}"
25
26 # Fetch compiled translations from the daily Transifex snapshots served by heidisql.com
27 local locale_zip="HeidiSQL-locale.zip"
28 local locale_dir="${srcdir}/HeidiSQL-${pkgver}/extra/locale"
29 mkdir -p "${locale_dir}"
30 curl -fsSL "https://www.heidisql.com/downloads/locale/${locale_zip}" -o "/tmp/${locale_zip}" || exit 1
31 unzip -o -j "/tmp/${locale_zip}" -d "${locale_dir}"
32 rm -f "/tmp/${locale_zip}"
33}
34
35package() {
36 cd "${srcdir}/HeidiSQL-${pkgver}"
37
38 # Install shared locale files
39 if [ -d "extra/locale" ]; then
40 mkdir -p "${pkgdir}/usr/share/heidisql/locale"
41 for mo_file in extra/locale/*.mo; do
42 [ -f "$mo_file" ] && install -Dm644 "$mo_file" "${pkgdir}/usr/share/heidisql/locale/$(basename "$mo_file")"
43 done
44 fi
45
46 # Install shared ini files
47 mkdir -p "${pkgdir}/usr/share/heidisql"
48 install -Dm644 extra/ini/*.ini "${pkgdir}/usr/share/heidisql/"
49
50 # Install icon
51 install -Dm644 res/deb-package-icon.png "${pkgdir}/usr/share/pixmaps/heidisql.png"
52
53 # Install documentation
54 mkdir -p "${pkgdir}/usr/share/doc/heidisql"
55 install -Dm644 README.md "${pkgdir}/usr/share/doc/heidisql/"
56 install -Dm644 LICENSE "${pkgdir}/usr/share/doc/heidisql/"
57 install -Dm644 package-skeleton/usr/share/doc/heidisql/copyright "${pkgdir}/usr/share/doc/heidisql/"
58
59 # Install wrapper script that selects the appropriate variant
60 install -Dm755 "${srcdir}/heidisql" "${pkgdir}/usr/bin/heidisql"
61}
62

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Medium 2
2026-09-16 00:03:17 Medium 2
2026-09-15 00:25:31 Medium 2
2026-09-14 00:27:57 Medium 2
2026-09-13 00:19:54 Medium 2
2026-09-12 00:25:17 Medium 2
2026-09-11 00:19:22 Medium 2
2026-09-10 00:22:44 Medium 2
2026-09-09 00:04:09 Medium 2
2026-09-08 00:18:08 Medium 2
2026-09-07 00:30:15 Medium 2
2026-09-06 00:17:06 Medium 2
2026-09-05 00:16:27 Medium 2
2026-09-04 00:03:13 Medium 2
2026-09-03 00:15:47 Medium 2
2026-09-02 00:02:31 Medium 2
2026-09-01 00:11:19 Medium 2
2026-08-31 00:19:57 Medium 2
2026-08-30 00:04:14 Medium 2
2026-08-29 00:29:17 Medium 2

Report a package

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

0 / 4000
Your suggestion