Exploiting the Unprotected: How I Gained Unauthorized Access to R
A Redis instance was exposed on a public IP without authentication, allowing anyone to connect and run commands. The author connected and ran the INFO command, which returned sensitive server and data details, and noted that an attacker could dump data or inject an SSH key for root access.
Published on medium.com
I am Pratik Dabhi, a Bug Bounty Hunter and a Penetration Tester. Many of you may already know me, but for those who aren’t, please visit my website to learn more about me.
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 Redis service was left with default settings: bound to a public interface and without a password.
Impact
An attacker could access and extract sensitive data stored in Redis, and could potentially escalate to server compromise by injecting an SSH key, though the text does not confirm such escalation was performed.
What the attacker needed
Redis exposed on a public IP; No authentication configured
The fix
Redis should be bound to localhost and protected with a strong password using the requirepass directive.
How it was found
- Scan the target's public IP for open port 6379 using nmap.
- Connect to the Redis service using netcat to confirm no authentication is required.
- Run the INFO command to retrieve server configuration and data details.
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.
Redis is a database often used to store temporary data like sessions. Here it was left open to the internet with no password, so anyone could connect and read or change its contents. The author used simple tools to find it and confirm access.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.