InfoTrackGlobal / juice-shop

OWASP Juice Shop: Probably the most modern and sophisticated insecure web application
https://owasp-juice.shop
MIT License
0 stars 0 forks source link

Fix NoSQL Injection Vulnerability in findOne() Function #2

Closed nullify-infotrack[bot] closed 6 months ago

nullify-infotrack[bot] commented 6 months ago

This pull request addresses a high-severity NoSQL injection vulnerability identified in the findOne() function, where untrusted user input is not properly sanitized before being used in a database query. This could allow an attacker to inject malicious code into the query, leading to unauthorized access or manipulation of the database.

The fix involves implementing input validation and sanitization to ensure that only expected data types and formats are processed by the application. By doing so, we prevent potential NoSQL injection attacks and enhance the overall security of the application.