# Auth bypass via parser and type confusion

Comparisons where a sentinel, empty default, delimiter mismatch, or empty object equals a valid secret

_Area: Web authentication and account takeover. Seen in 4 disclosed reports; latest 2026-11-23. Updated 2026-11-28._

## How it works
A user boundary is gated by comparing an attacker-controlled value against a stored secret or marker. The check breaks when the two sides disagree on what a value *means*: a parser splits input differently than the consumer reads it [E1](https://bugbountylibrary.com/r/h1%3A26647.md), a failure sentinel equals a valid stored value [E2](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-cve-2026-123158-sshhole-openssh-musl-password-bypass.md), an unconfigured default is itself an accepted input [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-gp95-j463-vv28.md), or a truthiness check on a structured value (empty object) reaches a lookup helper that treats it as "no filter" and returns an arbitrary stored record [E3](https://bugbountylibrary.com/r/ghsa%3AGHSA-2r3w-c2vx-fv5g.md). The invariant "only the real secret matches" fails because the comparison operates on a representation, not the intended value.

## Where it shows up
- Secrets seeded to `''`, `null`, or `'0'` and compared with strict equality [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-gp95-j463-vv28.md)
- Library failure returns a sentinel string that also has meaning in the consumer's data format [E2](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-cve-2026-123158-sshhole-openssh-musl-password-bypass.md)
- Cookie parsers whose delimiter set differs from the browser's; here `]` splits cookies [E1](https://bugbountylibrary.com/r/h1%3A26647.md)
- Cookies whose values reflect attacker input (Referer, URL path) [E1](https://bugbountylibrary.com/r/h1%3A26647.md)
- Non-PAM or fallback auth paths that borrow salts for accounts without a password hash [E2](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-cve-2026-123158-sshhole-openssh-musl-password-bypass.md)
- Token parameters typed as `string` in one endpoint but untyped in another, reaching `first({})`-style lookups [E3](https://bugbountylibrary.com/r/ghsa%3AGHSA-2r3w-c2vx-fv5g.md)

## How to review
Find every comparison that gates a user boundary and ask: can the attacker-supplied side equal the stored side without knowing the secret? Check the *default* value of the secret — if unconfigured, is it a valid input? [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-gp95-j463-vv28.md) Check what the library returns on failure and whether that value collides with stored data [E2](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-cve-2026-123158-sshhole-openssh-musl-password-bypass.md). For parsers, enumerate the delimiter set on both sides and confirm they match [E1](https://bugbountylibrary.com/r/h1%3A26647.md). For token/lookup parameters, confirm the type is constrained and that an empty object cannot reach an unfiltered query [E3](https://bugbountylibrary.com/r/ghsa%3AGHSA-2r3w-c2vx-fv5g.md). The property: the accepted set must contain exactly one value the attacker cannot produce.

## How finders spotted it
- Noticed Google Analytics writes the unfiltered Referer path into `__utmz`, then tested Python `SimpleCookie` parsing and found `]` splits cookies [E1](https://bugbountylibrary.com/r/h1%3A26647.md)
- Noticed musl `crypt()` returns `"*"` on failure rather than NULL, and that OpenSSH's CVE-2016-6210 salt-borrowing path compares it to shadow's `"*"` [E2](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-cve-2026-123158-sshhole-openssh-musl-password-bypass.md)
- Noticed `signIn` lacked a params schema unlike `signInWithToken`, traced the truthiness check, then followed `Collection#first` into Redis where `{}` triggers an unfiltered `sMembers` lookup [E3](https://bugbountylibrary.com/r/ghsa%3AGHSA-2r3w-c2vx-fv5g.md)
- Read the seeder and `hasValidToken()`, saw strict `!==` can't tell unconfigured-empty from attacker-empty, confirmed with a 401-vs-201 differential [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-gp95-j463-vv28.md)

## Variants seen
- Delimiter mismatch between cookie writer, browser, and server parser [E1](https://bugbountylibrary.com/r/h1%3A26647.md)
- Failure sentinel colliding with a data-format marker [E2](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-cve-2026-123158-sshhole-openssh-musl-password-bypass.md)
- Empty-object token passing a truthiness check into an unfiltered collection lookup [E3](https://bugbountylibrary.com/r/ghsa%3AGHSA-2r3w-c2vx-fv5g.md)
- Empty default secret matching an empty supplied header [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-gp95-j463-vv28.md)

## Impact and severity
CSRF bypass on any Django site, scoped cross-subdomain via cookie-attribute quirks [E1](https://bugbountylibrary.com/r/h1%3A26647.md); passwordless login to key-only accounts, escalating to privilege escalation where the account has sudo rights [E2](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-cve-2026-123158-sshhole-openssh-musl-password-bypass.md); admin REST access leading to RCE on managed hosts [E3](https://bugbountylibrary.com/r/ghsa%3AGHSA-2r3w-c2vx-fv5g.md); unauthenticated write to FAQ and category endpoints [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-gp95-j463-vv28.md). Impact rises with what the bypassed account can reach and whether the primitive chains to code execution [E2](https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-cve-2026-123158-sshhole-openssh-musl-password-bypass.md)[E3](https://bugbountylibrary.com/r/ghsa%3AGHSA-2r3w-c2vx-fv5g.md).

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **xo-server (npm)** <= 5.7.4, no fix yet: Xen Orchestra: Empty-object login token (CVE-2026-133469). Report: https://bugbountylibrary.com/r/ghsa%3AGHSA-2r3w-c2vx-fv5g.md. Fix: https://github.com/vatesfr/xen-orchestra/commit/50166fe3a49c02069d35ba9046ca4a1f77f4e11d
- **OpenSSH** (sshd password authentication (non-PAM crypt path)) fixed in 10.6p2: CVE-2026-123158 (*sshole): OpenSSH Password Authentication Bypass on Alpine Linux (CVE-2026-123158). Report: https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-cve-2026-123158-sshhole-openssh-musl-password-bypass.md
- **thorsten/phpmyfaq (composer)** <= 4.1.2, fixed in 4.1.3: phpMyFAQ: Default Empty API Token Authentication Bypass (CVE-2026-35672). Report: https://bugbountylibrary.com/r/ghsa%3AGHSA-gp95-j463-vv28.md

## Evidence
- E1: https://bugbountylibrary.com/r/h1%3A26647.md
- E2: https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-cve-2026-123158-sshhole-openssh-musl-password-bypass.md
- E3: https://bugbountylibrary.com/r/ghsa%3AGHSA-2r3w-c2vx-fv5g.md
- E4: https://bugbountylibrary.com/r/ghsa%3AGHSA-gp95-j463-vv28.md
