Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 533E710817 for ; Thu, 22 Jan 2015 20:12:41 +0000 (UTC) Received: (qmail 77818 invoked by uid 500); 22 Jan 2015 20:12:35 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 77789 invoked by uid 500); 22 Jan 2015 20:12:35 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 77745 invoked by uid 99); 22 Jan 2015 20:12:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 20:12:35 +0000 Date: Thu, 22 Jan 2015 20:12:35 +0000 (UTC) From: "Donald Kwakkel (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6216) No output sanitizing in FormattedServiceListWriter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14288148#comment-14288148 ] Donald Kwakkel commented on CXF-6216: ------------------------------------- The OWASP site has a good explanation: https://www.owasp.org/index.php/Types_of_Cross-Site_Scripting. The kind which occur in this code is Reflected XSS. How to handle it is explained here: https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet. > No output sanitizing in FormattedServiceListWriter > --------------------------------------------------- > > Key: CXF-6216 > URL: https://issues.apache.org/jira/browse/CXF-6216 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 3.0.1 > Reporter: Donald Kwakkel > > No output sanitizing is done, which makes the code vulnerable for injection. I do not have a specific use case, but it is good habit to do. Maybe you can use the OWASP Sanitizer: https://www.owasp.org/index.php/OWASP_Java_HTML_Sanitizer_Project > One example from the file: > writer.write("Endpoint address: " + "" > + absoluteURL + ""); -- This message was sent by Atlassian JIRA (v6.3.4#6332)