How I Created an SMS Bombing Tool from a Rate Limit Vulnerability
I was testing this new social media platform called Example Social Media. Using CAIDO, I checked all the endpoints by performing various actions and settings adjustments. Afterward, I went back to CAIDO and started analyzing the history of requests and responses.
While analyzing, I found that the "Forgot Password" feature allowed users to reset their password using OTP verification. However, there was a significant flaw: the system didn't validate the user. It sent an OTP code to any phone number, even if the user didn't exist in the database.
To exploit this, I replayed the request multiple times. I discovered that the backend had no rate limitation, although the client side had a one-minute countdown for resending the OTP. The client-side validation was easy to bypass.
With this vulnerability confirmed, I decided to create an SMS bombing tool. I wrote a Python script to automate sending multiple SMS requests. The script allowed different modes for the number of requests: easy, medium, hard, and extreme.
To use the script, you can run it with different modes:
- Easy: 100-500 SMS requests
- Medium: 500-1000 SMS requests
- Hard: 1000-2000 SMS requests
- Extreme: 2000-10000 SMS requests
I run My tool using this command
python script.py -p +25190000000 -m ex
I’ve attached the full script on GitHub for you to check out.
https://github.com/x21enax/SMS-Bombing-python-script
BTW
I reported this vulnerability to the security team at Example Social Media. They were able to fix it by implementing proper user validation and server-side rate limiting.
Finding this rate limit vulnerability was a fun exercise, but always remember to handle such discoveries responsibly. Reporting these issues helps make the internet a safer place for everyone. beleh tesekesalh:)
Stay safe and happy hacking!