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

Ability to blacklist CPE patterns for specific Nixpkgs packages? #62

Open
primeos opened this issue May 20, 2020 · 58 comments
Open

Ability to blacklist CPE patterns for specific Nixpkgs packages? #62

primeos opened this issue May 20, 2020 · 58 comments

Comments

@primeos
Copy link

primeos commented May 20, 2020

I've just noticed a few false positives, basically a all duplicates of the following two issues:

Because e.g. cpe:2.3:a:jenkins:git:*:*:*:*:*:jenkins:*:* matched for Git (while it's for the Jenkins Git plugin) and cpe:2.3:a:redhat:fuse:*:*:*:*:*:*:*:* matched for fuse (while it's for Red Hat Fuse instead of libfuse).

There will obviously always be some false positive but I was wondering if we could do something about these two cases. Either by changing the matching algorithm or maintaining a blacklist (e.g. jenkins:git != git (there's also gitFull so maybe using pname would actually be better))?

(Note: I'm unfortunately not familiar with the current implementation.)

@ckauhaus
Copy link
Collaborator

Interesting idea. Need to think about how to extend vulnix' matching code.

@ckauhaus
Copy link
Collaborator

ckauhaus commented Jun 5, 2020

See also NixOS/nixpkgs#75974

@ckauhaus
Copy link
Collaborator

@ckauhaus
Copy link
Collaborator

See also NixOS/nixpkgs#88405 (comment)

@ckauhaus
Copy link
Collaborator

See also NixOS/nixpkgs#88371

@ckauhaus
Copy link
Collaborator

Another instance: NixOS/nixpkgs#90831 (comment)

@ckauhaus
Copy link
Collaborator

And NixOS/nixpkgs#90950

@ckauhaus
Copy link
Collaborator

NixOS/nixpkgs#90835

@ckauhaus
Copy link
Collaborator

NixOS/nixpkgs#90838

@ckauhaus
Copy link
Collaborator

NixOS/nixpkgs#91036

@ckauhaus
Copy link
Collaborator

NixOS/nixpkgs#90777

@ckauhaus
Copy link
Collaborator

NixOS/nixpkgs#90953

@ckauhaus
Copy link
Collaborator

NixOS/nixpkgs#90902

@ckauhaus
Copy link
Collaborator

NixOS/nixpkgs#91039

@ckauhaus
Copy link
Collaborator

ckauhaus commented Jul 1, 2020

NixOS/nixpkgs#90944

@ckauhaus
Copy link
Collaborator

ckauhaus commented Jul 3, 2020

NixOS/nixpkgs#92032

@ckauhaus
Copy link
Collaborator

ckauhaus commented Jul 3, 2020

NixOS/nixpkgs#92029

@ckauhaus
Copy link
Collaborator

ckauhaus commented Jul 3, 2020

NixOS/nixpkgs#92062

@ckauhaus
Copy link
Collaborator

NixOS/nixpkgs#92871

@ckauhaus
Copy link
Collaborator

NixOS/nixpkgs#92864 - disregard gitlab enterprise edition

@ckauhaus
Copy link
Collaborator

@ckauhaus
Copy link
Collaborator

@ckauhaus
Copy link
Collaborator

Misinterpretation of terraform-provide-aws NixOS/nixpkgs#96829

@ckauhaus
Copy link
Collaborator

ckauhaus commented Oct 1, 2020

@ckauhaus
Copy link
Collaborator

ckauhaus commented Oct 1, 2020

NixOS/nixpkgs#88280

@ckauhaus
Copy link
Collaborator

ckauhaus commented Oct 9, 2020

@ckauhaus
Copy link
Collaborator

@ckauhaus
Copy link
Collaborator

ckauhaus commented Oct 21, 2020

Need to disambiguate between firefox and firefox_esr, e.g. in https://nvd.nist.gov/vuln/detail/CVE-2020-15655

Seen in NixOS/nixpkgs#101152

@ckauhaus
Copy link
Collaborator

ckauhaus commented Nov 4, 2020

Jenkins InfluxDB plugin: NixOS/nixpkgs#102795

@ckauhaus
Copy link
Collaborator

ckauhaus commented Nov 4, 2020

Jenkins Kanboard plugin: NixOS/nixpkgs#102798

@ckauhaus
Copy link
Collaborator

ckauhaus commented Nov 4, 2020

KeystoneJS NixOS/nixpkgs#102800

@ckauhaus
Copy link
Collaborator

ckauhaus commented Nov 5, 2020

MySQL component of Oracle SQL: NixOS/nixpkgs#102883

@ckauhaus
Copy link
Collaborator

ckauhaus commented Nov 5, 2020

matrix-synapse: NixOS/nixpkgs#102901

@ckauhaus
Copy link
Collaborator

ckauhaus commented Nov 5, 2020

Jetbrains Scala project (plugin) NixOS/nixpkgs#100322

@ckauhaus
Copy link
Collaborator

ckauhaus commented Nov 5, 2020

Styx: Java reverse proxy (https://github.com/HotelsDotCom/styx) vs static site generator: NixOS/nixpkgs#90985

@ckauhaus
Copy link
Collaborator

ckauhaus commented Nov 5, 2020

HP/Aruba airwave vs Airwave media player: NixOS/nixpkgs#99730 (comment)

@ckauhaus
Copy link
Collaborator

ckauhaus commented Dec 2, 2020

diamond-0.8.36: cryptocurrency vs bioinformatics NixOS/nixpkgs#90781

@ckauhaus
Copy link
Collaborator

ckauhaus commented Dec 2, 2020

connect-1.105: proxy vs Adobe product NixOS/nixpkgs#90741

@ckauhaus
Copy link
Collaborator

ckauhaus commented Dec 7, 2020

unicode-2.6: nodejs vs Python lib

@ckauhaus
Copy link
Collaborator

ckauhaus commented Dec 7, 2020

st-0.8.3: node.js app vs. terminal emulator

@ckauhaus
Copy link
Collaborator

ckauhaus commented Dec 7, 2020

gatling-0.15: Jenkins plugin vs webserver

@ckauhaus
Copy link
Collaborator

ckauhaus commented Dec 7, 2020

fastjson-0.99.8: Java vs C library

@ckauhaus
Copy link
Collaborator

ckauhaus commented Dec 7, 2020

drive-0.3.8.1: Synology app vs Google drive client

@ckauhaus
Copy link
Collaborator

ckauhaus commented Dec 7, 2020

drill-0.6.0: Apache drill vs. Rust-based load tester

@ckauhaus
Copy link
Collaborator

ckauhaus commented Dec 7, 2020

gogs-0.12.3: Jenkins plugin vs standalone Go app

@ckauhaus
Copy link
Collaborator

openssl C library vs Ruby gem: NixOS/nixpkgs#106218 (comment)

@ckauhaus
Copy link
Collaborator

Aviatrix OpenVPN client vs. openvpn core: NixOS/nixpkgs#106219 (comment)

@ckauhaus
Copy link
Collaborator

Jenkins findbugs plugin: NixOS/nixpkgs#106190 (comment)

@ckauhaus
Copy link
Collaborator

Jenkins InfluxDB plugin: NixOS/nixpkgs#106198 (comment)

@ckauhaus
Copy link
Collaborator

built-in php calendar extension vs. PECL calendera extension: NixOS/nixpkgs#106226 (comment)

@ckauhaus
Copy link
Collaborator

GNOME Orca vs. Spinnaker Orca: NixOS/nixpkgs#106220 (comment)

@LeSuisse
Copy link

HashiCorp Vault vs. TIBCO Managed File Transfer Internet Server: NixOS/nixpkgs#109227 (comment)

@ckauhaus
Copy link
Collaborator

A lot of stuff. I've been tinkering with this issues for a while now and my current idea is not to use a blacklist but to include a cpe metadata field directly in the derivation for all cases where an implicit default like cpe:2.3:a:*:${pname}:${version}::::::: doesn't get it. Quite short on time ftm, but things will relax soon.

@ckauhaus
Copy link
Collaborator

ckauhaus commented Mar 8, 2021

firefox ESR/regular, Linux/Android: NixOS/nixpkgs#113435 (comment)

@ztzg
Copy link

ztzg commented Mar 20, 2021

A lot of stuff. I've been tinkering with this issues for a while now and my current idea is not to use a blacklist but to include a cpe metadata field directly in the derivation for all cases where an implicit default like cpe:2.3:a:*:${pname}:${version}::::::: doesn't get it. Quite short on time ftm, but things will relax soon.

Was pondering the same. Have you discussed this possibility with Eelco and/or other Nixpkgs contributors? "Polluting" Nixpkgs might not be the nicest thing, but meta seems to be the best place to set/override some of the CPE attributes.

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

No branches or pull requests

4 participants