Full Path Disclosure
EasyDB had a full path disclosure issue; the report suggests validating that parameters are one-dimensional.
Originally disclosed on HackerOne
- Fixed in 7 hours
- Paid in 7 hours
- Disclosed after 30 days
Hi
as reported in email, there is a full path disclosure in EasyDB
you fixed some of them in last commit add this code before and "execute($params)" function call!
if(count($params) != count($params,COUNT_RECURSIVE)){
throw new \InvalidArgumentException("Invalid params");
}
this will check $params to be 1d array,
Regards
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 code did not validate that the parameters array was one-dimensional, leading to an error that exposed the full file path when a nested array was passed.
What the attacker needed
Ability to pass parameters to EasyDB
The fix
The fix is to add a check that throws an exception if the parameters array is not one-dimensional, as shown in the provided code snippet.
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.
A full path disclosure is when an error reveals file locations on a server. The report suggests checking that parameters are a simple list, not nested.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.