brother-pj723
maintainer doakey3
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads official Brother printer driver RPMs from the vendor's own download domain, which is not on the whitelist but is plausibly legitimate; the build process repackages the drivers for Arch Linux without executing arbitrary remote code or introducing untrusted binaries.
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 official Brother printer driver RPMs from the vendor's own download domain, which is not on the whitelist but is plausibly legitimate; the build process repackages the drivers for Arch Linux without executing arbitrary remote code or introducing untrusted binaries.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:18
http://download.brother.com/welcome/dlfp100218/pj723cupswrapper-1.2.0-0.i386.rpm
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: doakey3 <doakey3@gmail.com>
2
3
pkgname="brother-pj723"
4
pkgver="1.2.0"
5
pkgrel="1"
6
pkgdesc="CUPS driver for Brother Pocket Jet 723 printer"
7
url="http://www.brother.com"
8
license=('GPL')
9
install="brother-pj723.install"
10
arch=('x86_64')
11
depends=('lib32-glibc')
12
md5sums=(
13
'e63370dea8692176e7d257d810145e76'
14
'f976c06d770c74b94d8d480d463260e0'
15
)
16
17
source=(
18
http://download.brother.com/welcome/dlfp100218/pj723cupswrapper-1.2.0-0.i386.rpm
19
http://download.brother.com/welcome/dlfp100217/pj723lpr-1.2.0-0.i386.rpm
20
)
21
22
prepare() {
23
# The point is to make all the needed edits to the files and place
24
# them into correct folders in the src folder. Pretend $srcdir is
25
# the root of the system.
26
27
# .ppd
28
mkdir -p "$srcdir/usr/share/ppd/Brother"
29
_ppd="$srcdir/opt/brother/PTouch/pj723/cupswrapper/brother_pj723_printer_en.ppd"
30
_out_ppd="$srcdir/usr/share/ppd/Brother/brother_pj723_printer_en.ppd"
31
_out_wrapper="/usr/Brother/Printer/pj723/cupswrapper/brother_lpdwrapper_pj723"
32
sed "s|brother_lpdwrapper_pj723|${_out_wrapper}|g" "$_ppd" > "$_out_ppd"
33
34
# brcupsconfpt1
35
mkdir -p "$srcdir/usr/Brother/Printer/pj723/cupswrapper"
36
_driver="$srcdir/usr/bin/brprintconfpt1_pj723"
37
_out_driver="$srcdir/usr/Brother/Printer/pj723/cupswrapper/brcupsconfpt1"
38
cp "$_driver" "$_out_driver"
39
40
rm -r "$srcdir/usr/bin"
41
42
cp -R "$srcdir/opt/brother/PTouch/pj723/inf" "$srcdir/usr/Brother/Printer/pj723"
43
cp -R "$srcdir/opt/brother/PTouch/pj723/lpd" "$srcdir/usr/Brother/Printer/pj723"
44
45
_setupPrintcappt1="$srcdir/opt/brother/PTouch/pj723/inf/setupPrintcappt1"
46
_out_setupPrintcappt1="$srcdir/usr/Brother/Printer/pj723/inf/setupPrintcappt1"
47
48
_filterpj723="$srcdir/opt/brother/PTouch/pj723/lpd/filterpj723"
49
_out_filterpj723="$srcdir/usr/Brother/Printer/pj723/lpd/filterpj723"
50
51
# setupPrintcappt1 & filterpj723
52
sed "s|/opt/brother/PTouch|/usr/Brother/Printer|g" "$_setupPrintcappt1" > "$_out_setupPrintcappt1"
53
sed "s|/opt/brother/PTouch|/usr/Brother/Printer|g" "$_filterpj723" > "$_out_filterpj723"
54
55
# lpdwrapper
56
wrapper=$(sed -n '/<<!ENDOFWFILTER!/,$p' $srcdir/opt/brother/PTouch/pj723/cupswrapper/cupswrapperpj723)
57
wrapper=$(sed "1d" <<< $wrapper)
58
wrapper=$(sed -n "/!ENDOFWFILTER!/q;p" <<< $wrapper)
59
wrapper=$(sed 's|${printer_model}|pj723|g' <<< $wrapper)
60
wrapper=$(sed 's|\\||g' <<< $wrapper)
61
wrapper=$(sed 's|/usr/share/cups/model/Brother/brother_pj723_printer_en.ppd|/usr/share/ppd/Brother/brother_pj723_printer_en.ppd|g' <<< $wrapper)
62
wrapper=$(sed 's|/opt/brother/${device_model}/|/usr/Brother/Printer/|g' <<< $wrapper)
63
64
echo "$wrapper" > "$srcdir/usr/Brother/Printer/pj723/cupswrapper/brother_lpdwrapper_pj723"
65
chmod 755 "$srcdir/usr/Brother/Printer/pj723/cupswrapper/brother_lpdwrapper_pj723"
66
}
67
68
package() {
69
cp -R "$srcdir/usr" "$pkgdir"
70
}
71
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 |