ttf-google-thai
maintainer Fulmene
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads Thai font files from Google Fonts' official infrastructure (fonts.gstatic.com) based on a local list; the worst case of a swapped source is limited to non-executable font data, posing no code execution risk.
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 95%): The package downloads Thai font files from Google Fonts' official infrastructure (fonts.gstatic.com) based on a local list; the worst case of a swapped source is limited to non-executable font data, posing no code execution risk.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:24
HINT="$(curl "$REQUEST" 2> /dev/null | grep 'https://fonts.gstatic.com')"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Ada Joule <ada dot fulmina at gmail dot com>
2
3
pkgname=ttf-google-thai
4
pkgver=1.0.0
5
pkgrel=1
6
epoch=
7
pkgdesc="Some of the best Thai fonts from google"
8
arch=('any')
9
url="https://fonts.google.com/"
10
license=('OFL')
11
makedepends=(curl wget)
12
source=('fonts.txt')
13
md5sums=('SKIP')
14
15
build() {
16
cd "$srcdir"
17
mkdir -p fonts
18
cat fonts.txt | while read LINE
19
do
20
if ! test -r "fonts/$LINE.ttf" && test -n "$LINE"
21
then
22
echo "Downloading $LINE"
23
REQUEST="https://fonts.googleapis.com/css?family=$(echo "$LINE" | sed 's# #+#g')"
24
HINT="$(curl "$REQUEST" 2> /dev/null | grep 'https://fonts.gstatic.com')"
25
URL="$(echo "$HINT" | sed 's#^.*url(\([^)]*\)).*$#\1#')"
26
wget -q "$URL" -O "fonts/$LINE.ttf"
27
fi
28
done
29
}
30
31
package() {
32
install -dm 755 "$pkgdir/usr/share/fonts/TTF"
33
install -Dm 644 "$srcdir/fonts/"*.ttf "$pkgdir/usr/share/fonts/TTF"
34
}
35
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |