Exploitation Begins
The OptiLink 91001w GPON router's ping diagnostic page was vulnerable to OS command injection, allowing an authenticated low-privilege user to execute commands as root. The researcher also found hardcoded backdoor credentials that enabled unauthenticated remote code execution.
secnigma.wordpress.com
Published on secnigma.wordpress.com
OptiLinkis a company based on India that specializes in manufacturing Networking Devices. Two of the largest Internet Service Providers in this country have provided / still providing OptiLink’s ONU (Optical Network Unit) devices as a cost effective ONU device for getting Fiber to home service in India.
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 the ping diagnostic page passed user-supplied input directly to a shell command without proper sanitisation, and the router contained hardcoded backdoor credentials.
Impact
An authenticated low-privilege user could gain root shell on the router, and with the backdoor credentials, an unauthenticated attacker could achieve remote code execution; the HTTP interface also allowed local network attackers to sniff credentials.
What the attacker needed
Access to the router's web interface; valid user session (low-privilege); knowledge of WAN interface name; for unauthenticated: backdoor credentials
The fix
The vendor fixed the vulnerability by releasing firmware version V2.1.13_X101_OP, which users had to obtain through vendor-assisted remote upgrade.
How it was found
- Log in to the router's web interface with default credentials.
- Navigate to the ping utility page.
- Enter a specially crafted ping target that includes a backtick-wrapped command.
- Observe that the injected command executes on the router.
- Use a reverse shell payload to gain an interactive shell.
- Find and crack hardcoded password hashes to obtain backdoor credentials.
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 router's web interface had a 'ping' tool that let you test network connections. The tool didn't properly check what you typed, so an attacker could sneak in extra commands that the router would run as the all-powerful root user. The researcher also discovered secret default logins that let anyone access the router without permission.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.