All problems
Medium

Find regular expressions vulnerable to ReDoS

Software & IT

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

  1. Software & IT Practitioner 3 Medium