Skip to content

fix: adding missing variable name into log output - #3774

Open
azurit wants to merge 2 commits into
owasp-modsecurity:v2/masterfrom
azurit:v2/master
Open

azurit wants to merge 2 commits into
owasp-modsecurity:v2/masterfrom
azurit:v2/master

Conversation

@azurit

@azurit azurit commented Nov 23, 2026

Copy link
Copy Markdown

what

Adding a variable name into message produced by libinjection match.

why

Variable name may not be visible in later output (based on how a rule is written). Also, other types of matches include variable name, it was probably just missing here.

references

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ed4d7559-f5ba-4eab-b413-144dc682b1f8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@azurit azurit changed the title fix: fix: adding missing variable name into log output Nov 23, 2026
@airween

airween commented Nov 23, 2026

Copy link
Copy Markdown
Member

Hi @azurit,

great catch, thank you!

Could you add at least one test where a libinjection operator is used and the rule catches the request, and the test checks the pattern in error.log? Let me know if you need any help with that.

Add test case to check log format for libinjection messages
@sonarqubecloud

Copy link
Copy Markdown

@azurit

azurit commented Nov 23, 2026

Copy link
Copy Markdown
Author

@airween Like this, maybe? 😅

@azurit

azurit commented Nov 23, 2026

Copy link
Copy Markdown
Author

Sorry, not able to fix this.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants