SAP PENTEST: Metasploit Writeup
A SAP Router exposed internally allowed pivoting to SAP services, where default credentials were found and used to escalate privileges, read client data, and ultimately obtain an interactive shell. The attacker could move between clients, access production data, and execute OS commands.
medium.com
Published on medium.com
One of the many things I had never tried before (because of fear) was trying to mess with SAP.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely weak default credentials and excessive permissions on the SAP Router and SAP user accounts allowed lateral movement and privilege escalation.
Impact
An attacker could gain full control of the SAP system, access sensitive data across clients, and execute arbitrary commands on the underlying OS.
What the attacker needed
Access to the SAP Router; default credentials exist; SAP Router allows port forwarding
How it was found
- Discover the SAP service and identify it as a SAP Router.
- Use the SAP Router to scan internal ports and find other SAP services.
- Brute-force default credentials on SAP clients via SOAP RFC.
- Log in with the discovered credentials and escalate privileges to SAP*.
- Use saved credentials to read data from another client.
- Create an OS command via transaction SM69 and obtain a bind shell through an open port on the SAP Router.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a story about breaking into a large business system called SAP. The tester found a way in through a router, guessed a weak password, and then used that access to look at data and run commands on the server. It shows that even complex systems can be hacked with basic steps if they are not locked down properly.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.