Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A simple example of a Cross-site scripting attack [closed]

Tags:

xss

Can someone show me a Cross-site scripting attack in effect on my browser? Is there an example on the internet that does this? I haven't found this on the internet.

The simpler the example is the better.

like image 847
Skuli Avatar asked Mar 06 '12 12:03

Skuli


People also ask

What is cross-site scripting attack examples?

Examples of reflected cross-site scripting attacks include when an attacker stores malicious script in the data sent from a website's search or contact form. A typical example of reflected cross-site scripting is a search form, where visitors sends their search query to the server, and only they see the result.

How cross-site scripting attack occurs explain with suitable example?

Attackers often initiate an XSS attack by sending a malicious link to a user and enticing the user to click it. If the app or website lacks proper data sanitization, the malicious link executes the attacker's chosen code on the user's system. As a result, the attacker can steal the user's active session cookie.

What is a cross-site scripting attack Explain in your own words?

Cross-site scripting (XSS) is a type of injection attack in which a threat actor inserts data, such as a malicious script, into content from trusted websites. The malicious code is then included with dynamic content delivered to a victim's browser. XSS is one of the most common cyber attack types.


2 Answers

See http://www.insecurelabs.org and http://www.insecurelabs.org/task/

Intentionally vulnerable to XSS in the search field and several other places.

like image 54
Erlend Avatar answered Oct 07 '22 13:10

Erlend


<img src="javascript:alert('hello everybody')"></img> The image tag that I inserted is a example of xss. the above src contains the java script alerting you.

like image 37
user3176091 Avatar answered Oct 07 '22 13:10

user3176091