Fixation Attacks and Protections
Fixation Attacks and Protections
com
UPDATED
SAP: Session (Fixation)
Attacks and Protections
(in Web Applications)
Raul Siles
[email protected]
March 17, 2011
Black Hat Europe 2011
Copyright © 2011 Taddong S.L. Todos los derechos reservados. All rights reserved.
Outline
finalization
Sessions
Pre-Auth
Session
Session
Authentication Access Control
Management
http://www.webappsec.org/projects/threat/
Copyright © 2011 Taddong S.L. www.taddong.com 7
Session Fixation
Obsession &
An habit of activity
or practice
http://daretobedomestic.blogspot.com/2010/07/fixation-friday-fitness-and-arms.html
http://www.fullsailbrewing.com/client/session-landing-page3.png
http://www.acrossecurity.com/papers/session_fixation.pdf
• SQL injection:
– Session management database (subtle attacks)
Copyright © 2011 Taddong S.L. www.taddong.com 21
Session Fixation Benefits
Session tracking
Pen-tester
Web-App
ID
Vulnerable
ID Web-App
Victim user
http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/00000/0000/300/376/376.strip.sunday.gif
• Open-source CMS
– Non-profit organizations, academic institutions,
and non-business related and …
– … business critical web-applications
• Commercial companies and governments
• Standalone, source-code customizations, and other
frameworks (internally and publicly)
• All 1.5.x Joomla! versions up to 1.5.15
– Depending on criticality of web application
Copyright © 2011 Taddong S.L. www.taddong.com 30
#1 Vulnerability Disclosure Timeline
UPDATED
Set-Cookie: JSESSIONID=Fz5f…qMql;
domain=.example.com; path=/
• Authentication (POST & HTTPS & cookie):
https://portal.example.com/private/miPortal
HTTPS
Session Secure
Authentication Management Access
New SAP security program: highlight security Is the all or nothing approach the
notes, periodic releases & credit right approximation?
– https://websmp130.sap-ag.de/sap/support/notes/
1310561 (SAP Service Marketplace)
http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/
c05604f6-4eb3-2d10-eea7-ceb666083a6a
Copyright © 2011 Taddong S.L. www.taddong.com 69
#3 Protections (2)
• Enable “SessionIdRegenerationEnabled”
– SAP Security Note 1310561
– Web Container Service property
– Two cookies required to identify sessions:
JSESSIONID & JSESSIONMARKID (“secure”)
– The new “secure” session ID is renewed on
every successful login
– Disabled by default but…
– Enabled in +7.11 SP06 & all SPs 7.20 & 7.30
– Specific scenarios may require extra steps
Copyright © 2011 Taddong S.L. www.taddong.com 70
#3 Protections (3)
• Use HTTPS-only links & remove HTTP
support in SAP Portal
• Enable “SystemCookiesHTTPSProtection”
– SAP Security Notes 1019335 & 1020365
– HTTP Provider Service property
– Sets the “secure” attribute for session and load
balancing cookies (JSESSIONID & saplb)
– Available in 6.40 SP21 & 7.0 SP14
– Disabled by default Vendor conservative settings & backward
compatibility. Security teams!!
Blog: blog.taddong.com
Twitter: @taddong
Raul Siles
Founder & Senior Security Analyst
[email protected]