piranha-servlet

MEDIUM
maintainer Abderrahman-byte 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The PKGBUILD downloads a prebuilt JAR (executable code) from Maven Central using curl inside package() rather than declaring it in source=() with a checksum. While Maven Central is a legitimate and well-known repository, bypassing makepkg's integrity verification (no sha256sums/b2sums) means there is no tamper detection — a compromised or MITM'd response would be silently installed. The JAR is executed at runtime by the JVM, so it constitutes executed code without integrity verification. This is a genuine, if moderate, supply-chain concern: not clearly malicious, but the missing checksum on an executed artifact from an external host warrants MEDIUM. Additionally, the 'install $startdir/$pkgname' line installs a file from the source tree that is not declared in source=() either, which is another unverified artifact.

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 curl -OL "https://repo1.maven.org/maven2/cloud/piranha/dist/piranha-dist-servlet/$pkgver/piranha-dist-servlet-$pkgver.jar"
Medium AI review llm_review

An AI model (anthropic/claude-4.6-sonnet-20260217) reviewed this and agrees it is MEDIUM (confidence 85%): The PKGBUILD downloads a prebuilt JAR (executable code) from Maven Central using curl inside package() rather than declaring it in source=() with a checksum. While Maven Central is a legitimate and well-known repository, bypassing makepkg's integrity verification (no sha256sums/b2sums) means there is no tamper detection — a compromised or MITM'd response would be silently installed. The JAR is executed at runtime by the JVM, so it constitutes executed code without integrity verification. This is a genuine, if moderate, supply-chain concern: not clearly malicious, but the missing checksum on an executed artifact from an external host warrants MEDIUM. Additionally, the 'install $startdir/$pkgname' line installs a file from the source tree that is not declared in source=() either, which is another unverified artifact.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Abderrahman-byte <el.abderrahman00@gmail.com>
2# Contributor: Abderrahman-byte <el.abderrahman00@gmail.com>
3
4pkgname=piranha-servlet
5pkgver=23.1.0
6pkgrel=1
7pkgdesc="Piranha is a cloud native extensible runtime, which delivers various integration libraries facilitating running applications in a non application server centric way."
8arch=("any")
9url="https://github.com/piranhacloud/piranha"
10depends=("jre-openjdk")
11provides=("piranha-servlet")
12
13
14package() {
15 mkdir -p $pkgdir/usr/share/piranha-cloud/
16 mkdir -p $pkgdir/usr/bin/
17
18 cd $pkgdir/usr/share/piranha-cloud/
19
20 curl -OL "https://repo1.maven.org/maven2/cloud/piranha/dist/piranha-dist-servlet/$pkgver/piranha-dist-servlet-$pkgver.jar"
21
22 ln -s ./piranha-dist-servlet-$pkgver.jar $pkgdir/usr/share/piranha-cloud/piranha-dist-servlet.jar
23 install $startdir/$pkgname $pkgdir/usr/bin/$pkgname
24}
25

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Medium 2
2026-09-16 00:03:17 Medium 2
2026-09-15 00:25:31 Medium 2
2026-09-14 00:27:57 Medium 2
2026-09-13 00:19:54 Medium 2
2026-09-12 00:25:17 Medium 2
2026-09-11 00:19:22 Medium 2
2026-09-10 00:22:44 Medium 2
2026-09-09 00:04:09 Medium 2
2026-09-08 00:18:08 Medium 2
2026-09-07 00:30:15 Medium 2
2026-09-06 00:17:06 Medium 2
2026-09-05 00:16:27 Medium 2
2026-09-04 00:03:13 Medium 2
2026-09-03 00:15:47 Medium 2
2026-09-02 00:02:31 Medium 2
2026-09-01 00:11:19 Medium 2
2026-08-31 00:19:57 Medium 2
2026-08-30 00:04:14 Medium 2
2026-08-29 00:29:17 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