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

PoC

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

Udemy SAP Security Course.

Join “SAP Security Core Concepts and Security Administration” which is part of the Blackhat course series. This course will help you master SAP security fundamentals, from securing SAP environments to managing user access and addressing vulnerabilities. It is ideal for IT professionals and SAP administrators, providing practical skills to safeguard critical business assets. Whether you’re a beginner or an expert looking to deepen your SAP security knowledge, this course is perfect for you.

More to explorer

SAP Hash Cracking Techniques

Understanding Hash Cracking Hashing is a one-way encryption technique employed to ensure data integrity, authenticate information, and secure passwords alongside other sensitive

Special offer for SAP Security Udemy course!

$ 9.99

Join “SAP Security Core Concepts and Security Administration” which is part of the Blackhat course series.