Skip links

Cross site scripting in JSF, SAP security note 1252546

Description

This SAP Note describes how to reduce the risk of possible cross-site scripting (XSS) attacks in JSF.

There are two precautions already in place at SAP for XSS prevention in JSF applications, namely the ICM filter mechanism and the SAP component library for JSF.
o ICM filter mechanism
The ICM filter mechanism already provides some protection: by means of a configurable standard pattern filter, the ICM content filter can be configured to block code injection input as for example <script><java script code></script> or javascript:<java script code>
However, the ICM filter mechanism only provides protection in the special case where <script> and javascript keywords are written into the input field directly.
o SAP component library for JSF
The SAP component library for JSF (a. k. a. Light Speed Faces library, LSF) already has built-in support to protect against XSS: By means of the Unified Rendering in LS, the LSF library offers “escaped” (i. e. output encoded), and thus secure counterparts of the writeAttribute methods in Sun’s reference implementation.

Available fix and Supported packages

  • J2EE-FRMW | 7.10 | 7.11

Affected component

    BC-JAS-WEB-JSF
    JavaServer Faces

CVSS

Score: 0

Exploit

Detailed vulnerability information added to RedRays Security Platform. Contact [email protected] for details.

URL

https://launchpad.support.sap.com/#/notes/1252546

TAGS

#Application-Server-Java
#7.10
#7.11
#EhP1
#CE
#Java-EE
#WebContainer
#JSF
#XSS-attack
#Cross-site-scripting
#NetWeaver

How to detect over 4100 vulnerabilities in SAP Systems?

More to explorer

Initiating SAP Penetration Testing

►   Pentest, short for penetration testing, refers to a set of processes that simulate an attacker’s actions to identify security vulnerabilities. Companies

SAP Security Patch Day RedRays

May 2024 SAP Security Patch Day

Vulnerability: Multiple vulnerabilities in SAP CX Commerce SAP Component: CEC-SCC-PLA-PL CVE ID: CVE-2019-17495 CVSS Score: 9.8 CVSS Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Category: Program error