intelligence_src_1653fbf8e2da6d59a7
- Source-provided label
- Publisher RSS metadata
- Evidence class
- mentioned in report
- Confidence
- Not reported
- Observed
- Oct 09, 2026 15:15 UTC
- Retrieved
- Dec 05, 2026 03:22 UTC
Hermes Agent - PKCE Session Takeover via Redirect-URI Parser Confusion Note: Another researcher identified the same vulnerability during the disclosure process with the Nous Researcher team.In Hermes Agent, the public GET /auth/native/authorize flow validates the redirect_uri with Python's urllib.parse.urlparse, then hands the raw, unnormalized value back to the browser after authentication.The two parsers treat backslashes differently. Python's parser and the browser's WHATWG parser therefore disagree on the URL's actual host. The server can accept a URL it classifies as loopback (127.0.0.1) while the browser navigates to a different, attacker-controlled origin. The attacker also chooses the PKCE challenge, so they can exchange the leaked authorization code for the victim account's tokens. This results in a full session takeover.The _validate_loopback_redirect_uri function is explicitly meant to allow only literal loopback addresses, since a remote origin would otherwise receive a live authorization code. However, it parses raw, checks parsed.hostname, and then returns raw unchanged. register_pending stores this raw string. After a valid sign-in, auth_password_login appends code and state to it, and the page script redirects with window.location.assign(data.next).The discrepancy reproduces with http://127.0.0.1:17777\@127.0.0.1:27777/callback. urlparse reads 127.0.0.1:17777\ as user information before the @ and reports the hostname as 127.0.0.1, with port 27777. The browser instead treats \ as a path separator in an HTTP URL. It opens http://127.0.0.1:17777/@127.0.0.1:27777/callback, so the request goes to the origin on port 17777. In testing, the browser reached this second origin carrying the code and state parameters. A remote host placed before the backslash would receive the authorization code in the same way. Joshua Martinelle Fri, 10/09/2026 - 11:15
e9eb3f9d34b7116f927fe066366bc6b0d8fe9cd091a2eaa5990841e3bb86c704Network indicators are visibly defanged. This page does not make them clickable or send them to another service.
No validated file hashes or network indicators are stored for this record.
This record contains metadata and attribution only. It does not host, download, unpack, render, or execute malware samples.
Sources represented on this page. Publication and observation dates describe the content; successful batch dates describe local collection. A recent batch does not certify complete coverage or current provider availability.
1 sources: 0 stale, 0 needing attention, 0 paused, 0 unverified.
Stale means older than twice the recorded collection interval, with a minimum of one hour; without an interval, the threshold is 24 hours. Cached content remains available while a feed is stale, paused, or unverified.