![](https://securitybridge.com/wp-content/uploads/2024/09/Madrid-2024-930x620.png)
Secure Together on the Road – November 28th, 2024
Join industry leaders for a one-day event in Madrid to explore SAP security solutions and fortify your enterprise against evolving threats.
Not everybody working with SAP systems knows this, but every SAP system has its own vault to store sensitive data. In the SAP world, this is called the secure store and it’s a mechanism to store sensitive data like e.g. passwords. Keep in mind though, that the data you store in the secure store cannot be displayed by normal users once it is stored. Only the SAP system kernel can access it. A typical use case example is the passwords used in RFC connections. Once you type a password In SM59 and save it, the password is stored in the secure storage and is only retrieved by the SAP system itself when the connection is being used, typical SAP users cannot see it anymore.
This mechanism prevents regular users from obtaining access to sensitive data while the system itself can work with it just fine. However, in 2014, researchers from ERPScan found out how to decrypt the entries of the secure store and that it was for many years encrypted with a default key. This means that if you had access to the encrypted data (stored for example in the RSECTAB table in an ABAP system) you could decrypt the data. This in turn often leads to access to other remote systems in the SAP landscape too, as typically RFC users and passwords give access to not the local, but to remote systems. Making this a vulnerability that goes beyond the scope of one single SAP system. Also, keep in mind that SAP customers often provide the SAP_ALL profile to RFC users making things even worse. An example of a publicly released exploit for the JAVA secure store can be found here.
To come up with stronger security options, SAP has already released patches and functionality to re-encrypt the secure store with a customs value years ago. Also when you install a new system nowadays the installer urges you to use your unique encryption key. While this helps, after having conducted many SAP security assessments over the past years, we still often encounter secure stores encrypted with the default key.
To exploit this vulnerability, one must already have access to the SAP table where the encrypted data is stored in the database or on the OS level. This typically makes this vulnerability part of a post-exploitation scenario. Still, to prevent lateral movement, it is extremely important to prevent exploitation since the secure store contains not only local passwords but also passwords providing access to remote SAP systems as mentioned.
To prevent abuse, several measures can be taken:
Below, the video shows how you can decrypt the content in the secure storage of an ABAP system if it is encrypted with the default key.
To detect the misconfigurations mentioned above, and many more vulnerabilities, consider SecurityBridge — an all-in-one SAP Security platform. It provides deep insight into the security status of their SAP systems, without the need for additional manpower. When embedded in a structural SAP Vulnerability Management process, it helps raise the level of SAP Security and maintain control of your business-critical SAP systems, preventing Fraud, Sabotage, or Espionage with ease.
For more SAP security-related news, articles, and whitepapers, please follow us on LinkedIn!
Posted by
Find recent Security Advisories for SAP©
Looking into securing your SAP landscape? This white-paper tells you the “Top Mistakes to Avoid in SAP Security“. Download it now.
Join industry leaders for a one-day event in Madrid to explore SAP security solutions and fortify your enterprise against evolving threats.
Complete SAP Security Assessment Checklist: Essential Steps and Best Practices In this blog, you’ll find a detailed SAP security assessment checklist including what to look
The article looks at the risks and solutions of an overlooked SAP security vulnerability in default accounts.