Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

How to show that XSS is dangerous

I used these things to show it's dangerous:
Cookie-stealing
Phishing
Malware download
Browser exploits
Dangrous rejections
...

If someone would matter. :)
I know that you have already noted cookie stealing, but you should really explain how dangerous cookie stealing really can be if used in the correct situation - just saying.
^In my report I give examples and clear explanation of what those things are. :)
depending on the website, cookie-stealing can be disastrous

if the authorisation service only depends on the cookie without any other validations etc then

Scenario 1:

1. Steal user cookies
2. If website has forms you can manipulate requests to upload malicious file (shelll) instead of images etc
3. If you have shell you can probably root the server

Scenario 2:

1. Steal ADMIN cookies
2. Upload shell through admin panel
3. root server

keep in mind that not many websites use tokens for authorisation so a very big number of current websites are prone to "disastrous" cookie-stealing
(Oct 5, 2014 03:42 AM)c00perzz Wrote:  depending on the website, cookie-stealing can be disastrous

2. If website has forms you can manipulate requests to upload malicious file (shelll) instead of images etc

Could you give the JS example of that? I'm really wondering how I'd do that. :)
(Oct 5, 2014 04:01 AM)Niely Wrote:  Could you give the JS example of that? I'm really wondering how I'd do that. :)

heh , i didnt mean to do that with XSS directly

with XSS you would steal the cookie.

then with the cookie you would login to that user's account and from there you would go to any form that allows uploading files and manipulate POST request to the server (using tamper data or live http headers etc) to upload the shell
(Oct 5, 2014 05:45 AM)c00perzz Wrote:  heh , i didnt mean to do that with XSS directly

with XSS you would steal the cookie.

then with the cookie you would login to that user's account and from there you would go to any form that allows uploading files and manipulate POST request to the server (using tamper data or live http headers etc) to upload the shell

Ah, that only works if you are able to upload PHP-files.
It needs to have an upload form for that though.
(Oct 4, 2014 07:58 AM)Niely Wrote:  I used these things to show it's dangerous:
Cookie-stealing
Phishing
Malware download
Browser exploits
Dangrous rejections
...

If someone would matter. :)

Don't you mean dangerous redirections?
I believe that you could technically deface a site with XSS by displaying HTML over the rest of the page with a site like C99.nl. The only issue is that it is non persistent, but you could send them the URL with the code in it. If they are stupid enough they will fall for it.
^Yeah probably, but defacing isn't really an issue because it's non-persistent. :)
You could use beef                                   
You can do pretty much everything with reflected xss as you can with persistent. There are some pitfalls like browser protection and you'd have to a bit more social engineering. Anyways, you can always use html5's window.history.pushState to hide the url after it's clicked.
use SOTF, aka Shell of the Future, google it and PM me if you found this useful.
^Thanks a lot!
Never heard of it before, but I'll keep it in my mind for the future.
Would like to add it but the report is already given...

Still looking for those interesting suggestion for in the future!

(Oct 6, 2014 04:21 PM)Abdilo Wrote:  You could use beef                                   

Yeah, I've included the BeEF framework in browser-exploits. :)


Possibly Related Threads...
Thread / Author Replies Views Last Post
by SwpkcJan 22, 2024 05:01 PM 2 135 Jan 22, 2024 05:01 PM
Last Post: Swpkc
by thegooDZguyJun 7, 2022 01:49 AM 2 166 Jun 7, 2022 01:49 AM
Last Post: nerdy
by Gee4rceApr 19, 2021 06:47 AM 26 4,053 Apr 19, 2021 06:47 AM
Last Post: theghostofgreen