Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/CVE 2019 16278 #134

Merged
merged 8 commits into from
Nov 14, 2024
Merged

Feature/CVE 2019 16278 #134

merged 8 commits into from
Nov 14, 2024

Conversation

ybadaoui-ostorlab
Copy link
Contributor

@ybadaoui-ostorlab ybadaoui-ostorlab commented Nov 13, 2024

Summary

This PR introduces detection logic for CVE-2019-16278, a directory traversal vulnerability in the nostromo nhttpd server, allowing potential remote code execution.

Verification Process

  • Target Verification: Identifies if a target is running nostromo by checking for the Server header in HTTP responses.
  • Vulnerability Check: Sends a crafted HTTP/1.0 POST request to attempt directory traversal and command execution "THE COMMAND id". If the response contains indicators of successful command execution (e.g., uid=), the target is flagged as vulnerable.
    2024-11-13_10-32
    2024-11-13_10-56

@ybadaoui-ostorlab ybadaoui-ostorlab marked this pull request as draft November 13, 2024 09:46
@ybadaoui-ostorlab ybadaoui-ostorlab marked this pull request as ready for review November 13, 2024 13:58
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.41%. Comparing base (d457d7a) to head (c0f1655).
Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #134      +/-   ##
==========================================
+ Coverage   96.36%   96.41%   +0.04%     
==========================================
  Files         170      172       +2     
  Lines        6028     6101      +73     
==========================================
+ Hits         5809     5882      +73     
  Misses        219      219              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

agent/exploits/cve_2019_16278.py Outdated Show resolved Hide resolved
@3asm 3asm dismissed mohsinenar’s stale review November 14, 2024 10:51

Comments fixed.

@3asm 3asm merged commit 54bc636 into main Nov 14, 2024
5 checks passed
@3asm 3asm deleted the feature/cve_2019_16278 branch November 14, 2024 10:52
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.