-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Referred from apache/tooling-trusted-releases#738
ASVS Reference: 7.2.4
Finding: 7.2.4-06
Description
When authenticating via Bearer tokens or Basic Auth (via the Authorization header), the asfquart/session.py read() function creates an ad-hoc session from the header credentials but does not clear any existing cookie session. If both an Authorization header and a valid session cookie are present, this could lead to session confusion or privilege inconsistency.
Affected File
src/asfquart/session.py—read()function, Bearer/Basic auth handling
Recommendation
When header-based authentication is used, explicitly ignore or clear cookie session state to prevent ambiguity about which identity is active.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels