Skip to content

using wildcards in the /cpes #179

@dmitry84

Description

@dmitry84

Hi
I'm trying to understand is it possible to use wildcards in the /cpes queries.
For example
'{"name": "cpe:/a:sudo[wildcard]:sudo:-:-"}'

The reason why I'm asking this - there are items for which it is hard to get vendor name from the package, such as "openssl_software_foundation" for open SSL or sudo_project for sudo

I've looked into GetByCpeURI->UnbindURI in the code, also tried a lot of different combinations, but always get either empty array, or Internal Server Error, or invalid character '*' in string escape code"

There is also no examples of a wildcard in the db_test.go

Could you please tell me if it is possible to use a wildcard and provide an example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions