simplesamlphp
maintainer Jojodicus
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package uses composer to install dependencies from the project's own source, which is a normal and expected part of building PHP applications; this does not constitute a security risk as the dependencies are declared and pulled during build time for packaging.
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 90%): The package uses composer to install dependencies from the project's own source, which is a normal and expected part of building PHP applications; this does not constitute a security risk as the dependencies are declared and pulled during build time for packaging.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
External install via pipx/uv/poetry/cargo/go/gem
alt_pkg_manager_install
A non-pip/npm package manager (pipx, uv, poetry, cargo install, go install, gem, conda…) fetches and builds an external package at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:40
composer require "predis/predis:*" --update-no-dev --ignore-platform-reqs -
PKGBUILD:41
composer require "simplesamlphp/simplesamlphp-module-ldap:*" --update-no-dev --ignore-platform-reqs
PKGBUILD
2 offending line(s) highlighted
1
# Maintainer: AlphaJack <alphajack at tuta dot io>
2
3
pkgname="simplesamlphp"
4
pkgver=2.0.3
5
pkgrel=1
6
pkgdesc="Authentication and federation application supporting several protocols"
7
url="https://simplesamlphp.org/"
8
license=("LGPL2.1")
9
arch=("any")
10
depends=("php")
11
depends=("composer")
12
source=("$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/refs/tags/v$pkgver.tar.gz")
13
sha256sums=('e31a9e4333906711672f2ab641c4665332d4a69c5310330556d52042d1d91d7a')
14
backup=("etc/webapps/$pkgname/config/acl.php"
15
"etc/webapps/$pkgname/config/authsources.php"
16
"etc/webapps/$pkgname/config/config.php"
17
"etc/webapps/$pkgname/metadata/saml20-idp-hosted.php"
18
"etc/webapps/$pkgname/metadata/saml20-idp-remote.php"
19
"etc/webapps/$pkgname/metadata/saml20-sp-remote.php"
20
)
21
options=("!strip")
22
23
prepare(){
24
cd "$pkgname-$pkgver"
25
# use private folder
26
sed -i "config/config.php.dist" \
27
-e "s|'logging.handler' => 'syslog',|'logging.handler' => 'file',|" \
28
-e "s|/var/simplesamlphp/mdq-cache|cache|g" \
29
-e "s|/var/simplesamlphp/cert|cert|g" \
30
-e "s|/var/data|data|g" \
31
-e "s|/var/log|log|g" \
32
-e "s|/tmp/simplesaml|tmp|g"
33
}
34
35
build(){
36
cd "$pkgname-$pkgver"
37
# find additional modules here: https://github.com/orgs/simplesamlphp/repositories?q=simplesamlphp-module&type=all&language=&sort=
38
# some modules may result in additional files under /etc/webapps/simplesamlphp/, add these files to the "backup" array above to avoid overriding them
39
# using asterisk because it could fail as new versions may fail due to conflicting dependencies
40
composer require "predis/predis:*" --update-no-dev --ignore-platform-reqs
41
composer require "simplesamlphp/simplesamlphp-module-ldap:*" --update-no-dev --ignore-platform-reqs
42
composer install --no-interaction --no-dev --ignore-platform-reqs
43
}
44
45
package(){
46
cd "$pkgname-$pkgver"
47
# program files
48
install -d "$pkgdir/usr/share/webapps/$pkgname"
49
cp -r {attributemap,bin,lib,locales,modules,public,routing,templates,vendor} "$pkgdir/usr/share/webapps/$pkgname"
50
# persistent storage
51
install -d "$pkgdir/var/lib/$pkgname/"{cert,cache,data,log,log/stats,tmp}
52
ln -s "/var/lib/$pkgname/"{cert,cache,data,log,tmp} "$pkgdir/usr/share/webapps/$pkgname"
53
chown -R http:http "$pkgdir/var/lib/$pkgname"
54
find "$pkgdir/var/lib/$pkgname" -type d -exec chmod 700 {} \;
55
# configuration
56
install -d "$pkgdir/etc/webapps/$pkgname/"{config,metadata}
57
install -D -m 664 "config/acl.php.dist" "$pkgdir/etc/webapps/$pkgname/config/acl.php"
58
install -D -m 664 "config/authsources.php.dist" "$pkgdir/etc/webapps/$pkgname/config/authsources.php"
59
install -D -m 664 "config/config.php.dist" "$pkgdir/etc/webapps/$pkgname/config/config.php"
60
install -D -m 664 "metadata/saml20-idp-hosted.php.dist" "$pkgdir/etc/webapps/$pkgname/metadata/saml20-idp-hosted.php"
61
install -D -m 664 "metadata/saml20-idp-remote.php.dist" "$pkgdir/etc/webapps/$pkgname/metadata/saml20-idp-remote.php"
62
install -D -m 664 "metadata/saml20-sp-remote.php.dist" "$pkgdir/etc/webapps/$pkgname/metadata/saml20-sp-remote.php"
63
ln -s "/etc/webapps/$pkgname/config" "$pkgdir/usr/share/webapps/$pkgname/config"
64
ln -s "/etc/webapps/$pkgname/metadata" "$pkgdir/usr/share/webapps/$pkgname/metadata"
65
chown -R root:http "$pkgdir/etc/webapps/$pkgname"
66
find "$pkgdir/etc/webapps/$pkgname" -type d -exec chmod 750 {} \;
67
find "$pkgdir/etc/webapps/$pkgname" -type f -exec chmod 640 {} \;
68
}
69
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 |