Add Audiobookshelf authentication bypass scanner (CVE-2025-25205) #21565
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.66) × (1 − Review Confidence (0.58)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 363 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.353
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #21565"
general
weight: 0.35
kenlacroix
Summary
Adds
auxiliary/scanner/http/audiobookshelf_auth_bypass, a detection module forCVE-2025-25205 —
an unauthenticated API authentication bypass in Audiobookshelf
(self-hosted audiobook/podcast server), affecting versions 2.17.0 – 2.19.0 (fixed in 2.19.1).
Vulnerability
The auth middleware (
server/Auth.js) decides whether aGETmay skip authentication by testingunanchored regexes (
/\/api\/items\/[^/]+\/cover/,/\/api\/authors\/[^/]+\/image/) againstreq.originalUrl— which includes the query string — instead of the normalizedreq.path. Appendinga query value containing one of those substrings (e.g.
/api/libraries?r=/api/items/1/cover) satisfiesthe "auth not needed" check while Express still routes the request to the protected handler. Fixed in
2.19.1 by anchoring the patterns and matching
req.path.What the module does
1. Fingerprints the server and version via the unauthenticated
/statusendpoint.2. Performs a differential check against
/api/libraries: a baseline request that a server normallyrejects with
401, and a bypass request carrying the whitelisted substring. On a vulnerable serverthe bypass is processed instead of rejected (HTTP
200, or500because the handler runs without auser object); a patched server returns
401to both.It intentionally targets
/api/librariesand avoids endpoints such as/api/usersthat crash theserver process (the DoS half of this CVE), so the check is crash-safe.
Verification
Tested against the official image at both a vulnerable and a patched tag (true-positive and
true-negative):
Documentation with full setup and scenarios is included at
documentation/modules/auxiliary/scanner/http/audiobookshelf_auth_bypass.md.Verification Steps
1. Start a vulnerable Audiobookshelf instance and complete the initial root-user setup
2.
use auxiliary/scanner/http/audiobookshelf_auth_bypass3.
set RHOSTS <target>4.
set RPORT 133785.
run— the module reports the version and confirms the bypass