-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
itismadness
authored and
itismadness
committed
Sep 16, 2019
1 parent
06d23c8
commit 6844e15
Showing
1 changed file
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6844e15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How was this vulnerable? The data was validated on line 184
6844e15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 184 only sets how that particular variable will get validated, it does not actually kill the script or anything. However, on line 248, the data is finally validated, but it just returns an error string that validation failed. This would be fine if the error was immediately displayed and the script bailed, but it did not, and continued, running a SQL query with the data that failed validation before we would see the error screen:
Gazelle/sections/upload/upload_handle.php
Lines 333 to 352 in 06d23c8
This is compounded by the fact the variable was not properly escaped when passed into the DB so could easily be a malicious payload. Let me know if this makes sense.
6844e15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, that is unfortunate
There are probably a lot of other sites still vulnerable to this.
6844e15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that they are all closed source, it's impossible to say.