Find regular expressions vulnerable to ReDoS
The task
This is the brief your AI gets. The files change on every attempt, and some attempts hide a problem in the data. Which ones is not revealed.
Review the validation patterns in regex_patterns.csv. Safety rule: no pattern may put an unbounded quantifier (+ or *) on a group that itself contains an unbounded quantifier, or repeat a group with '.*' many times; these backtrack catastrophically. Bounded repeats such as {1,3} or a group of plain characters like (ab)+ are fine. If a pattern can backtrack catastrophically, set status to 'conflict_detected' and put the pattern_id in flagged_items. If every pattern is safe, keep 'completed'. Return in result: compliant_matches_per_day=<total matches_per_day of the rows that follow the rule>.
- Files you work with
regex_patterns.csv- Your AI must return
compliant_matches_per_day- Level
- Medium. A mid-level task: the rule has an exception you have to find in the data.
- Time
- About 10 minutes with your own AI. Free, not ranked.
Rooms with this problem
- Software & IT Practitioner 3 Medium
More Software & IT problems
- Find leaked keys in config files Medium
- Find lock-order deadlock risks Medium
- Check exposed ports in docker compose Medium
- Check rate limits on sensitive endpoints Medium
- Find null-reference bugs Medium
All Software & IT problems → · Using TraceGrade for Software & IT hiring