You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Alexander Kolbasov (JIRA)" <ji...@apache.org> on 2017/07/06 22:07:00 UTC

[jira] [Comment Edited] (SENTRY-1665) cross-site scripting vulnerability in ConfServlet

    [ https://issues.apache.org/jira/browse/SENTRY-1665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16077261#comment-16077261 ] 

Alexander Kolbasov edited comment on SENTRY-1665 at 7/6/17 10:06 PM:
---------------------------------------------------------------------

[~btowles] I committed your fix to sentry-ha-redesign branch. Please also provide a patch for master branch.


was (Author: akolb):
[~btowles] I committed your fix to sentry-hapredesign branch. Please also provide a patch for master branch.

> cross-site scripting vulnerability in ConfServlet
> -------------------------------------------------
>
>                 Key: SENTRY-1665
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1665
>             Project: Sentry
>          Issue Type: Bug
>          Components: Sentry
>    Affects Versions: 1.8.0
>            Reporter: Alexander Kolbasov
>            Assignee: Brian Towles
>              Labels: bite-sized, newbie, security
>         Attachments: SENTRY-1665.001-sentry-ha-redesign.patch
>
>
> The ConfServlet class has the following code:
> {code}
>     String format = request.getParameter(FORMAT_PARAM);
>     ...
>     } else {
>       response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Bad format: " + format);
>     }
> {code}
> As a result HTTP parameter is directly written to Servlet error page.  Echoing this untrusted input allows for a reflected cross site scripting vulnerability. See http://en.wikipedia.org/wiki/Cross-site_scripting for more information.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)