Skip to content

Potential Option/Argument Injection #69

Description

@dirkmueller

In api/data_interface.go, handlers like SubmitNodeAttributes, SubmitNodeUtilizations, and SubmitResourceUtilizations accept user-controlled fields (frontendNvpair.Name and frontendNvpair.Value) and pass them directly as arguments to exec.Command without sanitization or validation. If an attacker inputs fields starting with hyphens (e.g., - or --), they can inject arguments or flags into the underlying crm command.

Example:

cmd := exec.Command("crm", "node", "attribute", thisNode.Uname, "set", frontendNvpair.Name, frontendNvpair.Value)

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