photon-studio-bin
Downloads a prebuilt proprietary Flatpak binary from 'files06.tchspt.com' (a CDN/mirror for techspot.com, not the official vendor domain tenzen.studio), uses a spoofed referer/user-agent to bypass download restrictions, and installs it directly; while a checksum is provided, the binary comes from unofficial third-party infrastructure rather than the project's own release servers, making it silently swappable by that host.
Triggered rules
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:37
"Photon-Studio-${pkgver}-linux-x64.flatpak::https://files06.tchspt.com/down/Photon-Studio-${pkgver}-linux-x64.flatpak"
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
llm_review
An AI model (anthropic/claude-sonnet-4.6) reviewed this and agrees it is MEDIUM (confidence 72%): Downloads a prebuilt proprietary Flatpak binary from 'files06.tchspt.com' (a CDN/mirror for techspot.com, not the official vendor domain tenzen.studio), uses a spoofed referer/user-agent to bypass download restrictions, and installs it directly; while a checksum is provided, the binary comes from unofficial third-party infrastructure rather than the project's own release servers, making it silently swappable by that host.
PKGBUILD
1 offending line(s) highlighted# Maintainer: sfs sfslinux@gmail.com
pkgname=photon-studio-bin
pkgver=0.1.9
pkgrel=4
pkgdesc="A desktop local-first image editor with layers and native PSD support (Extracted from Flatpak)"
arch=('x86_64')
url="https://tenzen.studio/photon/"
license=('LicenseRef-Photon-Studio')
makedepends=('flatpak')
depends=(
'alsa-lib'
'at-spi2-core'
'atk'
'gdk-pixbuf2'
'gtk3'
'libcups'
'libsecret'
'libx11'
'libxcomposite'
'libxdamage'
'libxext'
'libxfixes'
'libxkbcommon'
'libxrandr'
'mesa'
'nspr'
'nss'
)
options=('!strip')
DLAGENTS=(
'https::/usr/bin/wget --referer=https://www.techspot.com/ --user-agent=Mozilla/5.0\ \(X11\;\ Linux\ x86_64\)\ AppleWebKit/537.36\ Chrome/150.0.0.0\ Safari/537.36 -O %o %u'
)
source=(
"Photon-Studio-${pkgver}-linux-x64.flatpak::https://files06.tchspt.com/down/Photon-Studio-${pkgver}-linux-x64.flatpak"
"photon-studio.png"
)
sha256sums=(
'c0e5394c500ac95dfa1b5722f3fe9d3170cfd98934d48fed85ebe32114d0f249'
'd09bc04240d4fccecc0667fcd263324a104cf3515388a71789e0cfa72bfc50f7'
)
prepare() {
cd "$srcdir"
mkdir -p "$srcdir/fake-flatpak-home"
echo "==> Extracting Photon Studio Flatpak..."
FLATPAK_USER_DIR="$srcdir/fake-flatpak-home" \
flatpak install \
--user \
--bundle \
--noninteractive \
--assumeyes \
--no-deps \
"$srcdir/Photon-Studio-${pkgver}-linux-x64.flatpak"
}
package() {
local app_dir
install -dm755 "$pkgdir/opt/photon-studio"
install -dm755 "$pkgdir/usr/bin"
install -dm755 "$pkgdir/usr/share/applications"
install -Dm644 \
"$srcdir/photon-studio.png" \
"$pkgdir/usr/share/pixmaps/photon-studio.png"
echo "==> Locating extracted application..."
app_dir="$(
find "$srcdir/fake-flatpak-home" \
-type d \
-path '*/app/*/*/*/*' \
-print -quit
)"
if [[ -z "$app_dir" ]]; then
echo "ERROR: Photon Studio application directory not found"
exit 1
fi
echo "==> Application directory: $app_dir"
if [[ ! -d "$app_dir/files/lib/com.tenzen.photon" ]]; then
echo "ERROR: Photon Studio files directory not found"
exit 1
fi
cp -a --no-preserve=links \
"$app_dir/files/lib/com.tenzen.photon/." \
"$pkgdir/opt/photon-studio/"
#
# Desktop file
#
local desktop_file
desktop_file="$(
find "$srcdir/fake-flatpak-home" \
-type f \
-name '*.desktop' \
-path '*/export/share/applications/*' \
-print -quit
)"
if [[ -n "$desktop_file" ]]; then
install -Dm644 \
"$desktop_file" \
"$pkgdir/usr/share/applications/photon-studio.desktop"
sed -i \
's|^Exec=.*|Exec=photon-studio %U|' \
"$pkgdir/usr/share/applications/photon-studio.desktop"
sed -i \
's|^Icon=.*|Icon=photon-studio|' \
"$pkgdir/usr/share/applications/photon-studio.desktop"
else
cat > "$pkgdir/usr/share/applications/photon-studio.desktop" <<'EOF'
[Desktop Entry]
Name=Photon Studio
Comment=Desktop image editor with layers and native PSD support
Exec=photon-studio %U
Terminal=false
Type=Application
Icon=photon-studio
Categories=Graphics;Photography;
MimeType=image/jpeg;image/png;image/webp;image/tiff;image/vnd.adobe.photoshop;
StartupWMClass=Photon Studio
EOF
fi
#
# Exported icons
#
local icon_dir="$srcdir/fake-flatpak-home"
if find "$icon_dir" \
-type d \
-path '*/export/share/icons/*' \
-print -quit | grep -q .; then
install -dm755 "$pkgdir/usr/share/icons"
find "$icon_dir" \
-type d \
-path '*/export/share/icons/*' \
-exec cp -a {} "$pkgdir/usr/share/icons/" \;
fi
#
# Launcher
#
cat > "$pkgdir/usr/bin/photon-studio" <<'EOF'
#!/bin/sh
exec /opt/photon-studio/photon-studio "$@"
EOF
chmod 755 "$pkgdir/usr/bin/photon-studio"
install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
cat > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" <<'EOF'
Photon Studio is proprietary software.
The applicable license terms are provided by the copyright holder,
Tenzen Studio.
Upstream:
https://tenzen.studio/photon/
EOF
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 15:27:54 | Medium | 3 |
| 2026-09-17 15:25:49 | Medium | 3 |