Skip to content

[Bug] Nested URL credential leak in redactSensitiveUrl #105427

Description

@aniruddhaadak80

redactSensitiveUrl only scrubs query parameters if the outer URL is recognized as sensitive. If a nested URL containing user credentials (e.g. https://user:[email protected]) is passed as a query parameter value to a non-sensitive outer URL, the credentials pass through completely unredacted.

Source Reference:
https://github.com/openclaw/openclaw/blob/main/packages/net-policy/src/redact-sensitive-url.ts#L89-L113

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions