harbor run -t scale-ai/hil-bench-swe_81-ask_humanharbor download scale-ai/hil-bench-swe_81-ask_humanAuthentication Bypass Vulnerability in Subsonic API
There is an inconsistent behavior in how the Subsonic API processes certain authentication scenarios. Under some conditions, authentication failures may not be handled in a predictable manner. This fix should stay focused on authentication behavior rather than introducing new audit or analytics reporting.
The authentication middleware allows some requests to continue processing even when authentication conditions are not fully satisfied, which can result in incorrect outcomes.
Authentication should behave consistently and align with the intended access control model. Requests that do not meet authentication requirements must be rejected with appropriate Subsonic error responses (code 40). The complete authentication lifecycle should be applied uniformly, regardless of which API surface processes the request. Token-based authentication must enforce salt security requirements per the organization's security policy.
Inconsistent authentication handling allows unauthorized access to protected API endpoints. Divergent post-authentication behavior between API surfaces can lead to inconsistencies in downstream systems that depend on the authentication lifecycle completing fully.
The Subsonic API authentication system properly validates all authentication attempts and rejects invalid credentials.
Failed authentication attempts return appropriate Subsonic error responses with code 40.
The authentication middleware consistently blocks unauthorized requests from proceeding to protected endpoints.
The authentication system must handle all supported credential types: plaintext password, token-based (md5 hash with salt), JWT, and reverse proxy header-based authentication.
Token-based authentication must enforce salt security requirements per the organization's security policy (e.g. minimum length or character set). Where a minimum length is specified by policy.
Do not add new audit logs, analytics events, or historical authentication reporting as part of this fix.
The post-authentication middleware chain on the Subsonic API must be functionally equivalent to the one on the Native API, ensuring no processing steps are omitted.
No new interfaces are introduced