-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Possible XSS issue #1975
Comments
@dleffler Since sends data from the connector may contain HTML tags, we can not accept this proposal. Please sanitize your own data separately. Or use |
Perhaps the fix given to me wasn't the real fix...here is the payload:
|
Give that payload to the elFinder connector, the next response will be returned.
This is the error dialog displayed by that data. It does not seem to be vulnerable to XSS. |
This seems to only occur when 'debug' is turned ON (where the output is not escaped). With a test setup
|
I am testing in debug mode, but I can not reproduce this problem. |
The issue will not appear with connector.minimal.php.dist since debug is not passed to elFinderConnector. It appears the issue is if you force json output as text/html. |
Yes, I understood. I was checking the display on the wlFinder client. |
I've been notified of an XSS security vulnerability within elFinder. The fix is to add htmlspecialchars($data) into line 309 of elFinderConnector.class.php to filter the json output.
I have additional details including the payload and other research as sent to me by chengable
The text was updated successfully, but these errors were encountered: