“Day 6: RCE — How I Hacked a Bank Using a Forgotten Excel File”
The author claims a banking portal's Excel export/import feature used an outdated Apache POI library without sandboxing, allowing a crafted spreadsheet to execute commands on the server. They say this led to SYSTEM-level access and internal network mapping.
infosecwriteups.com
Published on infosecwriteups.com
I was testing a banking portal when I stumbled upon an “Export to Excel” feature. What looked harmless turned into a full Remote Code Execution (RCE) chain that gave me root access to their internal servers.
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 an outdated Apache POI library processing untrusted spreadsheet content without sandboxing, allowing formula-based command execution.
Impact
The author claims the attacker could gain SYSTEM-level access, map internal network servers, and steal all customer transaction data.
What the attacker needed
Access to export/import feature; ability to upload files
How it was found
- Intercept the export request to find the endpoint.
- Generate a malicious XLSX file with a formula containing an OS command.
- Upload the file via the import endpoint.
- The server parses the file and executes the payload.
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.
A spreadsheet file can contain formulas that, if processed by a vulnerable library on a server, may run commands on that server. This is called remote code execution (RCE) because the attacker can run their own code on someone else's machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.