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

Upload Shell Trough Permanent XSS ?

Hi guys. There is any way to upload a shell into a webpage that cointains twice xss permanent vulnerabilities?

A friend used one trough, web redirection, and shell was into the metadata or something 😠

But, there should be a easier way, shouldn´t it?
Thanks in advance
Not sure about the answer to this question but you might wanna look over your grammar in this post and future ones :) - Just to help us understand what you're asking.
🤝 sorry, im not native english, so its a bit difficult to express for me.
Thanks in advance!

PD: What i want is upload a shell trought a cross site scripting permanent vulnerability
You can't shell through persistant XSS (unless you can write PHP to a file and view parsed PHP back but thats really rare) - most of the time you want to work with BeeF http://www.thesecurityblogger.com/cool-t...cktrack-5/

Or you can always redirect to something more fun ;)

Peace
depending on the website you have found it on you could use this https://github.com/Prochainezo/xss2shell
A thread came up about this the other day.

The short answer is not directly, no. XSS makes use of Javascript which runs in the users browser and doesn't have access to modify anything server side.

However if an admin with elevated privileges visits the page with XSS you can use XSS to steal his session cookies (assuming HTTP only cookies isn't enabled) and once authed against the website you may have access to an admin area or a CMS that has upload capability.

If you're familiar with the CMS, AND it's vulnerable to file upload, AND an admin who is authed visits your page then you could theoretically do this in one shot and have the Javascript upload the shell for you, and people have done that for specific CMS's with known vulnerabilities.

So the long answer is yes, it's possible but only in very specific circumstances, generally speaking you'd use it as part of a larger attack.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by 0xcitizenFeb 20, 2023 12:34 PM 0 242 Feb 20, 2023 12:34 PM
Last Post: 0xcitizen
by Gee4rceApr 19, 2021 06:47 AM 26 4,066 Apr 19, 2021 06:47 AM
Last Post: theghostofgreen
by longwenzhangDec 12, 2019 07:54 AM 0 229 Dec 12, 2019 07:54 AM
Last Post: longwenzhang