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

Add Jetpack version based detection #124

Merged
merged 6 commits into from
Oct 21, 2024
Merged

Conversation

ybadaoui-ostorlab
Copy link
Contributor

@ybadaoui-ostorlab ybadaoui-ostorlab commented Oct 18, 2024

This implementation introduces a version-based detection mechanism for the Jetpack plugin. The code extracts the plugin version from its readme.txt file and compares it against a predefined list of vulnerable version ranges. If the extracted version falls within any of the specified ranges, the plugin is flagged as vulnerable. This approach ensures accurate identification of affected versions by directly parsing and evaluating the version string.

Reference: Jetpack 13.9.1 Security Update.

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.34%. Comparing base (3ffd595) to head (91f6fac).
Report is 30 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #124      +/-   ##
==========================================
+ Coverage   96.28%   96.34%   +0.06%     
==========================================
  Files         154      158       +4     
  Lines        5675     5834     +159     
==========================================
+ Hits         5464     5621     +157     
- Misses        211      213       +2     

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

@3asm
Copy link
Member

3asm commented Oct 18, 2024

Please fix the title and improve the description.

@ybadaoui-ostorlab ybadaoui-ostorlab changed the title add jetpack version detection Add Jetpack version based detection Oct 18, 2024
@3asm 3asm merged commit d88de0e into main Oct 21, 2024
5 checks passed
@3asm 3asm deleted the feature/add_jetpack_version_detection branch October 21, 2024 19:46
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.

8 participants