Skip to content

Incomplete regular expression for hostnames #48

@wangli1030

Description

@wangli1030

in internal/versionchecker/fromservice.go:28
var imageVersion = regexp.MustCompile(``^quay.io/jetstack/cert-manager-webhook:(v(?:\d+)\.(?:\d+)\.(?:\d+)(?:.*))$``)
the dot before 'io' shoule be escaped, otherwise, it will have potential risk to match more hosts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions