Skip to content

V2/libinjection4#3534

Open
airween wants to merge 20 commits intoowasp-modsecurity:v2/masterfrom
airween:v2/libinjection4
Open

V2/libinjection4#3534
airween wants to merge 20 commits intoowasp-modsecurity:v2/masterfrom
airween:v2/libinjection4

Conversation

@airween
Copy link
Copy Markdown
Member

@airween airween commented Apr 3, 2026

what

This PR adds libinjection as a submodule. From now everyone can use the last release - or any other state - of libinjection, like in case of libmodsecurity3.

why

The current tree has a very old version of libinjection. There were couple of changes which improved the library's quality and libinjection's efficiency, for eg. xss detection

references

#3528

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR vendors libinjection as a Git submodule (under apache2/others/libinjection) and updates build/test tooling and ModSecurity operators to use the newer libinjection sources/API.

Changes:

  • Add libinjection as a submodule and update CI to checkout submodules.
  • Update Automake/CMake build inputs to compile libinjection sources from the submodule path.
  • Update @detectSQLi / @detectXSS operator logic to handle injection_result_t return codes (TRUE/FALSE/ERROR).

Reviewed changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tests/Makefile.am Build test binary against libinjection sources from the new submodule location.
standalone/Makefile.am Build standalone library against libinjection sources from the new submodule location.
iis/CMakeLists.txt Build IIS target against libinjection sources from the new submodule location.
apache2/re_operators.c Switch operators to injection_result_t results and add ERROR handling/messages.
apache2/Makefile.am Build Apache module against libinjection sources from the new submodule location.
.gitmodules Add apache2/others/libinjection submodule definition.
.github/workflows/test-ci-windows.yml Ensure Windows CI checks out submodules.
.github/workflows/ci.yml Ensure Linux CI checks out submodules (and adds git where needed).
apache2/libinjection/* (deleted) Remove the previously vendored in-tree libinjection sources/headers/license file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 19 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 21 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 21 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@airween airween requested a review from Copilot April 5, 2026 15:18
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 21 out of 22 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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