Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 8754

Cross-Site Scripting: An attack method that involves injection of code or markup into a webpage. There are three major types of XSS: Reflected XSS, Stored XSS (aka persistent XSS) and DOM-based XSS (aka client side XSS).

2 votes
Accepted

Unable to upload a file on xss vulnerable page

If you would inject PHP code, and it would execute, it would be code execution, not XSS. XSS is a vulnerability that happens client-side. … Everything a website can do with JavaScript, you can do with XSS. But you cannot change what happens server-side via XSS. …
tim's user avatar
  • 29.8k
8 votes

XSS - Bypass this RegExp

Example: input=<<a|ascript>alert('xss');</script> This is because your regex does what you think it does: it searches for < followed by one or more alphanumeric character, followed by one or more non-alphanumeric … '">click me</a>'; } Example attack: input=" onmouseover="alert('xss') For more places where this kind of filtering is not good enough, see the owasp XSS Prevention Cheat Sheet. …
tim's user avatar
  • 29.8k
4 votes

How to break out of URL context

The issue is if you accept user input as part of the url you output, as in this example given by OWASP: <a href="http://www.somesite.com?test=[user input]">link</a > The attacker does not have to …
tim's user avatar
  • 29.8k
9 votes
Accepted

Bypassing XSS filter

Bypass escaped double quote Based on your description this should work: \");alert("xss The " will be escaped as \", thus resulting in \\", which escapes the \, but not the ". … You can't use double quotes in the injected string, but that's not a problem as XSS with single quotes or completely without quotes is perfectly possibly. …
tim's user avatar
  • 29.8k
21 votes

Can I simply search-replace < and >?

Can a hacker still get away with a XSS? Possibly, depending on the situation. … Here is a list with different contexts and how to handle them when preventing XSS. Is there any reason not to do this? Yes. …
tim's user avatar
  • 29.8k
8 votes
Accepted

Style attribute XSS without quotes

Is CSS injection as bad as XSS? No, but there are still problems with it. …
tim's user avatar
  • 29.8k
1 vote

Exploiting an XSS vulnerability

If you know for sure that no user will ever be logged in, you can't really do that much with a reflected XSS vulnerability (you can't steal cookies, you can't post requests on their behalf, you can't perform …
tim's user avatar
  • 29.8k
4 votes
Accepted

XSS: sending a cookie without using quotes or double quotes?

You don't need quotes. One possibility would be to use String.fromCharCode: <script> document.location=String.fromCharCode(104, 116, 116, 112, 58, 47, 47, 101, 120, 97, 109, 112, 108, 101, 46, 99, 11 …
tim's user avatar
  • 29.8k
2 votes
Accepted

Is the X-XSS-Protection HTTP header related to the anti-XSS filter in browser?

Is that header directly related to the anti-XSS filter in browser? Yes. The idea is that a value of 0 disables the filter, and 1 enables the filter. …
tim's user avatar
  • 29.8k
2 votes

Is this XSS filter vulnerable

It might be vulnerable, but we can't tell reliably without more information. But first, you are not really escaping tags, you are closing tags. In most situations, closing tags is not necessary, as …
tim's user avatar
  • 29.8k
5 votes

XSS in big wiki software

This doesn't seem dangerous as the content type isn't HTML: header( 'Content-Type: text/javascript; charset=utf-8' ); For specifics about XSS and content type text/javascript see eg Reflective XSS
tim's user avatar
  • 29.8k
0 votes

xss payload "-confirm``-"

It's a payload for a sink inside a JavaScript string context. It might eg exploit the following vulnerable code: <script>var x = "[user input]";// process x</script> The payload uses confirm becaus …
tim's user avatar
  • 29.8k
4 votes
Accepted

DOM based XSS using window.location.hash

There was a jQuery vulnerability in earlier version where $('#<img src=x onerror=alert(1)>') would lead to XSS, but that is fixed in recent versions. … $('<img src=x onerror=alert(1)>') still leads to XSS, but there is no way to get rid of the # (and the URL encoding would also still be in the way). …
tim's user avatar
  • 29.8k
4 votes

Why isn't this code running?

I don't think we have a "why is XSS not working" question, so I'll try to add a canonical answer here. Why isn't XSS working? So you have a website, it takes your input and echoes it back to you. … Have you disabled your browsers XSS filter? If in doubt, use Firefox without plugins, as it doesn't have a filter. …
tim's user avatar
  • 29.8k
5 votes
Accepted

XSS payload without - &<>"=()

@Arminius covered it pretty well. But there are exceptions depending on the HTML attribute. Here are just two examples (others exist, mostly related to URLs, but onX and some other attributes are also …
tim's user avatar
  • 29.8k

1
2 3 4 5
7
15 30 50 per page