Guest User

Untitled

a guest
Feb 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.75 KB | None | 0 0
  1. Cross-Site Scripting
  2.  
  3.     Userinput reaches sensitive sink when function display() is called.
  4.  
  5.     125: echo  <?php echo htmlspecialchars( $this->name() ) . $extet  ?>
  6.         120:  $extet = " <a href=\"" . getEscapedProfileUrl( false, false, $e ) . "\">[–]</a>";  // if ( !$ex ) {else
  7.             116:  $e += array( $name => $ep );  // if ( !$ex ) {else //  // if ( $name != $this->name() ) {
  8.                 113:  $e = array();  // if ( !$ex ) {else
  9.                 114:  foreach ( $expand as $name => $ep ) {  // if ( !$ex ) {else
  10.                     78:  $expand[$f] = true;  //
  11.                         77:  foreach( explode( ',', $_REQUEST['expand'] ) as $f )
  12.                 114:  foreach ( $expand as $name => $ep ) {  // if ( !$ex ) {else
  13.                     78:  $expand[$f] = true;  //
  14.                         77:  foreach( explode( ',', $_REQUEST['expand'] ) as $f )
  15.  
  16.         requires:
  17.             100:  <A NAME="display_declare"></A><a href="#display_call" title="jump to call"><span class="linenr">100:</span>&nbsp;&nbsp;<span class="phps-t-function">function</span>&nbsp;<span class="phps-t-string">display</span><span class="phps-code">(</span>&nbsp;<span style="cursor:pointer;" name="phps-var-expand" onClick="markVariable('expand')" onmouseover="markVariable('expand')" onmouseout="markVariable('expand')" class="phps-t-variable">$expand</span><span class="phps-code">,</span>&nbsp;<span style="cursor:pointer;" name="phps-var-indent" onClick="markVariable('indent')" onmouseover="markVariable('indent')" onmouseout="markVariable('indent')" class="phps-t-variable">$indent</span>&nbsp;<span class="phps-code">=</span>&nbsp;<span class="phps-t-dnumber">0.0</span>&nbsp;<span class="phps-code">)</span>&nbsp;<span class="phps-code">{</span>&nbsp;</a>
Add Comment
Please, Sign In to add comment