piranha-servlet

maintainer Abderrahman-byte · 0 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
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-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