Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The isValidUrl method in csrfguard.js uses an insecure string-matching technique #299

Open
Shishir53 opened this issue Sep 10, 2024 · 0 comments

Comments

@Shishir53
Copy link

We had run a scan after upgrading csrfguard library to version 4.3.0 and found below vulnerability with severity 5.4 .
It also reported that there is no non-vulnerable version of this component.

Explanation
The csrfguard package is vulnerable to Cross-Site Request Forgery (CSRF). The isValidUrl method in csrfguard.js uses an insecure string-matching technique. Consequently, an attacker could exploit this vulnerability to cause tokens to leak in links to external (attacker-controlled) domains.

Version Affected
[3.1.0,4.4.0]

CVSS Details
Sonatype CVSS 3 : 5.4
CVSS Vector : CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant