Skip to content

Security: SSRF via smart contract HTTPRequest/HTTPPostJSON #2169

@imfht

Description

@imfht

CWE-918: Built-in VM functions HTTPRequest() and HTTPPostJSON() in packages/smart/funcs.go pass contract-supplied URLs directly to http.NewRequest() with zero validation. Any contract deployer can scan internal networks of validator nodes. Fix: add URL validation with private IP blocking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions