commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <>
Subject [jira] [Moved] (TEXT-42) [XSS] Possible attacks through StringEscapeUtils.escapeEcmaScript?
Date Mon, 26 Dec 2016 16:41:58 GMT


Pascal Schumacher moved LANG-871 to TEXT-42:

        Fix Version/s:     (was: Discussion)
    Affects Version/s:     (was: 3.1)
          Component/s:     (was: lang.*)
             Workflow: jira  (was: Default workflow, editable Closed status)
                  Key: TEXT-42  (was: LANG-871)
              Project: Commons Text  (was: Commons Lang)

> [XSS] Possible attacks through StringEscapeUtils.escapeEcmaScript?
> ------------------------------------------------------------------
>                 Key: TEXT-42
>                 URL:
>             Project: Commons Text
>          Issue Type: Bug
>            Reporter: Andy Reek
>              Labels: XSS
> org.apache.commons.lang3.StringEscapeUtils.escapeEcmaScript does the escape via a prefixed
'\' on all characters which must be escaped. I am not sure if this is really secure, if am
looking at the comments on
They say it is possible to do an attack by escape the escape. I tested this with the string
'\"' and the output was '\\\"'. Is this really ecma-/java-script secure? Or is it better to
use the implementation used by OWASP?

This message was sent by Atlassian JIRA

View raw message