SAP Security Note
High priority
SAP security note 1310561, "SAP J2EE Engine Session Fixation Protection", was released on 13.12.2010. Below are the symptom and SAP recommended solution.
Description
Symptom
A session fixation vulnerability in the SAP J2EE Engine can be exploited to gain access to authenticated user sessions. This allows an attacker to trick a user into using a session ID known to the attacker, providing unauthorized access when the user authenticates using that session ID.
Solution
- Upgrade to the latest version of the Engine. This fix depends on the fix from SAP Note 1175239 and requires applying the respective patch SAPJEECOR.SCA.
- Enable the session fixation protection mechanism. It is enabled by default in 7.11 SP06 and later, and in all service packs of 7.20 and 7.30.
- For other versions, open Configtool.
- Navigate to cluster-data > Global server configuration > services > servlet_jsp.
- Click on the SessionIdRegenerationEnabled property.
- In the Value field, type true.
- Press the Set button in the top-right corner.
- Press the Save button (diskette icon) in the top-left corner.
- Confirm all popups.
- Restart the server nodes for changes to take effect.
Reason and prerequisites
A session fixation vulnerability allows an attacker to trick a user into using a valid session ID known by the attacker. If the user authenticates with this session ID, the attacker gains access based on it. This vulnerability can affect any users, including administrators and regular users.
To prevent this vulnerability, it is strongly recommended to enable the SessionIdRegenerationEnabled property of the Web Container. Although this property is present in earlier service packs of the Engine, the session fixation protection handling has been significantly improved in the latest version of the Engine.
References
This note refers to
- SAP Note 1787413: User session lost when switching between Web applications
- SAP Note 1538719: Single Sign-On Configuration for SAP (X)MII
- SAP Note 1538139: HTTP session not found after cancelled request in FPN
- SAP Note 1521197: Update #1 to Security Note 1517094
- SAP Note 1517094: CRM-IC: Session Access Token
- SAP Note 1503236: Application configuration due to J2EE security settings
- SAP Note 1501922: The recall of the B2C application does not work
- SAP Note 1501919: Start.jsp enhancements
- SAP Note 1492234: No SessionIDRegeneration in CRM Web Channel B2C/B2B Scenario
- SAP Note 1464914: JSESSIONID cookie value is unexpectedly changed by the server
- SAP Note 1449940: Browsing Web Shop via HTTP with SessionIDRegenerationEnabled
- SAP Note 1417679: Session Fixation Attack Detection
- SAP Note 1175239: XSS attacks protection
Full note on SAP: SAP Support Launchpad note 1310561
Detailed exploitation and proof-of-concept material for this note is maintained in the RedRays Security Platform. For access, contact [email protected].
