owasp-modsecurity / owasp-modsecurity/ModSecurity-nginx

Unecessar escaped quote mark in JSON logs

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

Nobody has claimed this yet.

Dominant language
Perl
Stars
1.9k
Forks
312
PR merge metrics
No merged PRs in 30d

Description

hello,

I noticed that there was an added quotation mark in the modsec_audit logs, at least in the JSON version, in the producer->components section

    "producer": {
        "components": [
            "OWASP_CRS/4.21.0-dev\""
        ],
        "connector": "ModSecurity-nginx v1.0.4",
        "modsecurity": "ModSecurity v3.0.14 (Linux)",
        "secrules_engine": "Enabled"
    },

this also happens when we add some components using
SecComponentSignature "hello/world"

regards

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 by reproducing the JSON modsec_audit output for the producer.components section, including a SecComponentSignature "hello/world" entry. Trace the JSON serialization of component signatures and verify that the generated component values no longer contain the extra escaped quote.

Written by the indexing model from the issue text.

Assessment

Tech stack
nginx, perl
Domain
backend, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.