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

fix(cpe): fix cpe match false positive #113

Merged
merged 1 commit into from Nov 16, 2018
Merged

fix(cpe): fix cpe match false positive #113

merged 1 commit into from Nov 16, 2018

Conversation

kotakanbe
Copy link
Collaborator

Also check vendor, product while matcing.

ex:
in the current implementation, cpe:/a:apache:struts:2.3.35 detects below CVEs.
https://nvd.nist.gov/vuln/detail/CVE-2016-3093

Vulnerable software and versions Switch to CPE 2.2
Configuration 1
AND
OR
 cpe:2.3:a:ognl_project:ognl:*:*:*:*:*:*:*:*    versions up to (including) 3.0.11
OR
 cpe:2.3:a:apache:struts:2.0.0:*:*:*:*:*:*:*
 cpe:2.3:a:apache:struts:2.0.1:*:*:*:*:*:*:*
 cpe:2.3:a:apache:struts:2.0.2:*:*:*:*:*:*:*
....

It will be detected incorrectly by matching a:ognl_project:ognl.

https://nvd.nist.gov/vuln/detail/CVE-2013-4316

@kotakanbe kotakanbe merged commit 9549cd3 into master Nov 16, 2018
@kotakanbe kotakanbe deleted the bug-cpe-seach branch March 22, 2019 04:50
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.

None yet

1 participant