pcloud-drive

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

The package downloads a prebuilt AppImage from a dynamically resolved pcloud.com host via an API call, which is an unverifiable and potentially swappable source, posing a supply-chain risk if the API or host were 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:20 _api_response="$(curl -s "https://api.pcloud.com/getpublinkdownload?code=${_api_code}")"
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:24 "${_appimage}::https://${_dlhost}${_dlpath}")
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 AppImage from a dynamically resolved pcloud.com host via an API call, which is an unverifiable and potentially swappable source, posing a supply-chain risk if the API or host were compromised.

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: zbe <aur at zbe dot bz>
2# Contributor: Winston Astrachan <rew1red at rew1 dot red>
3# Contributor: Plague-doctor <plague at privacyrequired dot com>
4
5pkgname=pcloud-drive
6pkgver=2.3.0
7pkgrel=1
8pkgdesc='pCloud drive. Electron edition.'
9arch=('x86_64')
10url='https://www.pcloud.com/'
11license=("LicenseRef-${pkgname}")
12depends=('fuse2' 'zlib' 'hicolor-icon-theme')
13optdepends=('libappindicator-gtk3: Tray menu support')
14options=(!strip !debug)
15install="${pkgname}.install"
16replaces=('pcloud-git' 'pcloud')
17_shortname='pcloud'
18_appimage="${pkgname}-${pkgver}-${pkgrel}.AppImage"
19_api_code='XZrYdRJZLS6RF4kf6Jy6GFr4jqkc4S34Rlgy'
20_api_response="$(curl -s "https://api.pcloud.com/getpublinkdownload?code=${_api_code}")"
21_dlhost="$(echo ${_api_response} | grep -E -o '[a-zA-Z0-9\-]+\.pcloud\.com' | head -n 2 | sort -R | head -n 1)"
22_dlpath="$(echo ${_api_response} | grep -E -o "\"path\":\s{0,1}\".+\"" | cut -d '"' -f 4 | tr -d '\\')"
23source=('LICENSE'
24 "${_appimage}::https://${_dlhost}${_dlpath}")
25sha256sums=('9dce0249569d9dc9f00217009880458cf669a657ebb6604b4e52be4e875f1a42'
26 '07e404be9e37ef2dffb6541fea74f10601f2a33fe490bcaa895fb5b238f81af6')
27
28prepare() {
29 chmod +x "${_appimage}"
30 "./${_appimage}" --appimage-extract
31}
32
33package() {
34 cd "${srcdir}"
35
36 # Self-contained bundle under /opt; kept out of /usr/lib so its private
37 # Electron/Chromium libs can't collide with real system ones.
38 install -d "${pkgdir}/opt/${_shortname}"
39 cp -r squashfs-root/. "${pkgdir}/opt/${_shortname}/"
40
41 # appimage-extract can leave entries owner-only; make everything
42 # traversable/usable by normal users without touching non-exec files.
43 chmod -R u+rwX,go+rX "${pkgdir}/opt/${_shortname}"
44
45 # Setuid chrome-sandbox is dead weight here: pacman strips setuid on
46 # install, so it could never engage; app already runs unsandboxed.
47 find "${pkgdir}/opt/${_shortname}" -name chrome-sandbox -delete
48
49 # Install License
50 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
51
52 # Icons
53 install -dm755 "${pkgdir}/usr/share/icons/hicolor"
54 cp -r "${pkgdir}/opt/${_shortname}/usr/share/icons/hicolor/." \
55 "${pkgdir}/usr/share/icons/hicolor/"
56 # Drop the bundle's now-unused icon copy and the symlinks left dangling by it.
57 rm -rf "${pkgdir}/opt/${_shortname}/usr/share/icons" \
58 "${pkgdir}/opt/${_shortname}/.DirIcon" \
59 "${pkgdir}/opt/${_shortname}/pcloud.png"
60
61 # Same desktop-file ID pCloud self-writes on every launch, so its copy
62 # shadows ours by XDG precedence -- one menu entry instead of two.
63 install -Dm644 "${pkgdir}/opt/${_shortname}/${_shortname}.desktop" \
64 "${pkgdir}/usr/share/applications/appimagekit-${_shortname}.desktop"
65 sed -i "s/Name=pcloud/Name=pCloud/" \
66 "${pkgdir}/usr/share/applications/appimagekit-${_shortname}.desktop"
67 sed -i "s|Exec=AppRun|Exec=/usr/bin/${_shortname}|" \
68 "${pkgdir}/usr/share/applications/appimagekit-${_shortname}.desktop"
69
70 # AppRun sets up LD_LIBRARY_PATH and execs the real binary directly, so
71 # there's no runtime squashfs mount left for a crash to tear down.
72 install -d "${pkgdir}/usr/bin"
73 ln -sf "/opt/${_shortname}/AppRun" "${pkgdir}/usr/bin/${_shortname}"
74
75 # Permanent compat shim: pCloud hardcodes this old path into files it
76 # self-manages under $HOME and doesn't reliably regenerate them.
77 ln -sf AppRun "${pkgdir}/opt/${_shortname}/pCloud.AppImage"
78}
79

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 13:31:17 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

Report a package

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

0 / 4000
Your suggestion