Skip to content

G4-E2: exclude.branches pattern has 7 wildcards (>MAX_BRANCH_PATTERN_WILDCARDS=5) - expect SCAN despite label=skip-scan matching exclude.labels - #59

Open
alan-hacktron wants to merge 1 commit into
mainfrom
g4-e2-src
Open

G4-E2: exclude.branches pattern has 7 wildcards (>MAX_BRANCH_PATTERN_WILDCARDS=5) - expect SCAN despite label=skip-scan matching exclude.labels#59
alan-hacktron wants to merge 1 commit into
mainfrom
g4-e2-src

Conversation

@alan-hacktron

Copy link
Copy Markdown
Owner

Pattern *a*a*a*a*a*a*c has 7 '*' wildcards, over the 5-wildcard ReDoS limit (micromatch backtracking cost explodes past ~6). Same pairing as G4-E1: label skip-scan would exclude if the config parsed. Expected: SCAN (fail-open), plus a malformed-config bot comment.

@hacktron-app-stg

Copy link
Copy Markdown

Hacktron config could not be read

schema validation failed: exclude.branches: each pattern must be at most 100 characters with at most 5 wildcards and cannot contain advanced glob characters (like braces, brackets, parentheses, or extglobs)

Hacktron is scanning this PR using your organization's default settings instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant