Common SAP Server Vulnerabilities and Defense Strategies
SAP systems are the financial backbone of modern enterprises. The most critical business processes, ERP, financial accounting, human resources, the supply chain and production planning, all run on SAP. That makes SAP servers an extremely attractive target for attackers: a single successful compromise can mean access to all of an organization's sensitive data, from payroll records to bank transfers, from customer information to trade secrets. Unfortunately, what we see in the field is almost always the same picture. SAP installations are configured for functionality first, and security is addressed later or not at all.
In this article we walk through the vulnerability classes we most frequently encounter in SAP environments during our penetration tests, along with practical defense strategies for each. Our target audience is SAP/BASIS administrators and enterprise security teams. We will therefore examine both the risks and the concrete hardening steps at a technical level.
1. Default Standard Users and Static Passwords
During installation, SAP creates a set of standard users with predefined passwords. Chief among them are SAP* (the super user, whose historical default password was 06071992 or PASS), DDIC (the Data Dictionary administrator, default 19920706), EARLYWATCH (remote monitoring) and the TMSADM (Transport Management System) account found in client 000. These accounts are the first doors attackers try, because in many organizations these passwords are still at their defaults or weakly changed.
Risk: SAP* is especially dangerous. If it is deleted from the relevant user table, a hardcoded SAP* account known to the kernel can take over with a default password. This account grants fully privileged access if the profile parameter login/no_automatic_user_sapstar is not set correctly.
- Change the passwords of all standard accounts and lock the ones you can (audit their status via USR02).
- Disable the hardcoded SAP* behavior by enabling the login/no_automatic_user_sapstar = 1 parameter.
- Audit every client one by one (including 000, 001 and custom clients). Run the RSUSR003 report regularly to check standard users.
- Convert critical accounts into reference/service users via SU01 to disable interactive logon.
2. RFC and RFC Gateway Exploitation
RFC (Remote Function Call) is the core protocol that SAP systems use to talk to each other and to external applications. The RFC Gateway is the component that manages those calls, and when misconfigured it creates one of the most serious holes in an SAP environment. The real problem is that registered and started external programs can be executed through the Gateway without any control.
Risk: If the reg_info and sec_info access control lists are missing or defined too broadly, an unauthenticated attacker can register their own program through the Gateway and execute commands at the operating-system level. This is a direct path to taking over the SAP server. Trusted RFC connections (trusted/trusting), when set up incorrectly, offer a way to pivot laterally and vertically from a low-privilege system into a high-privilege one.
- Configure the reg_info and sec_info ACL files with a "default deny" logic. Whitelist only known programs and servers.
- Harden the gw/reg_no_conn_info and gw/acl_mode profile parameters, enable Gateway monitoring (SMGW).
- Set up trusted RFC connections with minimum privilege. Define the S_RFCACL authorization object strictly and avoid storing embedded user/password pairs in SM59.
- Remove unnecessary RFC destinations. Inventory SM59 regularly.
3. SAP ICM / ICMAD and Web-Component Vulnerabilities
The SAP Internet Communication Manager (ICM) is the component that handles HTTP, HTTPS and SMTP traffic for SAP systems and is SAP's web-facing surface to the outside world. In recent years serious vulnerabilities of the HTTP request smuggling and memory-corruption classes have been disclosed in this layer (the class of issues publicly referred to as "ICMAD" is an example).
Risk: Such flaws, which require no authentication, can result in session hijacking, credential disclosure and denial of service (DoS) on internet-facing SAP web applications. If the ICM faces the internet directly, the blast radius is very large.
- Apply the SAP Security Notes published for the ICM and Web Dispatcher as a priority.
- Do not expose SAP systems directly to the internet. Place a SAP Web Dispatcher and a WAF/reverse-proxy layer in front of them.
- Disable unused ICM services and unnecessary HTTP endpoints (SICF).
4. Attacks via Solution Manager and SAProuter
SAP Solution Manager (SolMan) is the central platform that manages all SAP systems, and it is typically connected to the other systems in the landscape via high-privilege RFC connections. That central position makes it a critical attack springboard. The SAProuter, meanwhile, is the component that routes SAP network traffic and is often placed in the DMZ facing the internet.
Risk: An unpatched SolMan instance, once compromised without authentication, can provide chained access to all of the satellite systems connected to it. A misconfigured SAProuter, if its saprouttab rules are loose, acts as a tunnel into the internal SAP network.
- Keep SolMan at the latest support package and Security Notes level. Restrict its management interfaces at the network level.
- Write the saprouttab rules for SAProuter on a "default deny" basis. Enforce encrypted, authenticated routing with SNC.
- Review the privileges of the RFC users between SolMan and satellite systems, and remove overly broad profiles (e.g. SAP_ALL).
5. Missing SAP Security Notes and Patch Gaps
SAP publishes security notes (SAP Security Notes) every month in a "Patch Tuesday"-like cycle. The most common fundamental problem in the field is that these notes go unapplied for months or even years. When SAP systems are managed with an "if it works, don't touch it" culture, known and publicly disclosed vulnerabilities remain open for a long time.
Risk: Ready-made exploit code is usually available for publicly disclosed vulnerabilities. The attacker's job is reduced to simply finding an unpatched target.
- Establish a regular patch cycle and track the SAP EarlyWatch Alert and System Recommendations (within SolMan) reports.
- Prioritize high-severity and critical (HotNews) notes in an emergency maintenance window.
- Where a patch cannot be applied, put compensating controls (network restriction, monitoring) in place.
6. Authorization and Segregation of Duties (SoD) Problems
SAP's authorization model is powerful but complex. Roles, profiles and authorization objects accumulate over time until they become enormous and unauditable. The most critical findings are over-privileged users and Segregation of Duties violations.
Risk: Users carrying the SAP_ALL or SAP_NEW profile have unlimited authority on the system. In SoD violations, a single user can both create a vendor and approve a payment, opening the door to internal fraud. In addition, loose definitions of powerful objects such as S_DEVELOP, S_TABU_DIS and S_RFC lead to privilege escalation.
- Remove the SAP_ALL and SAP_NEW profiles from the production environment. Identify broadly authorized users regularly with RSUSR002.
- Define an SoD conflict matrix. Audit it continuously with SAP GRC Access Control or equivalent tools.
- Adopt the principle of least privilege. Tightly restrict debugging and table-access authorizations (S_DEVELOP, S_TABU_DIS).
7. Insecure Interfaces and Unencrypted Communication
By default, SAP's two core protocols, DIAG (the client protocol between the SAP GUI and the server) and RFC, run unencrypted. DIAG uses only weak obfuscation, not real encryption.
Risk: An attacker who can sniff network traffic can decode credentials, business data and session information from DIAG/RFC sessions in clear text. Man-in-the-middle (MITM) attacks carried out on the internal network are therefore especially effective.
- Encrypt DIAG and RFC traffic end to end with SNC (Secure Network Communications).
- Enforce TLS for web traffic and disable weak cipher suites.
- Strengthen password policies (login/min_password_lng, complexity parameters) and, where possible, move to single sign-on (SSO) with multi-factor authentication.
8. Overall Defense Strategy: A Layered Approach
SAP security is not achieved with a single setting. It requires a program built from overlapping layers. Use network segmentation to place SAP systems in a dedicated security zone. Open management ports (the 32xx, 33xx, 36xx and 81xx series) only to authorized administration networks, and never position any SAP backend component so that it faces the internet directly. Run the patch cycle as an enterprise process, continuously audit the RFC and Gateway configuration, and review the authorization matrix periodically.
On top of these, add a monitoring and detection layer: enable the SAP audit log (SM19/SM20: Security Audit Log) and forward critical events (failed logon attempts, authorization changes, RFC calls) to a central SIEM. Security is not "set and forget". It is a continuously managed cycle.
Quick checklist
- Have the passwords of all standard accounts (SAP*, DDIC, EARLYWATCH, TMSADM) been changed and the unnecessary ones locked?
- Is the login/no_automatic_user_sapstar = 1 parameter active on every client?
- Are the RFC Gateway reg_info/sec_info ACLs configured with "default deny"?
- Are critical and HotNews SAP Security Notes up to date, and is there a regular patch cycle?
- Have the SAP_ALL/SAP_NEW profiles been removed from production and are SoD conflicts audited?
- Are DIAG and RFC traffic encrypted with SNC, and web traffic with TLS?
- Are SAP systems isolated by network segmentation and not directly exposed to the internet?
- Is the Security Audit Log enabled and centrally monitored via a SIEM?
The Raze approach
At Raze Security we assess SAP environments not just with automated scanning but from a real attacker's perspective. From RFC Gateway exploitation to standard-account auditing, from authorization and SoD analysis to testing the external surface such as ICM, SolMan and SAProuter, we work with an SAP-specific methodology and report every vulnerability we find with concrete hardening steps. To clarify the security posture of your SAP infrastructure, explore our penetration testing service, or get in touch with us for an assessment tailored to your organization.

