<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Is this injectable? (JSP)</title>
        <description>So, I'm dealing with an injection and can't figure out if I can actually do anything with it or not. The page in question is JSP and takes a GET parameter, appends it to the current domain/path, and adds .html to the end of it. 
Here's an example of the code:

response.sendRedirect(basePath + path + getParam + &amp;quot;.html&amp;quot;);


That getParam parameter is not sanitized. I can send it as &amp;quot;someotherfile.jsp#&amp;quot; and that will take care of the html file extension at the end, but this doesn't really get me anywhere other than redirecting to a resource that's already publicly available on the server anyway. If I supply something in the request that it doesn't know what to do with, it just returns &amp;quot;null.html&amp;quot;, which is empty.

Is there any other way to exploit this?</description>
        <link>http://sla.ckers.org/forum/read.php?16,43647,43647#msg-43647</link>
        <lastBuildDate>Sat, 25 May 2013 13:55:36 -0500</lastBuildDate>
        <generator>Phorum 5.2.15a</generator>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?16,43647,43661#msg-43661</guid>
            <title>Re: Is this injectable? (JSP)</title>
            <link>http://sla.ckers.org/forum/read.php?16,43647,43661#msg-43661</link>
            <description><![CDATA[Thanks for confirming that. I'll see if I can find some java vuln to get in the door.]]></description>
            <dc:creator>dangerbear</dc:creator>
            <category>SQL and Code Injection</category>
            <pubDate>Thu, 22 Mar 2012 08:57:44 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?16,43647,43649#msg-43649</guid>
            <title>Re: Is this injectable? (JSP)</title>
            <link>http://sla.ckers.org/forum/read.php?16,43647,43649#msg-43649</link>
            <description><![CDATA[Yeah, you cannot go out of the webdir; this is a redirect (so, it will be a 302). If you're luck w/ a old version of java, try to different vuln here (response splitting, header inj., etc.)]]></description>
            <dc:creator>nEUrOO</dc:creator>
            <category>SQL and Code Injection</category>
            <pubDate>Wed, 21 Mar 2012 14:16:29 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?16,43647,43648#msg-43648</guid>
            <title>Re: Is this injectable? (JSP)</title>
            <link>http://sla.ckers.org/forum/read.php?16,43647,43648#msg-43648</link>
            <description><![CDATA[Another note is that it plays well with ../ and I can set the parameter to ../../../somefile.jsp# and it will work, but I can't seem to get out of the web directory.]]></description>
            <dc:creator>dangerbear</dc:creator>
            <category>SQL and Code Injection</category>
            <pubDate>Wed, 21 Mar 2012 09:18:34 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?16,43647,43647#msg-43647</guid>
            <title>Is this injectable? (JSP)</title>
            <link>http://sla.ckers.org/forum/read.php?16,43647,43647#msg-43647</link>
            <description><![CDATA[So, I'm dealing with an injection and can't figure out if I can actually do anything with it or not. The page in question is JSP and takes a GET parameter, appends it to the current domain/path, and adds .html to the end of it. <br />
Here's an example of the code:<br />
<br />
response.sendRedirect(basePath + path + getParam + &quot;.html&quot;);<br />
<br />
<br />
That getParam parameter is not sanitized. I can send it as &quot;someotherfile.jsp#&quot; and that will take care of the html file extension at the end, but this doesn't really get me anywhere other than redirecting to a resource that's already publicly available on the server anyway. If I supply something in the request that it doesn't know what to do with, it just returns &quot;null.html&quot;, which is empty.<br />
<br />
Is there any other way to exploit this?]]></description>
            <dc:creator>dangerbear</dc:creator>
            <category>SQL and Code Injection</category>
            <pubDate>Wed, 21 Mar 2012 09:09:52 -0500</pubDate>
        </item>
    </channel>
</rss>
