Parse Server literalizeRegexPart SQL Injection Authentication Bypass Vulnerability
The literalizeRegexPart function in Parse Server fails to properly validate user-supplied input before using it in SQL queries, allowing an unauthenticated attacker to bypass authentication.
Smile Thanapattheerakul Follow
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to bypass authentication on affected installations of Parse Server. Authentication is not required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the literalizeRegexPart function concatenates user input directly into SQL queries without proper sanitisation or parameterisation.
Impact
An unauthenticated remote attacker could bypass authentication on affected Parse Server installations.
What the attacker needed
None
The fix
Parse has issued an update to correct this vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Parse Server is a backend service. A function that builds database queries did not check what a user typed, so an attacker could send special input that changes the query. This let them skip the login step and access the system without valid credentials.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.