[
https://issues.apache.org/jira/browse/JENA-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15123794#comment-15123794
]
ASF GitHub Bot commented on JENA-1123:
--------------------------------------
GitHub user LaurensRietveld opened a pull request:
https://github.com/apache/jena/pull/125
fixed query response values not getting html-escaped
This issue is related to https://issues.apache.org/jira/browse/JENA-1123
and https://github.com/OpenTriply/YASGUI.YASR/issues/83.
It solves the issue of query response values not properly getting escaped
when the results are drawn in a YASR datatable
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/LaurensRietveld/jena master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/125.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #125
----
commit 0e9f9319c0e433469ff72edc1513d6d9b1e31ad9
Author: Laurens Rietveld <[email protected]>
Date: 2016-01-29T17:08:31Z
fixed query response values not getting html-escaped
----
> Cross Site Scripting (XSS) vulnerability on Fuseki 2.3.1
> --------------------------------------------------------
>
> Key: JENA-1123
> URL: https://issues.apache.org/jira/browse/JENA-1123
> Project: Apache Jena
> Issue Type: Bug
> Components: Fuseki
> Affects Versions: Fuseki 2.3.1
> Reporter: Massimiliano Ricci
> Labels: security, xss
>
> In fuseki web interface, dataset.html page -> tab "query"
> it's possible to write query like:
> {noformat}
> SELECT
> ("<b>hello</b>" AS ?Y)
> ("<script>alert(document.domain)</script>" AS ?X)
> WHERE { }
> {noformat}
> that show a pop-up with hostname.
> Probably the problem is with the YASQE dependency.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)