squid4

maintainer orphaned · 1 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The PKGBUILD fetches a patch at build time via wget from raw.githubusercontent.com/bar0metr/squid/master/client_side_request.patch — a personal GitHub repository owned by the maintainer — with no checksum verification (all sha256sums are 'SKIP', and the patch itself isn't even listed in source[]). This is a genuine supply-chain concern: the patch is fetched dynamically during prepare(), bypassing makepkg's integrity checking entirely. If the maintainer's GitHub account were compromised, or if the branch were force-pushed, arbitrary code could be injected into the Squid source before compilation. The patch is applied to C++ source that is then compiled and installed as a privileged network daemon, so the impact of a malicious substitution would be significant (RCE potential). The primary sources also all have 'SKIP' checksums, compounding the integrity problem. This is a real, if not clearly malicious, supply-chain risk — correctly rated MEDIUM.

Triggered rules

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:17 source=("http://www.squid-cache.org/Versions/v4/squid-$pkgver.tar.xz"
MEDIUM AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 88%): The PKGBUILD fetches a patch at build time via wget from raw.githubusercontent.com/bar0metr/squid/master/client_side_request.patch — a personal GitHub repository owned by the maintainer — with no checksum verification (all sha256sums are 'SKIP', and the patch itself isn't even listed in source[]). This is a genuine supply-chain concern: the patch is fetched dynamically during prepare(), bypassing makepkg's integrity checking entirely. If the maintainer's GitHub account were compromised, or if the branch were force-pushed, arbitrary code could be injected into the Squid source before compilation. The patch is applied to C++ source that is then compiled and installed as a privileged network daemon, so the impact of a malicious substitution would be significant (RCE potential). The primary sources also all have 'SKIP' checksums, compounding the integrity problem. This is a real, if not clearly malicious, supply-chain risk — correctly rated MEDIUM.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: bar0metr <admin@os-admin.ru>
2pkgname=squid4
3pkgver=4.13
4pkgrel=4
5pkgdesc='Full-featured Web proxy cache server with the support SSL, eCAP, iCAP-client. Include patches for normal work with cache, long url`s and CDN.'
6arch=('x86_64')
7url='http://www.squid-cache.org'
8depends=('openssl' 'libecap' 'libnetfilter_conntrack' 'pam' 'perl' 'libltdl' 'libcap' 'nettle' 'gnutls' 'libnsl' 'gperftools' 'libbsd')
9makedepends=('krb5')
10conflicts=('squid' 'squid4' 'squid5')
11license=('GPL')
12options=('emptydirs')
13backup=('etc/squid/squid.conf'
14 'etc/squid/cachemgr.conf'
15 'etc/squid/errorpage.css'
16 'etc/squid/mime.conf')
17source=("http://www.squid-cache.org/Versions/v4/squid-$pkgver.tar.xz"
18 'squid.pam'
19 'squid.service'
20 'squid.tmpfiles'
21 'squid.sysusers'
22 'squid-rotate.service'
23 'squid-rotate.timer')
24
25sha256sums=('SKIP'
26 'SKIP'
27 'SKIP'
28 'SKIP'
29 'SKIP'
30 'SKIP'
31 'SKIP')
32
33
34prepare() {
35 cd "$srcdir/squid-$pkgver"
36 msg "Preparing Squid..."
37 msg2 "Getting the client_side_request patch (for work with CDN)..."
38 wget https://raw.githubusercontent.com/bar0metr/squid/master/client_side_request.patch
39 msg2 "Patching Squid (client_side_request)"
40 patch -p0 -i client_side_request.patch
41 msg2 "Done!"
42}
43
44build() {
45 cd "$srcdir/squid-$pkgver"
46
47 PKG_CONFIG_PATH=/usr/lib \
48 ./configure \
49 --prefix=/usr \
50 --sbindir=/usr/bin \
51 --datadir=/usr/share/squid \
52 --sysconfdir=/etc/squid \
53 --libexecdir=/usr/lib/squid \
54 --localstatedir=/var \
55 --with-logdir=/var/log/squid \
56 --with-pidfile=/run/squid.pid \
57 --enable-ecap \
58 --enable-icap-client \
59 --enable-auth \
60 --enable-auth-basic \
61 --disable-auth-ntlm \
62 --disable-auth-digest \
63 --enable-auth-negotiate \
64 --enable-removal-policies="lru,heap" \
65 --enable-storeio="ufs,aufs,diskd,rock" \
66 --enable-delay-pools \
67 --enable-arp-acl \
68 --enable-zph-qos \
69 --with-netfilter-conntrack \
70 --with-openssl=/usr/include/openssl \
71 --enable-snmp \
72 --enable-linux-netfilter \
73 --enable-ident-lookups \
74 --enable-useragent-log \
75 --enable-cache-digests \
76 --enable-referer-log \
77 --enable-arp-acl \
78 --enable-htcp \
79 --enable-carp \
80 --enable-epoll \
81 --with-large-files \
82 --enable-arp-acl \
83 --with-default-user=proxy \
84 --enable-async-io \
85 --enable-truncate \
86 --enable-icap-client \
87 --enable-ssl-crtd \
88 --disable-arch-native \
89 --disable-strict-error-checking \
90 --enable-wccpv2 \
91 --disable-wccp \
92 --enable-ssl-crtd \
93 --with-build-environment=POSIX_V6_LP64_OFF64 \
94 --enable-build-info="Intercept/WCCPv2/SSL/CRTD/(A)UFS/DISKD/ROCK/eCAP/ICAP/64/GCC Production" \
95 'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -DNDEBUG -Wformat -Werror=format-security -Wall -ltcmalloc_minimal' \
96 'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now' \
97 'CPPFLAGS=-D_FORTIFY_SOURCE=2' \
98 'CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong -DNDEBUG -Wformat -Werror=format-security -ltcmalloc_minimal'
99 make -j$(nproc)
100}
101
102package() {
103 cd "$srcdir"
104
105 make -C "squid-$pkgver" DESTDIR="$pkgdir" install
106 install -Dm644 "$srcdir/squid.pam" "$pkgdir/etc/pam.d/squid"
107 install -Dm644 "$srcdir/squid.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/squid.conf"
108 install -Dm644 "$srcdir/squid.sysusers" "$pkgdir/usr/lib/sysusers.d/squid.conf"
109 install -Dm644 "$srcdir/squid.service" \
110 "$pkgdir/usr/lib/systemd/system/squid.service"
111 install -Dm644 "$srcdir/squid-rotate.service" \
112 "$pkgdir/usr/lib/systemd/system/squid-rotate.service"
113 install -Dm644 "$srcdir/squid-rotate.timer" \
114 "$pkgdir/usr/lib/systemd/system/squid-rotate.timer"
115# install -dm755 "$pkgdir/usr/lib/systemd/system/timers.target.wants"
116# ln -s ../squid-rotate.timer \
117# "$pkgdir/usr/lib/systemd/system/timers.target.wants/squid-rotate.timer"
118 rm -rf "$pkgdir/run" "$pkgdir"/var/{cache,log,run}
119}
120
121

Scan history

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