owasp-modsecurity / owasp-modsecurity/ModSecurity

Allow all SanatizeArgs variants to return a fixed amount of asterisks

Open
#1,102 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement RIP - Type - Feature TBF by libmodsec
Dominant language
C++
Stars
9.8k
Forks
1.8k
Avg merge
2h 46m
Merged PRs (30d)
1

Description

Currently SanatizeArgs and other Sanitize functions will sanitize the argument with a variable sized amount of asterisks based on the input. This may give some information away about non-fixed length elements. There should be an option to set this to a fixed length amount of asterisks.

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

Search the codebase for SanatizeArgs and the other Sanitize variants, then inspect their existing tests or callers; the issue names no specific files or tests. Determine how a fixed asterisk length should be configured across these functions, and consider the work done when each variant can produce the configured fixed-length masking without exposing the original length.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.