unmined-gui

MEDIUM
maintainer lapsus 3 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package downloads a prebuilt .deb from the project's official domain but uses an unverifiable URL pattern and skips source integrity checks beyond the deb's internal hash, creating a supply-chain risk if the download endpoint is compromised.

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:21 tmstv=$(curl -fsSL 'https://unmined.net/downloads/' 2>/dev/null |
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 source=("unmined-gui-dev_amd64.deb::https://unmined.net/download/unmined-gui-linuxdeb-x64-dev/")
Medium AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 95%): The package downloads a prebuilt .deb from the project's official domain but uses an unverifiable URL pattern and skips source integrity checks beyond the deb's internal hash, creating a supply-chain risk if the download endpoint is compromised.

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: Yakov Till <yakov.till@gmail.com>
2# Contributor: Maciej Dems <macdems@gmail.com>
3pkgname=unmined-gui
4pkgver=0.20.11.20261005
5pkgrel=1
6pkgdesc="An easy to use and fast Minecraft world viewer and mapper tool"
7arch=('x86_64')
8url="https://unmined.net/"
9depends=('fontconfig' 'gcc-libs' 'glibc')
10makedepends=('zstd')
11license=('LicenseRef-unmined')
12# Upstream bundle fails to launch if stripped.
13options=('!strip' '!debug')
14source=("unmined-gui-dev_amd64.deb::https://unmined.net/download/unmined-gui-linuxdeb-x64-dev/")
15sha256sums=('147e7b0da7dcda2e66a579ca1b42e29991353955a06dcf544eba9ec245355eb8')
16
17latestver() {
18 local tmp ver ctrl_size tmstv stamp
19
20 # tmstv cache-buster on the downloads page encodes the build timestamp.
21 tmstv=$(curl -fsSL 'https://unmined.net/downloads/' 2>/dev/null |
22 sed -nE 's#.*href="https://unmined.net/download/unmined-gui-linuxdeb-x64-dev/\?tmstv=([0-9]+)".*#\1#p' |
23 head -1)
24 [[ -n ${tmstv} ]] || return 1
25 stamp=$(date -u -d "@${tmstv}" +%Y%m%d 2>/dev/null) || return 1
26
27 tmp=$(mktemp) || return 1
28 trap 'rm -f "$tmp"' RETURN
29
30 # ar(5) .deb partial read: 132-byte fixed prefix → parse control.tar.zst
31 # body size from ar header → read exactly that many more bytes (~500 B total).
32 curl -fsSL 'https://unmined.net/download/unmined-gui-linuxdeb-x64-dev/' 2>/dev/null | {
33 dd bs=1 count=132 iflag=fullblock of="$tmp" 2>/dev/null
34 ctrl_size=$(dd if="$tmp" bs=1 skip=120 count=10 2>/dev/null | tr -d ' ')
35 [[ -n "$ctrl_size" && "$ctrl_size" -gt 0 ]] 2>/dev/null || exit 1
36 dd bs=1 count="$ctrl_size" iflag=fullblock >>"$tmp" 2>/dev/null
37 }
38
39 ver=$(bsdtar -xOf "$tmp" control.tar.zst 2>/dev/null |
40 tar --zstd -xOf - ./control 2>/dev/null |
41 sed -nE 's/^Version: ([0-9.]+)-dev$/\1/p')
42 [[ -n ${ver} ]] || return 1
43
44 printf '%s.%s\n' "$ver" "$stamp"
45}
46
47prepare() {
48 mkdir -p "$srcdir/extracted"
49 cd "$srcdir/extracted"
50 tar --use-compress-program=unzstd -xf "$srcdir/data.tar.zst"
51}
52
53package() {
54 cd "$srcdir/extracted"
55 cp -a usr opt "$pkgdir/"
56 chmod +x "$pkgdir/opt/unmined/unmined"
57 chmod +x "$pkgdir/opt/unmined/"*.so
58 install -D -m644 opt/unmined/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
59
60 # Fix desktop file to set correct working directory
61 sed -i 's/^Path=$/Path=\/opt\/unmined/' "$pkgdir/usr/share/applications/uNmINeD.desktop"
62}
63

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Medium 3
2026-10-31 00:07:41 Medium 3
2026-10-30 00:29:30 Medium 3
2026-10-29 00:13:55 Medium 3
2026-10-28 00:06:54 Medium 3
2026-10-27 00:23:28 Medium 3
2026-10-26 00:12:40 Medium 3
2026-10-25 00:20:48 Medium 3
2026-10-24 00:14:55 Medium 3
2026-10-23 00:02:19 Medium 3
2026-10-22 00:13:10 Medium 3
2026-10-21 00:12:50 Medium 3
2026-10-20 00:10:31 Medium 3
2026-10-19 00:03:55 Medium 3
2026-10-18 00:06:55 Medium 3
2026-10-17 00:21:55 Medium 3
2026-10-16 00:12:47 Medium 3
2026-10-15 00:28:05 Medium 3
2026-10-14 00:06:47 Medium 3
2026-10-13 00:23:45 Medium 3

Report a package

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

0 / 4000
Your suggestion