Waraxe IT Security Portal
Login or Register
October 15, 2026
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: 1210
Members: 0
Total: 1210
Full disclosure
[0day-rubbish] Auerswald COMmander 6000 / 6000R 8.6D unauthenticated provisioning import zip-slip to root binary hijack and root code execution (9.8)
[0day-rubbish] Abyss Web Server X1 2.16.22.0 first-run console credential takeover to configuration-write log-as-CGI command execution (7.5)
SEC Consult SA-20261008-0 :: Multiple critical vulnerabilities in multiple TP-Link device series
1-click MMI/USSD execution in Android via CALL_PHONE and browser-reachable dialer deeplinks (ACR Phone / com.nll.cb)
SmarterMail <9777 Pre-Auth RCE (half click lol): CVE-2026-104082, CVE-2026-104083, CVE-2026-104084
[0day-rubbish] StreamSets Transformer 3.17.0 auth-mode none fallback and un-sandboxed ScalaDTransform execution to container root (8.1 primary)
[0day-rubbish] RCDevs WebADM 2.4.14 authenticated log viewer sid command injection to webadm uid 999 code execution (7.2)
[0day-rubbish] Maian Cart 3.8 addBanners unrestricted banner upload to PHP webshell and administrator command execution (7.2 primary, PR:H)
[0day-rubbish] IPConfigure Orchid VMS 26.3.0 authenticated DNF repository GPG-key property command injection to root (7.2)
[0day-rubbish] Circutor LineEds 24.11.14-r0 unauthenticated pwrstudio events.xml shellExecute command injection (9.8)
[0day-rubbish] Asustor ADM 3.5.9.RWM1 (AS602T) music.cgi act=live stored-filename command injection reaching system() (8.8 primary, PR:L)
[0day-rubbish] Advantech WebAccess Node 9.2.3 unauthenticated CrystalRpt.aspx file upload and path traversal to code execution in w3wp.exe (9.8)
SEC Consult Research 20261001 :: Arbitrary Email sender spoofing in Apple iCloud mail
SEC Consult SA-20260924-0 :: Multiple Vulnerabilities in Paessler PRTG Network Monitor #CVE-2026-4637 #CVE-2026-4638
[NotCVE-2026-0019] game-music-emu through 0.6.5 VGM Command Interpreter Missing Operand Length Check Allows Heap Out-of-Bounds Read
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Sql injection -> into outfle
Post new topicReply to topic View previous topic :: View next topic
into outfle
PostPosted: Sun Oct 11, 2009 1:11 pm Reply with quote
wokky
Regular user
Regular user
Joined: Oct 09, 2009
Posts: 11




Hello all,

I found mysql root account, I can login via phpmyadmin and do eveything i want but now i want to take advantage of this and install a phpbackdoor.

So i tried something like this:

select '<?php *phpcode*?' INTO OUTFILE '/www/backdoor.php'

and i got:
Can't create/write to file '/www/backdoor.php' (Errcode: 13)

if i don't use path of course it works and copy the file into tmp folder

I am sure that the directory exists and this probably due to write permission.

So how can i bypass that.

sry bad english :/
View user's profile Send private message
PostPosted: Sun Oct 11, 2009 6:59 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




It's all about Linux filesystem security and you can do only things, you are allowed to, unless you have some 0-day vulnerability in your possession.
Now, some things to try:

1. load_file() allows to read files, this can be useful.
2. try to find some web-accessible directory, which is writable to mysql.
Examples: avatars,cache, smilies,temp,data,files,pictures,upload, uploads.
Many webmasters are giving 777 permissions to some dirs, this can be exploited.
3. use load_file() for peeking into the php script sources. This may reveal additional security vulnerabilities, which can lead to further exploitation (insecure uploads, LFI, RFI, sql injections).
4. try to find LFI vulns and in case of success just write your php code to the tmp dir and use LFI for getting php-level access.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sun Oct 11, 2009 7:20 pm Reply with quote
wokky
Regular user
Regular user
Joined: Oct 09, 2009
Posts: 11




ye i tried to read some files successefully and i know where are directories writable by php but it doesn't works with mysql dunno why
View user's profile Send private message
PostPosted: Mon Oct 12, 2009 8:58 pm Reply with quote
wokky
Regular user
Regular user
Joined: Oct 09, 2009
Posts: 11




ok i dit it i found a directory to write but i got an another problem,
suPHP, safe mode ! impossible to execute the file, probably nothing to do about it
View user's profile Send private message
PostPosted: Mon Oct 12, 2009 9:49 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




What php version?
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Tue Oct 13, 2009 6:21 pm Reply with quote
wokky
Regular user
Regular user
Joined: Oct 09, 2009
Posts: 11




PHP Version 5.2.5-pl1-gentoo
View user's profile Send private message
PostPosted: Tue Oct 13, 2009 7:20 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




It's old php version. There can be ways to bypass open_basedir, safe_mode and other restrictions.

http://secunia.com/advisories/product/13446/?task=advisories

http://feeds2.feedburner.com/phpvulnerability_database
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Tue Oct 13, 2009 7:58 pm Reply with quote
wokky
Regular user
Regular user
Joined: Oct 09, 2009
Posts: 11




Well, suPHP test if the php file is execute by the right user.
in this case i wrote a file with mysql user so it cannot be executable by php

Look:

I tried a simple php without file/dir access file like that:
<?php echo 'test'; ?>

And it can't be executable.
View user's profile Send private message
PostPosted: Wed Oct 14, 2009 11:32 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




You can write arbitrary files to the web server, right? Then consider other ways to leverage attack: .htaccess, cgi, perl, python.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Fri Oct 16, 2009 7:26 am Reply with quote
wokky
Regular user
Regular user
Joined: Oct 09, 2009
Posts: 11




ok, can you give me some exemples cause i don't know how to process
View user's profile Send private message
into outfle
www.waraxe.us Forum Index -> Sql injection
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



PCWizardHub - Helping you fix, build, and optimize your PC life
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.057 Seconds