In light of COVID-19 precaution measures, we remind that all ImmuniWeb products can be easily configured and safely paid online without any human contact or paperwork.

Total Tests:
Stay in Touch

Weekly newsletter on AI, Application Security & Cybercrime

Your data will stay confidential Private and Confidential

Blind SQL Injection in Webmatic

Advisory ID:HTB23096
Vendor: ValarSoft
Vulnerable Versions:3.1.1 and probably prior
Tested Version:3.1.1
Advisory Publication:June 13, 2012 [without technical details]
Vendor Notification:June 13, 2012
Public Disclosure:July 4, 2012
Vulnerability Type:SQL Injection [CWE-89]
CVE Reference:CVE-2012-3350
Risk Level:High
CVSSv2 Base Score:7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Discovered and Provided:High-Tech Bridge Security Research Lab

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered vulnerability in Webmatic, which can be exploited to perform Blind SQL Injection attacks.

1) Blind SQL Injection in Webmatic: CVE-2012-3350
1.1 Input passed via the "Referer:" field of the HTTP header to index.php is not properly sanitised before being used in SQL query resulting in SQL injection. However the SQL injection is blind and shall be exploited by a time-based technique, or any other, suitable for blind SQL injection exploitation.
The following PoC (Proof of Concept) verifies presence of the vulnerability, if SQL injection exists - web application response time will be longer than with a normal HTTP request:
GET / HTTP/1.1
Referer: 1', IF((1=1),sleep(100),''), '', '0', '0', '0') -- 2

In the second PoC application response will be longer if the vulnerability is present and if the first character of administrator's hash is equal to 'a':
GET / HTTP/1.1
Referer: 1', IF(((SELECT mid(password,1,1) FROM `_users` WHERE userID=1)='a'),sleep(100),''), '', '0', '0', '0') -- 2

Successful exploitation of the vulnerability requires that "magic_quotes_gpc" is set to off.

How to Detect SQL Injection Vulnerabilities
Free Website Security Test
  • Non-intrusive GDPR Test
  • Non-intrusive PCI DSS Test
Try Free Test
ImmuniWeb® On-Demand
  • Complete GDPR Audit
  • Complete PCI DSS Audit
  • Remediation Guidelines
  • DevSecOps Integration
Learn More

Currently we are not aware of any vendor-supplied patches or other solutions.
As a temporary solution edit the application source code to ensure that input is properly sanitised.

[1] High-Tech Bridge Advisory HTB23096 - - Blind SQL Injection in Webmatic.
[2] Webmatic - - Webmatic its a free GNU/GPL php5 script that help you to create a complex website. With the webmatic control panel its possible to manage all the contents of a whole website, its possible to create: forums, chat, newsletter, online surveys, users registration page and more.
[3] Common Vulnerabilities and Exposures (CVE) - - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures.
[4] Common Weakness Enumeration (CWE) - - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
User Comments
Add Comment

Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.
View Products Ask a Question