Skip to content
NewA calmer, faster ZeroHour

Gorilla CSRF mishandles Origin and Referer, enabling CSRF

Original title: USN-9297-1: Gorilla CSRF vulnerability

Ubuntu Security Notices ()
AI summary · x-ai/grok-4.7Summaries by Vani AI

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.

Key facts
  • 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.
Security assessment · AI, from the article

Impact: cross-site request forgery after same-domain XSS

ProductAffected
Gorilla CSRF—
What to do
  1. 1.Apply the Gorilla CSRF update that treats unmarked requests as HTTPS.
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

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 Security Notices

ubuntu.com

Read the full article at Ubuntu Security Notices

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.