testing-password-reset-flaws

Tests password reset flows for token weaknesses, host header poisoning, and IDOR account takeover.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill testing-password-reset-flaws
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-password-reset-flaws
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/web-application-security/testing-password-reset-flaws
Command: npx skills add https://github.com/xalgord/xalgorix --skill testing-password-reset-flaws

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Password reset flows are one of the most reliable account-takeover surfaces, yet testers often miss critical checks like host header poisoning, token reuse, and identification-parameter IDOR. This Skill provides a systematic methodology to identify and exploit weaknesses in forgot-password and account-recovery flows during authorized penetration tests.

Core Features & Use Cases

  • Host Header Poisoning Detection: Tests Host, X-Forwarded-Host, and related header injection to determine if reset links can be redirected to attacker-controlled domains for token theft.
  • Token Security Analysis: Evaluates reset token entropy, sequential patterns, single-use semantics, expiry enforcement, and date-parameter tampering using Burp Sequencer and curl.
  • IDOR and Session Testing: Checks whether the user-identification parameter can be swapped to reset another account's password and whether old sessions survive a password change.
  • Use Case: During a bug bounty engagement targeting OWASP A07:2021 broken authentication, use this Skill to work through the full reset-flow checklist and produce a structured finding report with reproduction steps and remediation guidance.

Quick Start

Ask the AI to test the target application's password reset flow for host header poisoning, token predictability, and IDOR using the methodology in this Skill.

Frequently Asked Questions about testing-password-reset-flaws

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test a password reset flow for host header poisoning?

Send the forgot-password request with a spoofed Host or X-Forwarded-Host header pointing to an attacker-controlled domain, then inspect the emailed reset link. If the link points to your domain, the victim's token is delivered to you when they click, enabling account takeover.

How to check if password reset tokens are predictable?

Request many resets rapidly and compare the tokens for incrementing counters, timestamps, or short character sets. Use Burp Sequencer to measure statistical entropy across captured samples, and test whether tokens are hashes of known values like email addresses.

What tools are needed for password reset security testing?

Burp Suite Professional with Repeater, Intruder, and Sequencer covers interception, fuzzing, and token entropy analysis. You also need curl for manual header injection, a Burp Collaborator or catch-all domain to observe poisoned links, and two test accounts with accessible inboxes.

Can a valid reset token be used to reset another user's password?

Yes, when the reset confirm endpoint trusts a client-supplied user, email, or user_id parameter instead of binding the token to the account server-side. Submit your own valid token with the victim's identifier swapped in, then confirm by logging in as the victim.

Why do old sessions staying valid after a password reset matter?

If sessions are not invalidated after a password change, an attacker holding a previously stolen session cookie retains access even after the victim resets their password. Test by replaying a pre-reset session cookie against an authenticated endpoint after completing the reset.

When should this password reset testing methodology not be used?

Only use it with written authorization for the target application, such as a penetration testing agreement or bug bounty scope. It targets web-based reset flows and does not cover offline credential attacks or non-HTTP recovery mechanisms.