Description
Superagent through 10.4.2 contains an information disclosure vulnerability in Request.prototype._redirect that forwards Authorization, Cookie and Proxy-Authorization headers to a different origin on redirect. Attacker-controlled servers in a redirect chain can return a 305 or other redirect to their host to capture bearer tokens, basic-auth credentials, session cookies or proxy credentials.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| forwardemail | superagent | 0 ≤10.4.2 | — |
References
- https://github.com/forwardemail/superagent/blob/v10.4.2/src/node/index.js#L734-L776
- https://github.com/forwardemail/superagent/blob/v10.4.2/src/node/index.js#L1825-L1827
- https://github.com/forwardemail/superagent/issues/1869
- https://www.vulncheck.com/advisories/superagent-through-10.4.2-credential-leak-via-cross-origin-redirect-headers