unifi-no-ads

maintainer synthead · 0 votes · scanned 2026-08-18 05:41:37.763560
LOW
View on AUR ↗
Why flagged The main binary is downloaded from Ubiquiti's official distribution server (dl.ui.com) with checksums provided; the only non-standard element is a bundled local 'mongod' wrapper script replacing the bundled binary for MongoDB compatibility, which is a known legitimate workaround for this package. The sed command at the end removes ad-related JS, matching the package's stated purpose. No obfuscation, exfiltration, or untrusted remote code execution is present.

Triggered rules

LOW Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (anthropic/claude-sonnet-4.6) reviewed the full PKGBUILD and judged it LOW (confidence 75%): The main binary is downloaded from Ubiquiti's official distribution server (dl.ui.com) with checksums provided; the only non-standard element is a bundled local 'mongod' wrapper script replacing the bundled binary for MongoDB compatibility, which is a known legitimate workaround for this package. The sed command at the end removes ad-related JS, matching the package's stated purpose. No obfuscation, exfiltration, or untrusted remote code execution is present.

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:22 source=("UniFi-${pkgver}.zip::https://dl.ui.com/unifi/${pkgver}/UniFi.unix.zip"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Maxwell Pray <synthead@gmail.com>
2# Contributor: Frederik Schwan <freswa at archlinux dot org>
3# Contributor: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
4
5_pkgname=unifi
6pkgname=$_pkgname-no-ads
7pkgver=10.5.67
8pkgrel=1
9pkgdesc='Centralized management system for Ubiquiti UniFi AP'
10arch=('x86_64' 'armv7h' 'aarch64')
11url='https://unifi-network.ui.com'
12# We are allowed to ship the software in our repository
13# https://mailman.archlinux.org/mailman/private/arch-dev/2014-August/015690.html
14license=('custom')
15depends=(
16 'fontconfig'
17 'java-runtime-headless=25'
18 'mongodb'
19)
20conflicts=('tomcat-native' 'unifi')
21provides=('unifi')
22source=("UniFi-${pkgver}.zip::https://dl.ui.com/unifi/${pkgver}/UniFi.unix.zip"
23 mongod
24 unifi.service
25 unifi.sysusers
26 unifi.tmpfiles
27 LICENSE)
28b2sums=('c483e6e40afc2cd565b6d268c5a4b210da0dd4a8518449dedd7dd399acfae3e353de1f68db2cdfc91390f39262906ff44eecedc4035d664c1321d0c13c119f27'
29 '2c8d535aabe8e738a9ba375fc4ab7aaa1713c9aefffc3e652fd49bc6288d0b7d24cae64d04ded5d5052486a377edca190818874a80bafb33cf2ac94742540106'
30 '753d4f24793ca65c9f554bedfbc22d6507474d835986cdba435538ec6518bd14769a64485a5f4bab1fc879378ff4c4b64ec323fa362dac32f739ed119cb2647c'
31 '5474a726a8a222f463f47cdca44988889406e2bee7b3c7875d45b20dc283d1d9737772d8cb63cd35c75517f3606feaadcf02c00b73e5bbab40f459d78d066c3e'
32 'bd254ddbd4b52acca50b41dffe7ae1e2e5250f15574fc371d36dc133215f3a268623b0b5b12e73932c856bf90a69a178ba91530ffa8b08c0da51f51911b2ef92'
33 '84f2a201143b3e44ba09d1009818db507d8f261d495a86ce239bcbacee059aad5c63af1b43638b126be743ff7c660f0871eb2b4efe2031e2f64bc23f172052e0')
34
35package() {
36 # lib
37 install -dm755 "${pkgdir}"/usr/lib/unifi
38 cp -r UniFi/{bin,dl,lib,webapps} "${pkgdir}"/usr/lib/unifi
39 case ${CARCH} in
40 x86_64)
41 rm -r "${pkgdir}"/usr/lib/unifi/lib/native/Linux/aarch64
42 ;;
43 aarch64)
44 rm -r "${pkgdir}"/usr/lib/unifi/lib/native/Linux/x86_64
45 ;;
46 *)
47 rm -r "${pkgdir}"/usr/lib/unifi/lib/native/Linux
48 ;;
49 esac
50
51 # fix incompatibility with mongodb >= 3.6
52 rm "${pkgdir}"/usr/lib/unifi/bin/mongod
53 install -Dm755 "${srcdir}"/mongod "${pkgdir}"/usr/lib/unifi/bin/mongod
54
55 # data
56 install -dm750 "${pkgdir}"/var/lib/unifi
57 for _d in {data,run,work}; do
58 ln -s ../../../var/lib/unifi/${_d} "${pkgdir}"/usr/lib/unifi/${_d}
59 done
60
61 # log
62 ln -s ../../../var/log/unifi "${pkgdir}"/usr/lib/unifi/logs
63
64 # readme
65 install -Dm644 UniFi/readme.txt "${pkgdir}"/usr/share/doc/${_pkgname}/README
66
67 # license
68 install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${_pkgname}/LICENSE
69
70 # systemd
71 install -Dm644 ${_pkgname}.service "${pkgdir}"/usr/lib/systemd/system/${_pkgname}.service
72 install -Dm644 ${_pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${_pkgname}.conf
73 install -Dm644 ${_pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${_pkgname}.conf
74
75 # Remove JS that presents ads to the user.
76 sed -Ei '/return n&&r\?.+\.aF\.Root/s/return n/return !1/' "$pkgdir/usr/lib/unifi/webapps/ROOT/app-unifi/react/js"/swai.*.js
77}
78

Scan history

Scanned at (UTC)SeverityRules
2026-08-18 05:41:37 LOW 3
2026-08-18 05:38:33 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