Skip links
Picture of Vahagn Vardanian

Vahagn Vardanian

Co-founder and CTO of RedRays

Application configuration due to J2EE security settings, SAP security note 1503236

SAP Note 1503236

SAP security note 1503236, "Application configuration due to J2EE security settings". Below are the symptom and SAP recommended solution.

Description

Symptom

You aim to enhance the security of your web applications by activating the security settings of SAP J2EE. However, enabling these settings can lead to issues with certain Web Channel applications or functions. This SAP Security Note provides the necessary configuration settings to address these problems.

Solution

To support security sessions in Web Channel applications, authentication must be carried out using the User Management Engine (UME) logon application of J2EE. Configuration depends on the application scenario (B2B or B2C).

B2B scenario applications (e.g., E-Commerce B2B, E-Service B2B, Business-on-Behalf): set the J2EE security settings SessionIdRegenerationEnabled = true, SystemCookiesDataProtection = true, and SystemCookiesHTTPSProtection = true. In Extended Configuration Management (XCM), set SSLEnabled = true (redirects to HTTPS when the login function is called) and configure UME authentication to enable session ID regeneration.

B2C scenario applications (e.g., E-Commerce B2C, E-Service B2C, Collaborative Show Room): set the J2EE security settings SessionIdRegenerationEnabled = true, SystemCookiesDataProtection = true, SecuritySessionIDHTTPSProtection = true, and SystemCookiesHTTPSProtection = false (this allows initiating requests with HTTP and switching to HTTPS during checkout). In XCM, set SSLEnabled = true and SSLSwitchEnabled = false under General Application Settings, Customer, b2c, b2cconfig.

For basket recovery, set ReInvokeEnabled = true, choose the "Javabasket" basket type in the application configuration, and activate usedatabaseBasket = true and basketRecoveryForUnknwonUser = true so the shopping basket is saved and recoverable even if the user is not logged in.

Reason and prerequisites

New security settings were introduced for the NetWeaver Application Server Java (SAP J2EE) to increase the security of web applications: SessionIdRegeneration, SystemCookiesDataProtection, SystemCookiesHTTPSProtection, and SecuritySessionIDHTTPSProtection. These enhancements help protect session data and secure cookies but require appropriate application configurations to function correctly.

References

Full note on SAP: SAP Support Launchpad note 1503236

Detailed exploitation and proof-of-concept material for this note is maintained in the RedRays Security Platform. For access, contact [email protected].

Explore More