Waraxe IT Security Portal
Login or Register
November 24, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 67
Members: 0
Total: 67
Full disclosure
APPLE-SA-11-19-2024-5 macOS Sequoia 15.1.1
Local Privilege Escalations in needrestart
APPLE-SA-11-19-2024-4 iOS 17.7.2 and iPadOS 17.7.2
APPLE-SA-11-19-2024-3 iOS 18.1.1 and iPadOS 18.1.1
APPLE-SA-11-19-2024-2 visionOS 2.1.1
APPLE-SA-11-19-2024-1 Safari 18.1.1
Reflected XSS - fronsetiav1.1
XXE OOB - fronsetiav1.1
St. Poelten UAS | Path Traversal in Korenix JetPort 5601
St. Poelten UAS | Multiple Stored Cross-Site Scripting in SEH utnserver Pro
Apple web content filter bypass allows unrestricted access to blocked content (macOS/iOS/iPadOS/visionO S/watchOS)
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Newbies corner -> Can I do something else?
Post new topicReply to topic View previous topic :: View next topic
Can I do something else?
PostPosted: Fri Mar 13, 2009 10:10 am Reply with quote
badrh0
Active user
Active user
Joined: Jul 06, 2008
Posts: 32




Hi,
Code:

<?php
//instruction de comptabilisation de telechargement
//Utilisation
$fichier = "telechargement/".$_GET['fichier'];
$nom_fichier = $_GET['fichier'];

// téléchargement du fichier
header('Content-disposition: attachment; filename='.$nom_fichier);
header('Content-Type: application/force-download');
header('Content-Transfer-Encoding: fichier');
header('Content-Length: '.filesize($fichier));
//header('Pragma: no-cache');
//header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
header('Expires: 0');
readfile($fichier);
?>

I could download everything I want including php pages, but can I do somthing more interessant? example, in the first header line? $nom_fichier can it be replaced by any injection, my ultime aim is to hack this website Wink
View user's profile Send private message
PostPosted: Fri Mar 13, 2009 12:52 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




What you have here is called Remote File Disclosure.
You can reveal the contents of all files on target server

1. IF current UID/GID and file/dir permissions will let you read the file
2. IF target file resides on same logical disk
3. IF php safe_mode/open_basedir does not interfere

So your mission is to escalate your privileges.
By the way - what is your ultimate goal? To mess with
specific website on hosting server or you want server itself?
In first case you can try to find configuration files containing
possible usernames and password hashes for database and/or
web applications. This may give you a way to get administrator rights
for web app and next goal can be php shell.
One more thing - scan target server for open TCP ports and look for
port 3306 (mysql). This may be handy later ...
And - as you can reveal source code of php scripts, then search
for more useful security vulnerabilities - Remote Command Execution, etc.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Fri Mar 13, 2009 7:22 pm Reply with quote
badrh0
Active user
Active user
Joined: Jul 06, 2008
Posts: 32




waraxe wrote:
What you have here is called Remote File Disclosure.
You can reveal the contents of all files on target server

1. IF current UID/GID and file/dir permissions will let you read the file
2. IF target file resides on same logical disk
3. IF php safe_mode/open_basedir does not interfere

So your mission is to escalate your privileges.
By the way - what is your ultimate goal? To mess with
specific website on hosting server or you want server itself?
In first case you can try to find configuration files containing
possible usernames and password hashes for database and/or
web applications. This may give you a way to get administrator rights
for web app and next goal can be php shell.
One more thing - scan target server for open TCP ports and look for
port 3306 (mysql). This may be handy later ...
And - as you can reveal source code of php scripts, then search
for more useful security vulnerabilities - Remote Command Execution, etc.

thx, I can get every php page I could find its path, I got the pass to conect to sql but it don't accept external connectons Sad
View user's profile Send private message
Here you are agian
PostPosted: Sat Mar 14, 2009 7:45 am Reply with quote
taratata
Regular user
Regular user
Joined: Oct 12, 2008
Posts: 8
Location: somewhere




Badrh0 salam.

I see that you're trying again.
Perhaps you have to think more than more before to continue.
See you later.
View user's profile Send private message
PostPosted: Sat Mar 14, 2009 12:05 pm Reply with quote
taratata
Regular user
Regular user
Joined: Oct 12, 2008
Posts: 8
Location: somewhere




badro4u salam

you wrote this :

"Assalamou 3alaykoum
Merci beacoup monsieur le directeur, ça me fait plaisir, dans d'autres forums on m'aurait envoyé balader si j'avais fais cette demande, thanx.
J'ai une question tout de même, cela prendra-t-il longtemps avant que ce site n'apparaisse sous Google quand je fait la recherche "badrh0" ??? ou alors pouvez vous faire quelquechose contre ça Monsieur le directeur ? Merci"

Apparemment tu laisses beaucoup de traces "higgs_b0s0n"

"http://www.ibndz.com"

Essayes d'être un peu intelligent et trouve un autre moyen.

Nassiha lillah.
Salam
View user's profile Send private message
PostPosted: Mon Mar 16, 2009 10:46 pm Reply with quote
badrh0
Active user
Active user
Joined: Jul 06, 2008
Posts: 32




@taratata
Salam
Bof ! Tu crois que c'est le scoop du siecle de découvrire que badrh0 = higgs_b0s0n = badro4u ??!!! une simple recherche sur Google te donne ça! et laisse moi te dire quelquechose, j'avais même fait une bétise en laissant trainer mon vrai nom sur le net (avant que je commence a hacker) si tu es si fort que ça donne le moi :p et personne ne s'est donné la peine de le vérifier...
Quant au site ibndz c'était une bétise de débutant de ma part Smile et j'ai tant bien que mal éssayer de la réparer, mais t'inquittes je sais beaucoup plus de choses à présent Wink ...
Amicalement
View user's profile Send private message
Reste à savoir
PostPosted: Tue Mar 17, 2009 11:52 am Reply with quote
taratata
Regular user
Regular user
Joined: Oct 12, 2008
Posts: 8
Location: somewhere




Salam alikoum.

Le problème, c'est ce que peuvent savoir les autres sur toi et non pas moi.
Moi avec modestie je répond que je te connais pas Wink
La modestie est une KHISSLA rare chez les gens.
Sinon ton nom et le reste, je ne veux pas te le donner car sur le Net et tu sais pourquoi. Ou alors je vais te le communiquer d'une manière où tu dois faire bouger un peu tes neuronnes sous forme d'un Hash et c'est à toi de jouer.
Le savoir et les astuces sont devenus la propriété de tout le monde comme ils disent EL AWLAMA. Ne sommes pas dans un village où tout le monde connait tout le monde. Il reste l'art de se faire tout petit tout en étant grand.

Salam
View user's profile Send private message
Réflexion
PostPosted: Tue Mar 17, 2009 12:00 pm Reply with quote
taratata
Regular user
Regular user
Joined: Oct 12, 2008
Posts: 8
Location: somewhere




Waraxe, plexi Shai-tan Twisted Evil autant de pseudo qui disent long sur le comportement.

Shai-tan est fier de l'être et il le sait surtout quand je lui ai expliqué ce que veut dire son pseudo.

D'ailleurs on sait qu'il y'a des gens qui peuvent se rallier avec ShaiTan pour arriver à leurs fins. Chez d'autres gens ça s'appelle LA TAKIYA.
View user's profile Send private message
Can I do something else?
www.waraxe.us Forum Index -> Newbies corner
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.034 Seconds