Categories: Breaking NewsHacking

Serious security issue affects SAP HANA systems

Security experts at ERPScan discovered a serious security issue in SAP’s in-memory relational database management system, HANA.

The SAP in-memory relational database management system, HANA, is affected by a serious security issue, the static encryption key is stored in the database.

The fact that the encryption key is static means that every SAP HANA installation by default use the same key, an attacker that is able to access it can potentially hack several systems.

The researchers at ERPScan presented the security issue during the Black Hat hacking conference held in Amsterdam. The same team recently disclosed serious configuration flaws in Oracle PeopleSoft products.

According to Alexander Polyakov, chief technology officer of ERPScan, an attacker could run several types of attacks such as a SQL injection attack to steal the key stored in the SAP database, a directory traversal or an XML external entity attack.

The default encryption key is used to protect data managed by the platform, including passwords and platform backups.

Since the encryption key is static and the same for every SAP HANA installation by default, an attacker with access would be able to read an encrypted data store.

Polyakov remarked that SAP admins rarely change the default encryption key exposing their installations to the attacks.

“The software ships with a default configuration and the user can actually change this configuration as it says in the security guide. But this document is quite complex (170 pages),” Polyakov said.

The security expert Dmitry Chastuhin from ERPScan publicly disclosed the encryption vulnerability and also a SQL injection bug in Hana XS Server that was already patched by SAP.

The experts explained that SAP uses a storage dubbed hdbuserstore to archive HANA data at regular savepoints, the worrying thing is that almost every ERPScan customer using HANA still uses the default master key to encrypt hdbuserstore.

“Some data is actually stored on the disc. For example, some technical user accounts and passwords along with keys for decrypting savepoints are stored in storage named hdbuserstore.,” Polyakov said. “This storage is a simple file on the disc. It is encrypted using 3DES algorithm with a static master key. Once you have access to this file and decrypt it with static master key, which is the same on every installation, you get system user passwords and keys for disk encryption. After that, you can get access to all data.”

Chastuhin also discovered a similar encryption flaw that affects the SAP Mobile platform, also in this case the application uses a known static key protecting its data. The researcher explained that an attacker can exploit a XXE vulnerability to access the configuration file that contains a password and decrypt is using the static key.

[adrotate banner=”9″]

Pierluigi Paganini

(Security Affairs –  SAP  HANA, hacking)

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

SECURITY AFFAIRS MALWARE NEWSLETTER ROUND 84

Security Affairs Malware newsletter includes a collection of the best articles and research on malware…

13 minutes ago

Security Affairs newsletter Round 563 by Pierluigi Paganini – INTERNATIONAL EDITION

A new round of the weekly Security Affairs newsletter has arrived! Every week, the best…

45 minutes ago

Fintech firm Figure disclosed data breach after employee phishing attack

Fintech firm Figure confirmed a data breach after hackers used social engineering to trick an…

21 hours ago

U.S. CISA adds a flaw in BeyondTrust RS and PRA to its Known Exploited Vulnerabilities catalog

The U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds a flaw in BeyondTrust RS and…

22 hours ago

Suspected Russian hackers deploy CANFAIL malware against Ukraine

A new alleged Russia-linked APT group targeted Ukrainian defense, government, and energy groups, with CANFAIL…

1 day ago

New threat actor UAT-9921 deploys VoidLink against enterprise sectors

A new threat actor, UAT-9921, uses the modular VoidLink framework to target technology and financial…

2 days ago

This website uses cookies.