heidisql
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
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
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# Maintainer: Nico <d3sox at protonmail dot com>
# Contributor: Liviu Cristian Mirea-Ghiban <liviu dot mirea at wecodepixels dot com>
pkgname=heidisql
epoch=1
pkgver=12.20
pkgrel=1
pkgdesc="HeidiSQL Shared files: wrapper script, locale/ini files, documentation (install a provider of your choice for heidisql-client to use it)"
arch=(x86_64)
url="http://www.heidisql.com/"
license=('GPL-2.0-or-later')
optdepends=('heidisql-qt6: Qt6 variant'
'heidisql-gtk2: GTK2 variant')
makedepends=(curl unzip)
install=heidisql.install
source=(
"https://github.com/HeidiSQL/HeidiSQL/archive/v${pkgver}.tar.gz"
heidisql
)
sha256sums=('04e82a09aedb60647406c435cf355d9f1539ea1ee2f045b6b51d70fd4c038753'
'cb084209a5ce3270a2888bf93c8a5adb6f714eda487ad13a50512ac538b3fc87')
prepare() {
cd "${srcdir}/HeidiSQL-${pkgver}"
# Fetch compiled translations from the daily Transifex snapshots served by heidisql.com
local locale_zip="HeidiSQL-locale.zip"
local locale_dir="${srcdir}/HeidiSQL-${pkgver}/extra/locale"
mkdir -p "${locale_dir}"
curl -fsSL "https://www.heidisql.com/downloads/locale/${locale_zip}" -o "/tmp/${locale_zip}" || exit 1
unzip -o -j "/tmp/${locale_zip}" -d "${locale_dir}"
rm -f "/tmp/${locale_zip}"
}
package() {
cd "${srcdir}/HeidiSQL-${pkgver}"
# Install shared locale files
if [ -d "extra/locale" ]; then
mkdir -p "${pkgdir}/usr/share/heidisql/locale"
for mo_file in extra/locale/*.mo; do
[ -f "$mo_file" ] && install -Dm644 "$mo_file" "${pkgdir}/usr/share/heidisql/locale/$(basename "$mo_file")"
done
fi
# Install shared ini files
mkdir -p "${pkgdir}/usr/share/heidisql"
install -Dm644 extra/ini/*.ini "${pkgdir}/usr/share/heidisql/"
# Install icon
install -Dm644 res/deb-package-icon.png "${pkgdir}/usr/share/pixmaps/heidisql.png"
# Install documentation
mkdir -p "${pkgdir}/usr/share/doc/heidisql"
install -Dm644 README.md "${pkgdir}/usr/share/doc/heidisql/"
install -Dm644 LICENSE "${pkgdir}/usr/share/doc/heidisql/"
install -Dm644 package-skeleton/usr/share/doc/heidisql/copyright "${pkgdir}/usr/share/doc/heidisql/"
# Install wrapper script that selects the appropriate variant
install -Dm755 "${srcdir}/heidisql" "${pkgdir}/usr/bin/heidisql"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |