Lucene search

K
osvGoogleOSV:GHSA-78VG-7V27-HJ67
HistorySep 10, 2024 - 3:53 p.m.

auditor-bundle vulnerable to Cross-site Scripting because name of entity does not get escaped

2024-09-1015:53:10
Google
osv.dev
1
vulnerable entity
cross-site scripting
twig macro
github project
xss
javascript injection
persistent
js execution

CVSS3

8.2

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

LOW

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L

AI Score

7.1

Confidence

Low

EPSS

0.001

Percentile

21.3%

Summary

Unescaped entity property enables Javascript injection.

Details

I think this is possible because %source_label% in twig macro is not escaped. Therefore script tags can be inserted and are executed.

PoC

Impact

persistent XSS. JS can be injected and executed.

CVSS3

8.2

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

LOW

Availability Impact

LOW

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L

AI Score

7.1

Confidence

Low

EPSS

0.001

Percentile

21.3%

Related for OSV:GHSA-78VG-7V27-HJ67