Daemon Of Hacking
  • WELCOME!
    • 👋/home/usr/KruKnight
  • METHODOLOGIES & RESOURCES
    • Passwords & Attacks
    • Post Exploitation
      • 👀Situational Awareness
      • 🖥️Privilege Escalation
        • Linux Privilege Escalation
        • Windows Privilege Escalation
  • Writeups
    • CyCtf 2024
      • Vending Machine
      • Aerospace
      • OhMyCell
    • Portswigger Labs
      • Authentication
        • Username enumeration via different responses
        • 2FA simple bypass
        • Password reset broken logic
        • Username enumeration via subtly different responses
        • Username enumeration via response timing
        • Broken Brute-Force Protection, IP Block
        • Username enumeration via account lock
        • 2FA broken logic
        • Brute-forcing a stay-logged-in cookie
        • Offline password cracking
        • Password reset poisoning via middleware
        • Password brute-force via password change
        • Broken brute-force protection, multiple credentials per request
      • Os Command Injection
        • OS command injection, simple case
        • Blind OS command injection with time delays
        • Blind OS command injection with output redirection
        • Blind OS command injection with out-of-band interaction
        • Blind OS command injection with out-of-band data exfiltration
      • Cross-Origin Resource Sharing (CORS)
        • CORS vulnerability with basic origin reflection
        • CORS vulnerability with trusted null origin
        • CORS vulnerability with trusted insecure protocols
      • Server-side template injection
        • Basic server-side template injection
        • Basic server-side template injection (code context)
      • Server-Side Request Forgery (SSRF)
        • Basic SSRF against the local server
        • Basic SSRF against another back-end
        • Blind SSRF with out-of-band detection
        • SSRF with blacklist-based input filter
        • SSRF with filter bypass via open redirection vulnerability
      • Path Traversal
  • 🟩HTB Writeups
    • Heal
Powered by GitBook
On this page
  • Lab Description
  • Walkthrough
  • Step 1: Analyzing the Behavior
  • Step 2: Bypassing the Protection
  • Step 3: Verifying the Password

Was this helpful?

  1. Writeups
  2. Portswigger Labs
  3. Authentication

Broken brute-force protection, multiple credentials per request

PreviousPassword brute-force via password changeNextOs Command Injection

Last updated 5 months ago

Was this helpful?

Lab Description

Walkthrough

Step 1: Analyzing the Behavior

After logging in with the provided credentials (wiener:peter), I attempted to brute-force the login by iterating through the candidate passwords. However, I encountered an account lockout message, indicating a brute-force protection mechanism was in place.

Upon inspecting the login request in Burp Suite, I noticed that the username and password were sent in JSON format:

This hinted that the server might accept an array of passwords instead of a single password.

Step 2: Bypassing the Protection

To exploit this vulnerability:

  1. I modified the password field to include an array of candidate passwords:

The server responded with a 302 Found, redirecting me to Carlos's account. This confirmed that one of the passwords in the array was correct, and the system did not block the request due to brute-force protection.

Step 3: Verifying the Password

Since the exact password was not revealed in the response:

  1. I forwarded the request to the browser using Burp Suite's "Request in browser in original session" feature.

  2. I logged in successfully to Carlos's account.