Commit acd2b89
committed
fix: Avoid FPs when Composer product name has php
Previously, only PHP package's vendor (product URL's namespace) was
considered as evidence. As of DependencyCheck v12, specifically change
from b51921f, the product (name) is also being considered as evidence.
This results in new false positives. PHP Composer checks are affected,
for example, considering package `pkg:composer/phpunit/[email protected]`
as `cpe:2.3:a:php:php:6.0:*:*:*:*:*:*:*` resulting in 17 CVEs
(including Critical).
This commit adds two new suppression rules: one for php as the prefix,
and one for php as the suffix. Both can be observed in the wild.
Additionally, underscore is sometimes used instead of hyphen, and should
be respected. Furthermore, there is `symfony/polyfill-php83` which adds
number suffix, which should also be suppressed as it currently maps to
the base `cpe:/a:php:php`.1 parent 80a7e7e commit acd2b89
File tree
1 file changed
+18
-0
lines changed- core/src/main/resources
1 file changed
+18
-0
lines changedLines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
367 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
368 | 386 | | |
369 | 387 | | |
370 | 388 | | |
| |||
0 commit comments