SlideShare ist ein Scribd-Unternehmen logo
1 von 44
Downloaden Sie, um offline zu lesen
Preventing vulnerabilities in HANA-
based deployments
MARCH 2016 - TROOPERS SECURITY CONFERENCE
This presentation contains references to the products of SAP SE. SAP, R/3, xApps, xApp, SAP NetWeaver,
Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned
herein are trademarks or registered trademarks of SAP AG in Germany and in several other countries all
over the world.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web
Intelligence, Xcelsius and other Business Objects products and services mentioned herein are trademarks
or registered trademarks of Business Objects in the United States and/or other countries.
SAP SE is neither the author nor the publisher of this publication and is not responsible for its content,
and SAP Group shall not be liable for errors or omissions with respect to the materials.
Disclaimer
• Introduction
• SAP HANA Architecture and Attack surface
• Cyber-Attacks in HANA platforms
○TrexNet Attacks
○Buffer Overflows
○Remote Passwords retrieval
• Securing SAP HANA
• Conclusions
Agenda
Introduction
@2016 Onapsis, Inc. All Rights Reserved
▪ Founded: 2009
▪ Locations: Buenos Aires, AR | Boston, MA | Berlin, DE | Lyon, FR
▪ Technology: Onapsis Security Platform (Enterprise Solution)
▪ Research: 300+ SAP and Oracle security advisories and presentations published
Transforming how organizations protect the applications that
manage their business-critical processes and information.
Onapsis overview
@2016 Onapsis, Inc. All Rights Reserved
• Background on Penetration Testing and vulnerabilities research
• Reported vulnerabilities in diverse SAP and Oracle components
• Authors/Contributors on diverse posts and publications
• Speakers and Trainers at Information Security Conferences
• http://www.onapsis.com
Who are we?
Juan Perez-Etchegoyen (JP)
Nahuel Sanchez
HANA systems store and process the most critical business
information in the Organization. If the SAP/HANA platform is breached,
an intruder would be able to perform different attacks such as:
• ESPIONAGE: Obtain customers/vendors/human resources data, financial planning
information, balances, profits, sales information, manufacturing recipes, etc.
• SABOTAGE: Paralyze the operation of the organization by shutting down the SAP
system, disrupting interfaces with other systems and deleting critical information, etc.
• FRAUD: Modify financial information, tamper sales and purchase orders, create
new vendors, modify vendor bank account numbers, etc.
A Business-Critical Infrastructure
SAP Strategy is shaped around products that run on top of SAP HANA
• PRIVATE CLOUD
• PUBLIC CLOUD
• S/4HANA
• Apps powered by HANA
An Infrastructure critical for the business
Images Copyright © SAP
@2016 Onapsis, Inc. All Rights Reserved
Evolution of vulnerabilities in HANA
SAP Security Notes in HANA (2011-2015)
@2016 Onapsis, Inc. All Rights Reserved
Sap cyber security breaches & implications
A Dangerous Status-Quo
Key Findings:
• 75% said their senior leadership understands the importance and
criticality of SAP to the bottom line, but only 21% said their
leaders are aware of SAP cybersecurity risks.
• 60% said the impact of information theft, modification of data and
disruption of business processes on their company’s SAP would
be catastrophic or very serious.
• 65% said their SAP system was breached at least once in the
last 24 months.
Architecture and Attack
Surface
@2016 Onapsis, Inc. All Rights Reserved
In-memory database
Supports cloud implementations
Integrates with calculation engines
Diverse set of deployment options
Integrated HTTP Server
Used mainly for Business Applications
SAP HANA ARCHITECTURE
SAP HANA COMPONENTS
@2016 Onapsis, Inc. All Rights Reserved
SQL/MDX port
HTTP service
SAP Host Agent and MC
Outgoing connections
Internal communications
Solution Manager
Mail servers/Other Web Serves
R servers
SAP Support
SAP HANA ARCHITECTURE
SAP HANA ENTRY POINTS
http://help.sap.com/saphelp_hanaplatform/helpdata/en/37/d2573cb24e4d75a23e8577fb4f73b7/content.htm
http://en.community.dell.com/techcenter/b/techcenter/archive/2012/09/28/sap-hana-core-architecture
@2016 Onapsis, Inc. All Rights Reserved
Authentication
Authorization
Access Control
Encryption
Mitm Attacks?
DoS Attacks?
SAP HANA ARCHITECTURE
SAP HANA PROTOCOLS
http://help.sap.com/saphelp_hanaplatform/helpdata/en/37/d2573cb24e4d75a23e8577fb4f73b7/content.htm
@2016 Onapsis, Inc. All Rights Reserved
● Database users
● Web Apps users
● HANA Administrators
● Interface users
● Authorizations ( System,
Application, Object, Analytic,
Package, Other users )
SAP HANA ARCHITECTURE
SAP HANA WEAKEST LINK
http://help.sap.com/saphelp_hanaplatform/helpdata/en/37/d2573cb24e4d75a23e8577fb4f73b7/content.htm
@2016 Onapsis, Inc. All Rights Reserved
•Network connection
•NMAP
Traditional TCP ports pattern (SysNR)
New TCP ports pattern
HTTP, MDX, MC, HostAgent
• Browser
• HTTP welcome page
• Several “public” apps
•/public/sap/docs/hana/admin/help
…
4390/tcp open ssl/unknown
8090/tcp open unknown
39015/tcp open tcpwrapped
39017/tcp open tcpwrapped
59013/tcp open http gSOAP httpd 2.7
59014/tcp open ssl/http gSOAP httpd 2.7
…
SAP HANA NETWORK DISCOVERY
@2016 Onapsis, Inc. All Rights Reserved
SAP HANA Architecture & Entry points
HTTP/s InterfaceSQL Interface
TrexNet Interfaces
Source: SAP A.G.
TrexNet Attacks to SAP
HANA
(CVE-2015-7828)
@2016 Onapsis, Inc. All Rights Reserved
▸ Single host scenario
SAP HANA Architecture & TrexNet
nameserver (3xx01)
preprocessor (3xx02)
indexserver (3xx03)
statisticsserver (3xx05)
xsengine (3xx07)
compilerserver (3xx07)
SAP HANA Host 1
▸ TrexNet Protocol
▸ Custom
▸ Undocumented
▸ Inherited from Trex
@2016 Onapsis, Inc. All Rights Reserved
SAP HANA Architecture & TrexNet contd.
▸ Distributed scenario
nameserver (3xx01)
preprocessor (3xx02)
indexserver (3xx03)
statisticsserver (3xx05)
xsengine (3xx07)
compilerserver (3xx07)
Master Worker
nameserver (3xx01)
preprocessor (3xx02)
indexserver (3xx03)
statisticsserver (3xx05)
compilerserver (3xx07)
Worker
nameserver (3xx01)
preprocessor (3xx02)
indexserver (3xx03)
statisticsserver (3xx05)
compilerserver (3xx07)
xsengine (3xx07) xsengine (3xx07)
▸ TrexNet Protocol
▸ Mandatory
▸ Host comm.
▸ Replication,
HA
▸ Hardening
required
@2016 Onapsis, Inc. All Rights Reserved
TrexNet Security
▸ Unauthenticated protocol
▸ listens on localhost (SPS06)
▸ SSL enabled by default for internal
communications (SPS10)
https://help.sap.com/saphelp_hanaplatform/helpdata/en/de/f770d6bb5710149f32a6c5593f5877/content.htm
▸ Critical vulnerabilities fixed after
Onapsis report
▸ Arbitrary File Read/Write
▸ Remote DoS
▸ Python code Execution
▸ others...
▸ Different configuration options
@2016 Onapsis, Inc. All Rights Reserved
DEMO #1
TrexNet Security
@2016 Onapsis, Inc. All Rights Reserved
What happened?
Exploitation of TrexNet protocols demo
▸ Remote unauthenticated user (NO USER NEEDED)
▸ Network access to specific SAP HANA services
▸ Attacker can trigger specific unauthenticated functionality in HANA
▸ After a successful execution, sidadm privileges are obtained → equivalent to FULL
SYSTEM COMPROMISE
@2016 Onapsis, Inc. All Rights Reserved
TrexNet Security
Solution
▸ Implement a secure configuration (SAP Security Note 2183363).
▸ Enable SSL if not enabled by default, follow SAP HANA Security guide.
▸ Use a dedicated network for the “Internal communications”.
Buffer overflows in SAP
HANA
(CVE-2015-7993) and (CVE-2015-7993)
@2016 Onapsis, Inc. All Rights Reserved
Overview
▸ Discovered by Onapsis
▸ Highly critical vulnerabilities (patched by Hot News notes)
▸ Full compromise
▸ Cloud services
▸ OS isolation
▸ Hard to code reliable exploits (more on this later)
▸ Remote unauthenticated DoS otherwise
HANA Host
Web
Dispatcher
HTTP/S Interface
(80XX/43XX)
XS
DBSQL
Interface
3xx15
@2016 Onapsis, Inc. All Rights Reserved
DEMO #2
@2016 Onapsis, Inc. All Rights Reserved
What happened?
Exploitation of buffer overflows in HANA
▸ Remote unauthenticated user (NO USER NEEDED)
▸ Access to HANA HTTP interface (potentially internet/cloud)
▸ Triggers a buffer overflow in the HANA system
▸ After a successful exploitation, potentially sidadm could be obtained → FULL
SYSTEM COMPROMISE
@2016 Onapsis, Inc. All Rights Reserved
Solution
▸ Implement SAP Security Notes 2197397 and 2197428.
▸ If possible, restrict access to HTTP and/or SQL interfaces only
to trusted networks.
@2016 Onapsis, Inc. All Rights Reserved
HTTP Login Remote Code Execution (CVE-2015-7993) Analysis
▸ Pre auth. Heap overflow in process hdbindexserver
▸ Triggered by a long username or password
▸ Vulnerable function “HandleAuthRequest”
▸ memcpy use!
▸ Plenty of space to write payload
▸ Objects in the heap are
overwritten
▸ Different lengths of the username / Password will overwrite different objects. This leads to
different crashes that are hard to control / predict.
@2016 Onapsis, Inc. All Rights Reserved
HTTP Login Remote Code Execution (CVE-2015-7993) Analysis
▸ Suse Linux used as underlying OS.
▸ System-wide ASLR enabled by default
▸ hdbindexserver process (SPS09)
▸ NX bit enabled
▸ PIE enabled
▸ Information leak vulnerability required!
▸ Heap massaging
Remote Passwords
retrieval in SAP HANA
(CVE-2015-7991)
@2016 Onapsis, Inc. All Rights Reserved
Sensitive information logging & Remote trace disclosure
▸ Components affected: Internal web dispatcher & Standalone
web dispatcher
▸ Handles HTTP/s requests
▸ Web configuration is possible
▸ “/sap/wdisp/admin” URL
▸ Can be configured to log every HTTP request
▸ sapwebdisp.pfl / webdispatcher.ini
▸ Trace level can be configured
HANA Host
Web
Dispatcher
HTTP/S endpoint 80XX / 43XX
XS
DB
@2016 Onapsis, Inc. All Rights Reserved
Sensitive information logging & Remote trace disclosure
▸ if Trace level > 2, Passwords are logged in plaintext! (VULNERABILITY #1)
▸ Trace files can be downloaded
▸ Without any prior authentication! (VULNERABILITY #2)
http://<IP>:<PORT>/sap/hana/xs/wdisp/admin/download?ftype=0
http://<IP>:<PORT>/sap/hana/xs/wdisp/admin/download?ftype=1
@2016 Onapsis, Inc. All Rights Reserved
DEMO #3
@2016 Onapsis, Inc. All Rights Reserved
What happened?
Remote Passwords retrieval demo
▸ Remote unauthenticated user (NO USER NEEDED)
▸ Access to HANA HTTP interface (potentially internet/cloud)
▸ Uses the browser to access a specific url
▸ Downloads HANA traces and parses them looking for passwords
▸ Once the attacker got access credentials, he connects back to the target system
▸ Depending on the privileges of the retrieved credentials, the attacker could
compromise the HANA system and its information
@2016 Onapsis, Inc. All Rights Reserved
Solution
▸ Restrict network access to reduce attack surface whenever possible
▸ Implement security notes 2148854, 2011786 and 1990354
So, How do we protect
HANA?
@2016 Onapsis, Inc. All Rights Reserved
Develop Secure Applications
How do we protect our HANA systems?
Restrict packages exposed via http
Secure authentication methods required web apps
Use restricted user types for HTTP apps.
Enable Cross-Site-Request Forgery (XSRF) Protection
Validate all parameters! (There are protections but only to “help” developers)
Secure HANA communications
Configure SSL for all communications.
Force the use of SSL.
Restrict access at network level.
Secure the certificates and establish a proper key management procedure.
@2016 Onapsis, Inc. All Rights Reserved
Secure user access to HANA
How do we protect our HANA systems?
Secure the standard SYSTEM user.
Secure <sid>adm user.
Use restricted users if possible.
Use SSO (Single Sign-On) mechanisms.
Implement strong password policies.
Assign minimum required privileges
System privileges
Object privileges
Analytic privileges
Package privileges
Application privileges
User privileges
@2016 Onapsis, Inc. All Rights Reserved
Secure the data in HANA
How do we protect our HANA systems?
Understand HANA encryption
Use encryption for sensitive data
Establish a proper key management procedure
Change default keys!
Enable Logs and Traces
Enable audit log
Restrict Audit Roles
Secure access to:
Audit Trail DB Table, default_audit_trail_path,
UIS.sap.hana.uis.db::DEFAULT_AUDIT_TBL, Trace and dump files
@2016 Onapsis, Inc. All Rights Reserved
Secure the data in HANA
How do we protect our HANA systems?
Understand HANA encryption
Use encryption for sensitive data
Establish a proper key management procedure
Change default keys!
Enable Logs and Traces
Enable audit log
Restrict Audit Roles
Secure access to:
Audit Trail DB Table, default_audit_trail_path,
UIS.sap.hana.uis.db::DEFAULT_AUDIT_TBL, Trace and dump files
but specially… Apply the latest patches to
secure HANA systems and keep up with the
latest SAP Security Notes!
@2016 Onapsis, Inc. All Rights Reserved
Conclusions
• Keep the HANA systems updated with the latest patches should not be
optional
• SAP HANA was built with a security focus, however many responsibilities rely
on the users (administrators, developers, end users…)
• Specialized resources and software can help you to securely configure and
detect security vulnerabilities on SAP HANA systems.
• Keep up with SAP Documentation:
Read the SAP HANA Security Guide :
http://help.sap.com/hana/SAP_HANA_Security_Guide_en.pdf
Follow SAP HANA Security Whitepaper which gives an overview of HANA Security
as a good starting point: http://www.saphana.com/docs/DOC-3751
SAP HANA Developer Guide which contains information on secure programming
practices: http://help.sap.com/hana/SAP_HANA_Security_Guide_en.pdf
A good guide which gives information on how to build standard roles in HANA:
https://scn.sap.com/docs/DOC-53974
QUESTIONS?
THANKS!
MARCH 2016 - TROOPERS SECURITY CONFERENCE

Weitere ähnliche Inhalte

Was ist angesagt?

Attacks Based on Security Configurations
Attacks Based on Security ConfigurationsAttacks Based on Security Configurations
Attacks Based on Security ConfigurationsOnapsis Inc.
 
Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...
 	Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe... 	Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...
Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...Onapsis Inc.
 
Penetration Testing SAP Systems
Penetration Testing SAP SystemsPenetration Testing SAP Systems
Penetration Testing SAP SystemsOnapsis Inc.
 
Cyber-attacks to SAP Systems
Cyber-attacks to SAP SystemsCyber-attacks to SAP Systems
Cyber-attacks to SAP SystemsOnapsis Inc.
 
Onapsis SAP Forensics: Detecting White-Collar Cyber Crime with SAP Forensics
Onapsis SAP Forensics: Detecting White-Collar Cyber Crime with SAP ForensicsOnapsis SAP Forensics: Detecting White-Collar Cyber Crime with SAP Forensics
Onapsis SAP Forensics: Detecting White-Collar Cyber Crime with SAP ForensicsOnapsis Inc.
 
SAP Business Objects Attacks
SAP Business Objects AttacksSAP Business Objects Attacks
SAP Business Objects AttacksOnapsis Inc.
 
Highway to Production Securing the SAP TMS
Highway to Production Securing the SAP TMSHighway to Production Securing the SAP TMS
Highway to Production Securing the SAP TMSOnapsis Inc.
 
Dissecting and Attacking RMI Frameworks
Dissecting and Attacking RMI FrameworksDissecting and Attacking RMI Frameworks
Dissecting and Attacking RMI FrameworksOnapsis Inc.
 
Sap penetration testing_defense_in_depth
Sap penetration testing_defense_in_depthSap penetration testing_defense_in_depth
Sap penetration testing_defense_in_depthIgor Igoroshka
 
Unbreakable oracle er_ps_siebel_jd_edwards
Unbreakable oracle er_ps_siebel_jd_edwardsUnbreakable oracle er_ps_siebel_jd_edwards
Unbreakable oracle er_ps_siebel_jd_edwardsOnapsis Inc.
 
All your SAP passwords belong to us
All your SAP passwords belong to usAll your SAP passwords belong to us
All your SAP passwords belong to usERPScan
 
Attacking SAP users with sapsploit
Attacking SAP users with sapsploit Attacking SAP users with sapsploit
Attacking SAP users with sapsploit ERPScan
 
5 real ways to destroy business by breaking SAP applications
5 real ways to destroy business by breaking SAP applications5 real ways to destroy business by breaking SAP applications
5 real ways to destroy business by breaking SAP applicationsERPScan
 
Practical SAP pentesting workshop (NullCon Goa)
Practical SAP pentesting workshop (NullCon Goa)Practical SAP pentesting workshop (NullCon Goa)
Practical SAP pentesting workshop (NullCon Goa)ERPScan
 
SAP Forensics Detecting White Collar Cyber-crime
SAP Forensics Detecting White Collar Cyber-crimeSAP Forensics Detecting White Collar Cyber-crime
SAP Forensics Detecting White Collar Cyber-crimeOnapsis Inc.
 
Practical SAP pentesting (B-Sides San Paulo)
Practical SAP pentesting (B-Sides San Paulo)Practical SAP pentesting (B-Sides San Paulo)
Practical SAP pentesting (B-Sides San Paulo)ERPScan
 
Incident Response and SAP Systems
Incident Response and SAP SystemsIncident Response and SAP Systems
Incident Response and SAP SystemsOnapsis Inc.
 
Cyber-Attacks & SAP systems: Is Our Business-Critical Infrastructure Exposed?
Cyber-Attacks & SAP systems: Is Our Business-Critical Infrastructure Exposed?Cyber-Attacks & SAP systems: Is Our Business-Critical Infrastructure Exposed?
Cyber-Attacks & SAP systems: Is Our Business-Critical Infrastructure Exposed?michelemanzotti
 
Inception of the SAP Platforms Brain: Attacks on SAP Solution Manager
Inception of the SAP Platforms Brain: Attacks on SAP Solution ManagerInception of the SAP Platforms Brain: Attacks on SAP Solution Manager
Inception of the SAP Platforms Brain: Attacks on SAP Solution ManagerOnapsis Inc.
 

Was ist angesagt? (20)

Attacks Based on Security Configurations
Attacks Based on Security ConfigurationsAttacks Based on Security Configurations
Attacks Based on Security Configurations
 
Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...
 	Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe... 	Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...
Your Crown Jewels Online: Further Attacks to SAP Web Applications (RSAConfe...
 
Penetration Testing SAP Systems
Penetration Testing SAP SystemsPenetration Testing SAP Systems
Penetration Testing SAP Systems
 
Cyber-attacks to SAP Systems
Cyber-attacks to SAP SystemsCyber-attacks to SAP Systems
Cyber-attacks to SAP Systems
 
Onapsis SAP Forensics: Detecting White-Collar Cyber Crime with SAP Forensics
Onapsis SAP Forensics: Detecting White-Collar Cyber Crime with SAP ForensicsOnapsis SAP Forensics: Detecting White-Collar Cyber Crime with SAP Forensics
Onapsis SAP Forensics: Detecting White-Collar Cyber Crime with SAP Forensics
 
SAP Business Objects Attacks
SAP Business Objects AttacksSAP Business Objects Attacks
SAP Business Objects Attacks
 
Highway to Production Securing the SAP TMS
Highway to Production Securing the SAP TMSHighway to Production Securing the SAP TMS
Highway to Production Securing the SAP TMS
 
Dissecting and Attacking RMI Frameworks
Dissecting and Attacking RMI FrameworksDissecting and Attacking RMI Frameworks
Dissecting and Attacking RMI Frameworks
 
Sap penetration testing_defense_in_depth
Sap penetration testing_defense_in_depthSap penetration testing_defense_in_depth
Sap penetration testing_defense_in_depth
 
Unbreakable oracle er_ps_siebel_jd_edwards
Unbreakable oracle er_ps_siebel_jd_edwardsUnbreakable oracle er_ps_siebel_jd_edwards
Unbreakable oracle er_ps_siebel_jd_edwards
 
All your SAP passwords belong to us
All your SAP passwords belong to usAll your SAP passwords belong to us
All your SAP passwords belong to us
 
Attacking SAP users with sapsploit
Attacking SAP users with sapsploit Attacking SAP users with sapsploit
Attacking SAP users with sapsploit
 
5 real ways to destroy business by breaking SAP applications
5 real ways to destroy business by breaking SAP applications5 real ways to destroy business by breaking SAP applications
5 real ways to destroy business by breaking SAP applications
 
Practical SAP pentesting workshop (NullCon Goa)
Practical SAP pentesting workshop (NullCon Goa)Practical SAP pentesting workshop (NullCon Goa)
Practical SAP pentesting workshop (NullCon Goa)
 
Sap security – thinking with a hacker’s hat
Sap security – thinking with a hacker’s hatSap security – thinking with a hacker’s hat
Sap security – thinking with a hacker’s hat
 
SAP Forensics Detecting White Collar Cyber-crime
SAP Forensics Detecting White Collar Cyber-crimeSAP Forensics Detecting White Collar Cyber-crime
SAP Forensics Detecting White Collar Cyber-crime
 
Practical SAP pentesting (B-Sides San Paulo)
Practical SAP pentesting (B-Sides San Paulo)Practical SAP pentesting (B-Sides San Paulo)
Practical SAP pentesting (B-Sides San Paulo)
 
Incident Response and SAP Systems
Incident Response and SAP SystemsIncident Response and SAP Systems
Incident Response and SAP Systems
 
Cyber-Attacks & SAP systems: Is Our Business-Critical Infrastructure Exposed?
Cyber-Attacks & SAP systems: Is Our Business-Critical Infrastructure Exposed?Cyber-Attacks & SAP systems: Is Our Business-Critical Infrastructure Exposed?
Cyber-Attacks & SAP systems: Is Our Business-Critical Infrastructure Exposed?
 
Inception of the SAP Platforms Brain: Attacks on SAP Solution Manager
Inception of the SAP Platforms Brain: Attacks on SAP Solution ManagerInception of the SAP Platforms Brain: Attacks on SAP Solution Manager
Inception of the SAP Platforms Brain: Attacks on SAP Solution Manager
 

Ähnlich wie Preventing Vulnerabilities in SAP HANA based Deployments

NSC #2 - D2 04 - Ezequiel Gutesman - Blended Web and Database Attacks
NSC #2 - D2 04 - Ezequiel Gutesman - Blended Web and Database AttacksNSC #2 - D2 04 - Ezequiel Gutesman - Blended Web and Database Attacks
NSC #2 - D2 04 - Ezequiel Gutesman - Blended Web and Database AttacksNoSuchCon
 
SAP HANA Security: New Technology, New Risks
SAP HANA Security: New Technology, New RisksSAP HANA Security: New Technology, New Risks
SAP HANA Security: New Technology, New RisksVirtual Forge
 
SAP HANA SPS10- Multitenant Database Containers
SAP HANA SPS10- Multitenant Database ContainersSAP HANA SPS10- Multitenant Database Containers
SAP HANA SPS10- Multitenant Database ContainersSAP Technology
 
Custom Development - SAP HANA
Custom Development - SAP HANACustom Development - SAP HANA
Custom Development - SAP HANAMichal Korzen
 
SAP HANA & S/4HANA: How hackers are compromising S/4HANA and how you can prot...
SAP HANA & S/4HANA: How hackers are compromising S/4HANA and how you can prot...SAP HANA & S/4HANA: How hackers are compromising S/4HANA and how you can prot...
SAP HANA & S/4HANA: How hackers are compromising S/4HANA and how you can prot...akquinet enterprise solutions GmbH
 
SAP HANA Cloud Platform - Overview
SAP HANA Cloud Platform - OverviewSAP HANA Cloud Platform - Overview
SAP HANA Cloud Platform - OverviewMatthias Steiner
 
MySQL Enterprise Edition Portfolio
MySQL Enterprise Edition PortfolioMySQL Enterprise Edition Portfolio
MySQL Enterprise Edition PortfolioMySQL Brasil
 
関西DB勉強会 (SAP HANA, express edition)
関西DB勉強会 (SAP HANA, express edition)関西DB勉強会 (SAP HANA, express edition)
関西DB勉強会 (SAP HANA, express edition)Koji Shinkubo
 
Accelerate2022-Solving the SAP Security Gap through Application-aware Network...
Accelerate2022-Solving the SAP Security Gap through Application-aware Network...Accelerate2022-Solving the SAP Security Gap through Application-aware Network...
Accelerate2022-Solving the SAP Security Gap through Application-aware Network...PeterSmetny1
 
Running Microservices with Cloud Foundry and AWS
Running Microservices with Cloud Foundry and AWSRunning Microservices with Cloud Foundry and AWS
Running Microservices with Cloud Foundry and AWSJohannes Engelke
 
Develop Stable, High-Performance Applications for SAP HANA
Develop Stable, High-Performance Applications for SAP HANADevelop Stable, High-Performance Applications for SAP HANA
Develop Stable, High-Performance Applications for SAP HANAVirtual Forge
 
SAP HANA Cloud Platform: The void between your Datacenter and the Cloud
SAP HANA Cloud Platform: The void between your Datacenter and the CloudSAP HANA Cloud Platform: The void between your Datacenter and the Cloud
SAP HANA Cloud Platform: The void between your Datacenter and the CloudSAP HANA Cloud Platform
 
Two Years with SAP HANA Express
Two Years with SAP HANA ExpressTwo Years with SAP HANA Express
Two Years with SAP HANA ExpressHP Seitz
 
Development to Deployment with SAP HANA
Development to Deployment with SAP HANADevelopment to Deployment with SAP HANA
Development to Deployment with SAP HANACraig Cmehil
 
Datameer6 for prospects - june 2016_v2
Datameer6 for prospects - june 2016_v2Datameer6 for prospects - june 2016_v2
Datameer6 for prospects - june 2016_v2Datameer
 
SAP HANA Vora SITMTY 20160707
SAP HANA Vora SITMTY 20160707SAP HANA Vora SITMTY 20160707
SAP HANA Vora SITMTY 20160707Henrique Pinto
 
OWASP TOP10 2017 - Nowa lista przebojów podatności
OWASP TOP10 2017 - Nowa lista przebojów podatnościOWASP TOP10 2017 - Nowa lista przebojów podatności
OWASP TOP10 2017 - Nowa lista przebojów podatnościklagrz
 
HIF Paris 2014 - SAP - SAP HANA : bien plus qu’une base de données en mémoire
HIF Paris 2014 - SAP - SAP HANA : bien plus qu’une base de données en mémoireHIF Paris 2014 - SAP - SAP HANA : bien plus qu’une base de données en mémoire
HIF Paris 2014 - SAP - SAP HANA : bien plus qu’une base de données en mémoireHitachi Data Systems France
 

Ähnlich wie Preventing Vulnerabilities in SAP HANA based Deployments (20)

NSC #2 - D2 04 - Ezequiel Gutesman - Blended Web and Database Attacks
NSC #2 - D2 04 - Ezequiel Gutesman - Blended Web and Database AttacksNSC #2 - D2 04 - Ezequiel Gutesman - Blended Web and Database Attacks
NSC #2 - D2 04 - Ezequiel Gutesman - Blended Web and Database Attacks
 
SAP HANA Security: New Technology, New Risks
SAP HANA Security: New Technology, New RisksSAP HANA Security: New Technology, New Risks
SAP HANA Security: New Technology, New Risks
 
SAP HANA SPS10- Multitenant Database Containers
SAP HANA SPS10- Multitenant Database ContainersSAP HANA SPS10- Multitenant Database Containers
SAP HANA SPS10- Multitenant Database Containers
 
Custom Development - SAP HANA
Custom Development - SAP HANACustom Development - SAP HANA
Custom Development - SAP HANA
 
SAP HANA & S/4HANA: How hackers are compromising S/4HANA and how you can prot...
SAP HANA & S/4HANA: How hackers are compromising S/4HANA and how you can prot...SAP HANA & S/4HANA: How hackers are compromising S/4HANA and how you can prot...
SAP HANA & S/4HANA: How hackers are compromising S/4HANA and how you can prot...
 
SAP HANA Cloud Platform - Overview
SAP HANA Cloud Platform - OverviewSAP HANA Cloud Platform - Overview
SAP HANA Cloud Platform - Overview
 
MySQL Enterprise Edition Portfolio
MySQL Enterprise Edition PortfolioMySQL Enterprise Edition Portfolio
MySQL Enterprise Edition Portfolio
 
関西DB勉強会 (SAP HANA, express edition)
関西DB勉強会 (SAP HANA, express edition)関西DB勉強会 (SAP HANA, express edition)
関西DB勉強会 (SAP HANA, express edition)
 
Accelerate2022-Solving the SAP Security Gap through Application-aware Network...
Accelerate2022-Solving the SAP Security Gap through Application-aware Network...Accelerate2022-Solving the SAP Security Gap through Application-aware Network...
Accelerate2022-Solving the SAP Security Gap through Application-aware Network...
 
Running Microservices with Cloud Foundry and AWS
Running Microservices with Cloud Foundry and AWSRunning Microservices with Cloud Foundry and AWS
Running Microservices with Cloud Foundry and AWS
 
Develop Stable, High-Performance Applications for SAP HANA
Develop Stable, High-Performance Applications for SAP HANADevelop Stable, High-Performance Applications for SAP HANA
Develop Stable, High-Performance Applications for SAP HANA
 
SAP HANA Cloud Platform Expert Session - SAP HANA Cloud Platform Analytics
SAP HANA Cloud Platform Expert Session - SAP HANA Cloud Platform AnalyticsSAP HANA Cloud Platform Expert Session - SAP HANA Cloud Platform Analytics
SAP HANA Cloud Platform Expert Session - SAP HANA Cloud Platform Analytics
 
SAP HANA Cloud Platform: The void between your Datacenter and the Cloud
SAP HANA Cloud Platform: The void between your Datacenter and the CloudSAP HANA Cloud Platform: The void between your Datacenter and the Cloud
SAP HANA Cloud Platform: The void between your Datacenter and the Cloud
 
Two Years with SAP HANA Express
Two Years with SAP HANA ExpressTwo Years with SAP HANA Express
Two Years with SAP HANA Express
 
SUSE Technical Webinar: Build HANA Apps in the Framework of the SAP and SUSE ...
SUSE Technical Webinar: Build HANA Apps in the Framework of the SAP and SUSE ...SUSE Technical Webinar: Build HANA Apps in the Framework of the SAP and SUSE ...
SUSE Technical Webinar: Build HANA Apps in the Framework of the SAP and SUSE ...
 
Development to Deployment with SAP HANA
Development to Deployment with SAP HANADevelopment to Deployment with SAP HANA
Development to Deployment with SAP HANA
 
Datameer6 for prospects - june 2016_v2
Datameer6 for prospects - june 2016_v2Datameer6 for prospects - june 2016_v2
Datameer6 for prospects - june 2016_v2
 
SAP HANA Vora SITMTY 20160707
SAP HANA Vora SITMTY 20160707SAP HANA Vora SITMTY 20160707
SAP HANA Vora SITMTY 20160707
 
OWASP TOP10 2017 - Nowa lista przebojów podatności
OWASP TOP10 2017 - Nowa lista przebojów podatnościOWASP TOP10 2017 - Nowa lista przebojów podatności
OWASP TOP10 2017 - Nowa lista przebojów podatności
 
HIF Paris 2014 - SAP - SAP HANA : bien plus qu’une base de données en mémoire
HIF Paris 2014 - SAP - SAP HANA : bien plus qu’une base de données en mémoireHIF Paris 2014 - SAP - SAP HANA : bien plus qu’une base de données en mémoire
HIF Paris 2014 - SAP - SAP HANA : bien plus qu’une base de données en mémoire
 

Kürzlich hochgeladen

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 

Kürzlich hochgeladen (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

Preventing Vulnerabilities in SAP HANA based Deployments

  • 1. Preventing vulnerabilities in HANA- based deployments MARCH 2016 - TROOPERS SECURITY CONFERENCE
  • 2. This presentation contains references to the products of SAP SE. SAP, R/3, xApps, xApp, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius and other Business Objects products and services mentioned herein are trademarks or registered trademarks of Business Objects in the United States and/or other countries. SAP SE is neither the author nor the publisher of this publication and is not responsible for its content, and SAP Group shall not be liable for errors or omissions with respect to the materials. Disclaimer
  • 3. • Introduction • SAP HANA Architecture and Attack surface • Cyber-Attacks in HANA platforms ○TrexNet Attacks ○Buffer Overflows ○Remote Passwords retrieval • Securing SAP HANA • Conclusions Agenda
  • 5. @2016 Onapsis, Inc. All Rights Reserved ▪ Founded: 2009 ▪ Locations: Buenos Aires, AR | Boston, MA | Berlin, DE | Lyon, FR ▪ Technology: Onapsis Security Platform (Enterprise Solution) ▪ Research: 300+ SAP and Oracle security advisories and presentations published Transforming how organizations protect the applications that manage their business-critical processes and information. Onapsis overview
  • 6. @2016 Onapsis, Inc. All Rights Reserved • Background on Penetration Testing and vulnerabilities research • Reported vulnerabilities in diverse SAP and Oracle components • Authors/Contributors on diverse posts and publications • Speakers and Trainers at Information Security Conferences • http://www.onapsis.com Who are we? Juan Perez-Etchegoyen (JP) Nahuel Sanchez
  • 7. HANA systems store and process the most critical business information in the Organization. If the SAP/HANA platform is breached, an intruder would be able to perform different attacks such as: • ESPIONAGE: Obtain customers/vendors/human resources data, financial planning information, balances, profits, sales information, manufacturing recipes, etc. • SABOTAGE: Paralyze the operation of the organization by shutting down the SAP system, disrupting interfaces with other systems and deleting critical information, etc. • FRAUD: Modify financial information, tamper sales and purchase orders, create new vendors, modify vendor bank account numbers, etc. A Business-Critical Infrastructure
  • 8. SAP Strategy is shaped around products that run on top of SAP HANA • PRIVATE CLOUD • PUBLIC CLOUD • S/4HANA • Apps powered by HANA An Infrastructure critical for the business Images Copyright © SAP
  • 9. @2016 Onapsis, Inc. All Rights Reserved Evolution of vulnerabilities in HANA SAP Security Notes in HANA (2011-2015)
  • 10. @2016 Onapsis, Inc. All Rights Reserved Sap cyber security breaches & implications A Dangerous Status-Quo Key Findings: • 75% said their senior leadership understands the importance and criticality of SAP to the bottom line, but only 21% said their leaders are aware of SAP cybersecurity risks. • 60% said the impact of information theft, modification of data and disruption of business processes on their company’s SAP would be catastrophic or very serious. • 65% said their SAP system was breached at least once in the last 24 months.
  • 12. @2016 Onapsis, Inc. All Rights Reserved In-memory database Supports cloud implementations Integrates with calculation engines Diverse set of deployment options Integrated HTTP Server Used mainly for Business Applications SAP HANA ARCHITECTURE SAP HANA COMPONENTS
  • 13. @2016 Onapsis, Inc. All Rights Reserved SQL/MDX port HTTP service SAP Host Agent and MC Outgoing connections Internal communications Solution Manager Mail servers/Other Web Serves R servers SAP Support SAP HANA ARCHITECTURE SAP HANA ENTRY POINTS http://help.sap.com/saphelp_hanaplatform/helpdata/en/37/d2573cb24e4d75a23e8577fb4f73b7/content.htm http://en.community.dell.com/techcenter/b/techcenter/archive/2012/09/28/sap-hana-core-architecture
  • 14. @2016 Onapsis, Inc. All Rights Reserved Authentication Authorization Access Control Encryption Mitm Attacks? DoS Attacks? SAP HANA ARCHITECTURE SAP HANA PROTOCOLS http://help.sap.com/saphelp_hanaplatform/helpdata/en/37/d2573cb24e4d75a23e8577fb4f73b7/content.htm
  • 15. @2016 Onapsis, Inc. All Rights Reserved ● Database users ● Web Apps users ● HANA Administrators ● Interface users ● Authorizations ( System, Application, Object, Analytic, Package, Other users ) SAP HANA ARCHITECTURE SAP HANA WEAKEST LINK http://help.sap.com/saphelp_hanaplatform/helpdata/en/37/d2573cb24e4d75a23e8577fb4f73b7/content.htm
  • 16. @2016 Onapsis, Inc. All Rights Reserved •Network connection •NMAP Traditional TCP ports pattern (SysNR) New TCP ports pattern HTTP, MDX, MC, HostAgent • Browser • HTTP welcome page • Several “public” apps •/public/sap/docs/hana/admin/help … 4390/tcp open ssl/unknown 8090/tcp open unknown 39015/tcp open tcpwrapped 39017/tcp open tcpwrapped 59013/tcp open http gSOAP httpd 2.7 59014/tcp open ssl/http gSOAP httpd 2.7 … SAP HANA NETWORK DISCOVERY
  • 17. @2016 Onapsis, Inc. All Rights Reserved SAP HANA Architecture & Entry points HTTP/s InterfaceSQL Interface TrexNet Interfaces Source: SAP A.G.
  • 18. TrexNet Attacks to SAP HANA (CVE-2015-7828)
  • 19. @2016 Onapsis, Inc. All Rights Reserved ▸ Single host scenario SAP HANA Architecture & TrexNet nameserver (3xx01) preprocessor (3xx02) indexserver (3xx03) statisticsserver (3xx05) xsengine (3xx07) compilerserver (3xx07) SAP HANA Host 1 ▸ TrexNet Protocol ▸ Custom ▸ Undocumented ▸ Inherited from Trex
  • 20. @2016 Onapsis, Inc. All Rights Reserved SAP HANA Architecture & TrexNet contd. ▸ Distributed scenario nameserver (3xx01) preprocessor (3xx02) indexserver (3xx03) statisticsserver (3xx05) xsengine (3xx07) compilerserver (3xx07) Master Worker nameserver (3xx01) preprocessor (3xx02) indexserver (3xx03) statisticsserver (3xx05) compilerserver (3xx07) Worker nameserver (3xx01) preprocessor (3xx02) indexserver (3xx03) statisticsserver (3xx05) compilerserver (3xx07) xsengine (3xx07) xsengine (3xx07) ▸ TrexNet Protocol ▸ Mandatory ▸ Host comm. ▸ Replication, HA ▸ Hardening required
  • 21. @2016 Onapsis, Inc. All Rights Reserved TrexNet Security ▸ Unauthenticated protocol ▸ listens on localhost (SPS06) ▸ SSL enabled by default for internal communications (SPS10) https://help.sap.com/saphelp_hanaplatform/helpdata/en/de/f770d6bb5710149f32a6c5593f5877/content.htm ▸ Critical vulnerabilities fixed after Onapsis report ▸ Arbitrary File Read/Write ▸ Remote DoS ▸ Python code Execution ▸ others... ▸ Different configuration options
  • 22. @2016 Onapsis, Inc. All Rights Reserved DEMO #1 TrexNet Security
  • 23. @2016 Onapsis, Inc. All Rights Reserved What happened? Exploitation of TrexNet protocols demo ▸ Remote unauthenticated user (NO USER NEEDED) ▸ Network access to specific SAP HANA services ▸ Attacker can trigger specific unauthenticated functionality in HANA ▸ After a successful execution, sidadm privileges are obtained → equivalent to FULL SYSTEM COMPROMISE
  • 24. @2016 Onapsis, Inc. All Rights Reserved TrexNet Security Solution ▸ Implement a secure configuration (SAP Security Note 2183363). ▸ Enable SSL if not enabled by default, follow SAP HANA Security guide. ▸ Use a dedicated network for the “Internal communications”.
  • 25. Buffer overflows in SAP HANA (CVE-2015-7993) and (CVE-2015-7993)
  • 26. @2016 Onapsis, Inc. All Rights Reserved Overview ▸ Discovered by Onapsis ▸ Highly critical vulnerabilities (patched by Hot News notes) ▸ Full compromise ▸ Cloud services ▸ OS isolation ▸ Hard to code reliable exploits (more on this later) ▸ Remote unauthenticated DoS otherwise HANA Host Web Dispatcher HTTP/S Interface (80XX/43XX) XS DBSQL Interface 3xx15
  • 27. @2016 Onapsis, Inc. All Rights Reserved DEMO #2
  • 28. @2016 Onapsis, Inc. All Rights Reserved What happened? Exploitation of buffer overflows in HANA ▸ Remote unauthenticated user (NO USER NEEDED) ▸ Access to HANA HTTP interface (potentially internet/cloud) ▸ Triggers a buffer overflow in the HANA system ▸ After a successful exploitation, potentially sidadm could be obtained → FULL SYSTEM COMPROMISE
  • 29. @2016 Onapsis, Inc. All Rights Reserved Solution ▸ Implement SAP Security Notes 2197397 and 2197428. ▸ If possible, restrict access to HTTP and/or SQL interfaces only to trusted networks.
  • 30. @2016 Onapsis, Inc. All Rights Reserved HTTP Login Remote Code Execution (CVE-2015-7993) Analysis ▸ Pre auth. Heap overflow in process hdbindexserver ▸ Triggered by a long username or password ▸ Vulnerable function “HandleAuthRequest” ▸ memcpy use! ▸ Plenty of space to write payload ▸ Objects in the heap are overwritten ▸ Different lengths of the username / Password will overwrite different objects. This leads to different crashes that are hard to control / predict.
  • 31. @2016 Onapsis, Inc. All Rights Reserved HTTP Login Remote Code Execution (CVE-2015-7993) Analysis ▸ Suse Linux used as underlying OS. ▸ System-wide ASLR enabled by default ▸ hdbindexserver process (SPS09) ▸ NX bit enabled ▸ PIE enabled ▸ Information leak vulnerability required! ▸ Heap massaging
  • 32. Remote Passwords retrieval in SAP HANA (CVE-2015-7991)
  • 33. @2016 Onapsis, Inc. All Rights Reserved Sensitive information logging & Remote trace disclosure ▸ Components affected: Internal web dispatcher & Standalone web dispatcher ▸ Handles HTTP/s requests ▸ Web configuration is possible ▸ “/sap/wdisp/admin” URL ▸ Can be configured to log every HTTP request ▸ sapwebdisp.pfl / webdispatcher.ini ▸ Trace level can be configured HANA Host Web Dispatcher HTTP/S endpoint 80XX / 43XX XS DB
  • 34. @2016 Onapsis, Inc. All Rights Reserved Sensitive information logging & Remote trace disclosure ▸ if Trace level > 2, Passwords are logged in plaintext! (VULNERABILITY #1) ▸ Trace files can be downloaded ▸ Without any prior authentication! (VULNERABILITY #2) http://<IP>:<PORT>/sap/hana/xs/wdisp/admin/download?ftype=0 http://<IP>:<PORT>/sap/hana/xs/wdisp/admin/download?ftype=1
  • 35. @2016 Onapsis, Inc. All Rights Reserved DEMO #3
  • 36. @2016 Onapsis, Inc. All Rights Reserved What happened? Remote Passwords retrieval demo ▸ Remote unauthenticated user (NO USER NEEDED) ▸ Access to HANA HTTP interface (potentially internet/cloud) ▸ Uses the browser to access a specific url ▸ Downloads HANA traces and parses them looking for passwords ▸ Once the attacker got access credentials, he connects back to the target system ▸ Depending on the privileges of the retrieved credentials, the attacker could compromise the HANA system and its information
  • 37. @2016 Onapsis, Inc. All Rights Reserved Solution ▸ Restrict network access to reduce attack surface whenever possible ▸ Implement security notes 2148854, 2011786 and 1990354
  • 38. So, How do we protect HANA?
  • 39. @2016 Onapsis, Inc. All Rights Reserved Develop Secure Applications How do we protect our HANA systems? Restrict packages exposed via http Secure authentication methods required web apps Use restricted user types for HTTP apps. Enable Cross-Site-Request Forgery (XSRF) Protection Validate all parameters! (There are protections but only to “help” developers) Secure HANA communications Configure SSL for all communications. Force the use of SSL. Restrict access at network level. Secure the certificates and establish a proper key management procedure.
  • 40. @2016 Onapsis, Inc. All Rights Reserved Secure user access to HANA How do we protect our HANA systems? Secure the standard SYSTEM user. Secure <sid>adm user. Use restricted users if possible. Use SSO (Single Sign-On) mechanisms. Implement strong password policies. Assign minimum required privileges System privileges Object privileges Analytic privileges Package privileges Application privileges User privileges
  • 41. @2016 Onapsis, Inc. All Rights Reserved Secure the data in HANA How do we protect our HANA systems? Understand HANA encryption Use encryption for sensitive data Establish a proper key management procedure Change default keys! Enable Logs and Traces Enable audit log Restrict Audit Roles Secure access to: Audit Trail DB Table, default_audit_trail_path, UIS.sap.hana.uis.db::DEFAULT_AUDIT_TBL, Trace and dump files
  • 42. @2016 Onapsis, Inc. All Rights Reserved Secure the data in HANA How do we protect our HANA systems? Understand HANA encryption Use encryption for sensitive data Establish a proper key management procedure Change default keys! Enable Logs and Traces Enable audit log Restrict Audit Roles Secure access to: Audit Trail DB Table, default_audit_trail_path, UIS.sap.hana.uis.db::DEFAULT_AUDIT_TBL, Trace and dump files but specially… Apply the latest patches to secure HANA systems and keep up with the latest SAP Security Notes!
  • 43. @2016 Onapsis, Inc. All Rights Reserved Conclusions • Keep the HANA systems updated with the latest patches should not be optional • SAP HANA was built with a security focus, however many responsibilities rely on the users (administrators, developers, end users…) • Specialized resources and software can help you to securely configure and detect security vulnerabilities on SAP HANA systems. • Keep up with SAP Documentation: Read the SAP HANA Security Guide : http://help.sap.com/hana/SAP_HANA_Security_Guide_en.pdf Follow SAP HANA Security Whitepaper which gives an overview of HANA Security as a good starting point: http://www.saphana.com/docs/DOC-3751 SAP HANA Developer Guide which contains information on secure programming practices: http://help.sap.com/hana/SAP_HANA_Security_Guide_en.pdf A good guide which gives information on how to build standard roles in HANA: https://scn.sap.com/docs/DOC-53974
  • 44. QUESTIONS? THANKS! MARCH 2016 - TROOPERS SECURITY CONFERENCE