# Algernon: Authorization bypass on case-insensitive filesystems

Algernon's case-sensitive prefix check for /admin, /repo, /data is bypassed with mixed-case paths that resolve to protected files on case-insensitive filesystems, enabling unauthenticated read/execution.

- Payout: Research
- Severity: critical
- Program: Algernon
- Found by: manus-use
- Disclosed: 2026-12-04
- CVE: CVE-2026-68548
- Write-up quality: 7/10
- Original: https://github.com/advisories/GHSA-vm84-8c4p-64hx
- Library page: https://bugbountylibrary.com/r/ghsa%3AGHSA-vm84-8c4p-64hx
- Tags: area:web domain:web impact:data-leak impact:rce kind:research platform:ghsa sev:critical tech:go technique:source-review vuln:access-control vuln:auth-bypass vuln:path-traversal

**Target:** HTTP file-serving handler with URL-prefix authorization gate
**Root cause:** Rejected() compares req.URL.Path to protected prefixes with byte-exact strings.HasPrefix, but the same unnormalized path is later resolved against a case-insensitive filesystem, so a case variant skips the gate yet opens the protected file.
**Steps:**
1. Identify protected prefixes `/admin`, `/repo`, `/data` checked via case-sensitive `strings.HasPrefix` in `Rejected()`.
2. Send unauthenticated `GET /Admin/secret.lua` (or `/Repo/...`, `/Data/...`) to a Windows/macOS host.
3. Gate skips protected match, public `/` prefix accepts.
4. `URL2filename` + `os.Open` resolve `Admin/secret.lua` to `admin/secret.lua` on case-insensitive FS.
5. Protected file is read/executed and returned to the unauthenticated client.
**How found:** Noticed the authorization gate uses byte-exact HasPrefix on the raw path while the same path is later resolved on disk, and that no case normalization occurs between gate and filesystem read; confirmed the public `/` prefix accept branch catches the mixed-case path.
**Exploitation:** Unauthenticated attacker requests a case-variant of a protected path; the permission gate accepts it as public and the OS resolves it to the real protected file, returning its contents (or executing Lua).
**Insight:** When an auth gate string-matches a path but the sink resolves it via the OS, check for normalization mismatches (case, unicode, trailing chars) between the two — case-insensitive filesystems turn a case-variant into the protected file.

