NetSight
kritisch9.1

CVE-2019-25211

Gin mishandles a wildcard at the end of an origin string

Auswirkung

parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string, e.g., https://example.community/* is allowed when the intention is that only https://example.com/* should be allowed, and http://localhost.example.com/* is allowed when the intention is that only http://localhost/* should be allowed.

Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden.

Betroffene Pakete

ÖkosystemPaketBetroffenBehoben in
gogithub.com/gin-gonic/gin< 1.6.01.6.0
gogithub.com/gin-contrib/cors< 1.6.01.6.0

Betroffene Produkte

ProduktBetroffene Versionen
Gin-Gonic CORS middleware
vor 1.6.0

Die Versionen stammen aus dem Text des Advisorys. Strukturierte Produktdaten wurden für diesen Eintrag noch nicht veröffentlicht.

Schwachstellenklasse

Referenzen