- Severity: CRITICAL
- CVE: CVE-2026-68548
- Ecosystems: go
- Packages: github.com/xyproto/algernon
## Summary
Algernon’s URL-prefix authorization gate matches its protected prefixes (`/admin`, `/repo`, `/data`) with **case-sensitive** `strings.HasPrefix`, while the exact same raw `req.URL.Path` is later resolved against the filesystem. On case-insensitive filesystems (Windows NTFS — always; macOS APFS/HFS+ — default), a request for `/Admin/secret.lua` evades every protected-prefix check, falls through to the public-prefix accept branch, and then resolves on disk to `admin/secret.lua`. The result is an **unauthenticated bypass** of the `/admin`, `/repo`, and `/data` authorization boundary, enabling read (and, for Lua files, execution) of protected content. The permission system is active in the **default** configuration.
## Root Cause
The permission gate `Rejected()` (default BoltDB backend: `vendor/github.com/xyproto/permissionbolt/v2/permissionbolt.go:118-149`; identical logic in `vendor/github.com/xyproto/permissions/permissions.go:136-171`) iterates protected prefixes with byte-exact `strings.HasPrefix(req.URL.Path, prefix)`:
– `HasPrefix(“/Admin/secret.lua”, “/admin”)` == `false` (byte `A` != `a`) → admin check skipped.
– No `/repo` / `/data` match either.
– The public loop then evaluates `HasPrefix(“/Admin/secret.lua”, “/”)` == `true` (root is a default public prefix) → `return false` (accept).
The identical mixed-case `req.URL.Path` is passed to `utils.URL2filename` (`engine/handlers.go:591`) and then to `os.Stat` / `os.Open` via `datablock.Exists`. On a case-insen…
Source: GitHub Security Advisories · 2026-12-04