You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OAuth callback endpoint creates a plain aiohttp.ClientSession instead of using create_secure_session(), missing TLS 1.2+ enforcement, explicit certificate verification, hostname checking, and secure cipher suite selection. This creates a potential man-in-the-middle vulnerability in the OAuth token exchange flow.
Details
Affected Files and Lines:
src/asfquart/generics.py:98 - Plain ClientSession without hardened TLS
The OAuth token exchange uses default TLS settings instead of the application's hardened configuration.
Recommended Remediation
Use create_secure_session() for hardened TLS configuration:
Note from atr triage: Tooling could offer to contribute create_secure_session from atr/util:
defcreate_secure_session(
timeout: aiohttp.ClientTimeout|None=None,
) ->aiohttp.ClientSession:
"""Create a secure aiohttp.ClientSession with hardened SSL/TLS configuration."""connector=aiohttp.TCPConnector(ssl=create_secure_ssl_context())
# We pass the timeout to the ClientSession constructorreturnaiohttp.ClientSession(connector=connector, timeout=timeout)
Activity
andrewmusselman commentedon Mar 31, 2026
Note from
atrtriage: Tooling could offer to contributecreate_secure_sessionfromatr/util: