Skip to content

New Vulnerability module for CVE_2025_55169 ( WeGIA - Directory Traversal ) - #1228

Open
Aarush289 wants to merge 8 commits into
OWASP:masterfrom
Aarush289:CVE-2025-55169
Open

New Vulnerability module for CVE_2025_55169 ( WeGIA - Directory Traversal )#1228
Aarush289 wants to merge 8 commits into
OWASP:masterfrom
Aarush289:CVE-2025-55169

Conversation

@Aarush289

@Aarush289 Aarush289 commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Proposed change
This PR adds a new vulnerability detection module for CVE-2025-55169, affecting WeGIA versions prior to 3.4.8.
The vulnerability is a directory traversal (LFI) issue in the download_remessa.php endpoint, which allows an unauthenticated attacker to read arbitrary files on the server, including sensitive configuration files such as config.php containing database credentials.

The module performs an HTTP GET request with a crafted path traversal payload and determines vulnerability based on the presence of sensitive configuration markers in the response.

Type of change

  • New module / payload addition

Checklist

  • I’ve followed the contributing guidelines
  • I’ve run make pre-commit and it didn’t generate any changes
  • I’ve run make test and all tests passed locally

Additional notes

  • References to NVD and the official WeGIA GitHub security advisory are included for verification
  • The module follows existing OWASP Nettacker conventions for naming, severity, and detection logic
  • The issue is marked critical due to direct exposure of sensitive local files
  • I have attached the screenshot of successful detection of actual vulnerable instance

@coderabbitai

coderabbitai Bot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Adds a WeGIA CVE-2025-55169 vulnerability definition for directory traversal through download_remessa.php, targeting arbitrary file reads, and documents the module in the Modules list.

Changes

WeGIA vulnerability module

Layer / File(s) Summary
Module definition and documentation
nettacker/modules/vuln/wegia_cve_2025_55169.yaml, docs/Modules.md
Adds the vulnerability metadata, traversal payload, response checks, HTTP/HTTPS configuration, and corresponding Modules documentation entry.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested labels: new module

Suggested reviewers: securestep9

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: a new WeGIA vulnerability module for CVE-2025-55169 directory traversal.
Description check ✅ Passed The description matches the changeset and accurately explains the new CVE-2025-55169 WeGIA detection module.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@docs/Modules.md`:
- Line 165: Update the module list entry for '**wegia_cve_2025_55169_vuln**' to
add the missing space before the dash and correct the product casing to "WeGIA"
(matching the product name) so the line reads with proper spacing and casing;
locate the entry containing '**wegia_cve_2025_55169_vuln**' in the Modules list
and adjust the text around the dash and product name accordingly.
🧹 Nitpick comments (1)
nettacker/modules/vuln/wegia_cve_2025_55169.yaml (1)

33-45: Verify traversal target path matches WeGIA’s default install layout.

The payload assumes ../../../www/html/wegia/config.php. If the advisory/PoC uses a different path (common for /var/www/html/wegia installs), this module could miss vulnerable targets. Please confirm against the advisory and consider trying multiple candidate paths.

💡 Possible multi-path fuzzer variant
-            input_format: "{{schema}}://{target}:{{ports}}/html/socio/sistema/download_remessa.php?file=../../../www/html/wegia/config.php"
+            input_format: "{{schema}}://{target}:{{ports}}/html/socio/sistema/download_remessa.php?file={{file_path}}"
             prefix: ""
             suffix: ""
             interceptors:
             data:
               schema:
                 - "http"
                 - "https"
               ports:
                 - 80
                 - 443
+              file_path:
+                - "../../../config.php"
+                - "../../../www/html/wegia/config.php"
+                - "../../../../config.php"

Comment thread docs/Modules.md Outdated
@Aarush289

Copy link
Copy Markdown
Contributor Author

Testing result is :
image
image

Signed-off-by: Aarush <cs24b064@smail.iitm.ac.in>
@Aarush289

Copy link
Copy Markdown
Contributor Author

Hi @securestep9 , Can you please review the module whenever possible .

@securestep9

Copy link
Copy Markdown
Collaborator

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a607a0910

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,54 @@
info:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Sign the commit before merging

The reviewed commit has no gpgsig header, and git verify-commit cc702b0bf46386fb0d4586a87b4e3414b5fe0655 fails, so merging it would violate the repository requirement that every commit be signed. Recreate this commit with an accepted signing key before merge.

AGENTS.md reference: AGENTS.md:L33-L35

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

all commits are signed

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