<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>A potentially dangerous Request.QueryString value was detected</title>
        <description>Not run into this before (ASP built in detection), anyone know how this works and what it's based on?</description>
        <link>http://sla.ckers.org/forum/read.php?4,23676,23676#msg-23676</link>
        <lastBuildDate>Thu, 20 Jun 2013 04:51:22 -0500</lastBuildDate>
        <generator>Phorum 5.2.15a</generator>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,23676,33240#msg-33240</guid>
            <title>Re: A potentially dangerous Request.QueryString value was detected</title>
            <link>http://sla.ckers.org/forum/read.php?4,23676,33240#msg-33240</link>
            <description><![CDATA[ive come across a lot of sites with this.<br />
but if the XSS is into a link or into javascript you can still exploit using quotes, onmouse events and other javascript if your in tags]]></description>
            <dc:creator>PaPPy</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Mon, 01 Feb 2010 08:19:45 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,23676,23698#msg-23698</guid>
            <title>Re: A potentially dangerous Request.QueryString value was detected</title>
            <link>http://sla.ckers.org/forum/read.php?4,23676,23698#msg-23698</link>
            <description><![CDATA[Ha, thanks. I'm too lazy to install visual studio etc. it seems reasonably effective, at least it detects tags or events and some keywords. There is definitely scope to work around it though given it's &quot;blacklisting&quot; approach.]]></description>
            <dc:creator>asilvermtzion</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Mon, 28 Jul 2008 09:13:45 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,23676,23683#msg-23683</guid>
            <title>Re: A potentially dangerous Request.QueryString value was detected</title>
            <link>http://sla.ckers.org/forum/read.php?4,23676,23683#msg-23683</link>
            <description><![CDATA[You can use Lutz Roeder's Reflector to view the code directly in the System.Web.CrossSiteScriptingValidation class.<br />
<br />
btw, does this forum support [ code ] tags?]]></description>
            <dc:creator>r0ckph1sh</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Sun, 27 Jul 2008 20:26:09 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,23676,23682#msg-23682</guid>
            <title>Re: A potentially dangerous Request.QueryString value was detected</title>
            <link>http://sla.ckers.org/forum/read.php?4,23676,23682#msg-23682</link>
            <description><![CDATA[It's based on two routines that are called by the System.Web.HttpRequest class during it's validation and parsing phase.<br />
<br />
The relevant code is : <br />
<br />
internal static bool IsDangerousString(string s, out int matchIndex)<br />
{<br />
    matchIndex = 0;<br />
    int startIndex = 0;<br />
    while (true)<br />
    {<br />
        int num2 = s.IndexOfAny(startingChars, startIndex);<br />
        if (num2 &lt; 0)<br />
        {<br />
            return false;<br />
        }<br />
        if (num2 == (s.Length - 1))<br />
        {<br />
            return false;<br />
        }<br />
        matchIndex = num2;<br />
        char ch = s[num2];<br />
        if (ch != '&amp;')<br />
        {<br />
            if ((ch == '&lt;') &amp;&amp; ((IsAtoZ(s[num2 + 1]) || (s[num2 + 1] == '!')) || (s[num2 + 1] == '/')))<br />
            {<br />
                return true;<br />
            }<br />
        }<br />
        else if (s[num2 + 1] == '#')<br />
        {<br />
            return true;<br />
        }<br />
        startIndex = num2 + 1;<br />
    }<br />
}<br />
<br />
 <br />
<br />
 <br />
internal static bool IsDangerousUrl(string s)<br />
{<br />
    if (string.IsNullOrEmpty(s))<br />
    {<br />
        return false;<br />
    }<br />
    s = s.Trim();<br />
    int length = s.Length;<br />
    if (((((length &gt; 4) &amp;&amp; ((s[0] == 'h') || (s[0] == 'H'))) &amp;&amp; ((s[1] == 't') || (s[1] == 'T'))) &amp;&amp; (((s[2] == 't') || (s[2] == 'T')) &amp;&amp; ((s[3] == 'p') || (s[3] == 'P')))) &amp;&amp; ((s[4] == ':') || (((length &gt; 5) &amp;&amp; ((s[4] == 's') || (s[4] == 'S'))) &amp;&amp; (s[5] == ':'))))<br />
    {<br />
        return false;<br />
    }<br />
    if (s.IndexOf(':') == -1)<br />
    {<br />
        return false;<br />
    }<br />
    return true;<br />
}]]></description>
            <dc:creator>r0ckph1sh</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Sun, 27 Jul 2008 20:24:29 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?4,23676,23676#msg-23676</guid>
            <title>A potentially dangerous Request.QueryString value was detected</title>
            <link>http://sla.ckers.org/forum/read.php?4,23676,23676#msg-23676</link>
            <description><![CDATA[Not run into this before (ASP built in detection), anyone know how this works and what it's based on?]]></description>
            <dc:creator>asilvermtzion</dc:creator>
            <category>CSRF and Session Info</category>
            <pubDate>Sun, 27 Jul 2008 11:21:31 -0500</pubDate>
        </item>
    </channel>
</rss>
