owasp-modsecurity / owasp-modsecurity/ModSecurity

Operator validateurlencoding does not handle IIS url encoding "%uXXXX"

Open
#704 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Platform - IIS
Dominant language
C++
Stars
9.8k
Forks
1.8k
Avg merge
2h 46m
Merged PRs (30d)
1

Description

The operator validateurlencoding does not handle IIS url encoding "%uXXXX" creating false positives with core ruleset 2.2.9 rule id 950107.
The issue is identified on re_operators.c in the function "static int validate_url_encoding(const char *input, long int input_length)" which does not handle IIS url encoding.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in re_operators.c at static int validate_url_encoding(const char *input, long int input_length), then inspect how rule 950107 and core ruleset 2.2.9 use the operator. Reproduce the IIS "%uXXXX" case and verify that the operator handles it without creating the reported false positives.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.