Gorilla CSRF mishandles Origin and Referer, enabling CSRF
Original title: USN-9297-1: Gorilla CSRF vulnerability
An attacker who already has XSS on a site sharing the same top-level domain could forge cross-site requests.
Ubuntu published USN-9297-1 after Gorilla CSRF was found not to properly validate Origin and Referer headers on cross-origin requests. A remote attacker able to run cross-site scripting against a site sharing the same top-level domain could possibly turn that into cross-site request forgery. The update treats all requests as HTTPS unless the application marks them as plaintext HTTP.
Unconfirmed: The notice does not name a CVE, affected versions, or known exploitation.
- The flaw is in Origin and Referer validation for cross-origin requests.
- Exploitation requires cross-site scripting on a site with the same top-level domain.
- Updated Gorilla CSRF treats requests as HTTPS unless marked plaintext HTTP.
Impact: cross-site request forgery after same-domain XSS
| Product | Affected |
|---|---|
| Gorilla CSRF | — |
- 1.Apply the Gorilla CSRF update that treats unmarked requests as HTTPS.
- Vendors
- Gorilla
- Products
- Gorilla CSRF
- Organizations
- Ubuntu
From the original article
It was discovered that Gorilla CSRF did not properly validate the Origin and Referer headers of cross-origin requests. A remote attacker who was able to perform cross-site scripting attacks on a site sharing the same top-level domain could possibly use this issue to perform cross-site request forgery attacks.
ubuntu.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.