You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a linux-based OS:
2a) Run the following command: touch '<img src=x onerror=alert()>'
2b) Open test.html in the browser and upload the file created in the step 2a).
Opent test.html in a browser and try to upload the file created at point 4). An error message will be showed and the javascript code is executed.
The vulnerability in the example is located at https://github.com/hayageek/jquery-upload-file/blob/master/js/jquery.uploadfile.js#L426. Also there are other occurrencies, as you can see the file name is concatenated directly in the html element. if(s.showError) $("<div class='" + s.errorClass + "'><b>" + files[i].name + "</b> " + s.extErrorStr + s.allowedTypes + "</div>").appendTo(obj.errorLog);
The text was updated successfully, but these errors were encountered:
jQuery-Upload-File 4.0.11 has multiple DOM-based XSS vulnerabilities that are executed when a user uploads a file whose name contains Javascript.
UPLOAD HISTORY
Steps to reproduce:
2a) Run the following command:
touch '<img src=x onerror=alert()>'
2b) Open test.html in the browser and upload the file created in the step 2a).
The javascript code will be executed opening an alert.
Affected line: https://github.com/hayageek/jquery-upload-file/blob/master/js/jquery.uploadfile.js#L469
UPLOAD ERROR
Steps to reproduce:
<img src=x onerror=alert()>
The vulnerability in the example is located at https://github.com/hayageek/jquery-upload-file/blob/master/js/jquery.uploadfile.js#L426. Also there are other occurrencies, as you can see the file name is concatenated directly in the html element.
if(s.showError) $("<div class='" + s.errorClass + "'><b>" + files[i].name + "</b> " + s.extErrorStr + s.allowedTypes + "</div>").appendTo(obj.errorLog);
The text was updated successfully, but these errors were encountered: