<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cross-Site Scripting on soffensive blog</title><link>https://soffensive.github.io/tags/cross-site-scripting/</link><description>Recent content in Cross-Site Scripting on soffensive blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 05 Apr 2017 04:03:00 -0700</lastBuildDate><atom:link href="https://soffensive.github.io/tags/cross-site-scripting/index.xml" rel="self" type="application/rss+xml"/><item><title>Cross-Site Scripting Attacks with adverse Conditions: Upper-Case XSS</title><link>https://soffensive.github.io/posts/web-app-sec/2017-04-05-cross-site-scripting-attacks-with-adverse-conditions-upper-case-xss/</link><pubDate>Wed, 05 Apr 2017 04:03:00 -0700</pubDate><guid>https://soffensive.github.io/posts/web-app-sec/2017-04-05-cross-site-scripting-attacks-with-adverse-conditions-upper-case-xss/</guid><description>&lt;p>Several times I have encountered web applications that convert
user-provided input to capital letters. For example, the application may
behave as follows:&lt;/p>
&lt;p>&lt;a href="../images/2017-04-05-cross-site-scripting-attacks-with-adverse-conditions-upper-case-xss-up1.png" rel="">&lt;img
 class="lazyload"
 src="https://soffensive.github.io/svg/loading.min.svg"
 data-src="../images/thumbnails/2017-04-05-cross-site-scripting-attacks-with-adverse-conditions-upper-case-xss-up1.png"
 data-srcset="../images/thumbnails/2017-04-05-cross-site-scripting-attacks-with-adverse-conditions-upper-case-xss-up1.png, ../images/thumbnails/2017-04-05-cross-site-scripting-attacks-with-adverse-conditions-upper-case-xss-up1.png 1.5x, ../images/thumbnails/2017-04-05-cross-site-scripting-attacks-with-adverse-conditions-upper-case-xss-up1.png 2x"
 data-sizes="auto"
 alt="../images/thumbnails/2017-04-05-cross-site-scripting-attacks-with-adverse-conditions-upper-case-xss-up1.png"
 title="../images/thumbnails/2017-04-05-cross-site-scripting-attacks-with-adverse-conditions-upper-case-xss-up1.png" />&lt;/a>&lt;/p>
&lt;p>The injected JavaScript code (after escaping from the quotes, of course) will not be executed in the browser. Why is this the case? Remember that the HTML tag names themselves, including &lt;code>&amp;lt;SCRIPT&amp;gt;&lt;/code> are not case-sensitive, whereas the contents inside them are in fact case-sensitive.&lt;/p></description></item></channel></rss>