CS - Lab Assignment-5
CS - Lab Assignment-5
Aim:
Perform reflective cross site scripting on the given site.
Theory:
Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected
into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web
application to send malicious code, generally in the form of a browser side script, to a different
end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a
web application uses input from a user within the output it generates without validating or encoding
it.
To distribute the malicious link, a perpetrator typically embeds it into an email or third party website (e.g.,
in a comment section or in social media). The link is embedded inside an anchor text that provokes the
user to click on it, which initiates the XSS request to an exploited website, reflecting the attack back to
the user.
If an attacker can control a script that is executed in the victim's browser, then they can typically fully
compromise that user. Amongst other things, the attacker can:
1. Perform any action within the application that the user can perform.
2. View any information that the user is able to view.
3. Modify any information that the user is able to modify.
4. Initiate interactions with other application users, including malicious attacks, that will appear to
originate from the initial victim user.
There are several effective methods for preventing and mitigating reflected XSS attacks.
First and foremost, from the user’s point-of-view, vigilance is the best way to avoid XS
scripting. Specifically, this means not clicking on suspicious links which may contain
malicious code. Suspicious links include those found in:
Output :
1.
Experiment No: 5
2.
Conclusion:
Hence, Reflective Cross Site scripting was studied and implemented on the given website.
The impacts, prevention and mitigation methods of reflective XSS were understood.