Skip to content

[Medium] Arbitrary RPC call parameters persisted to MongoDB unredacted, with no retention policy #5

Description

@Kingvic300

Severity: Medium — Sensitive Data Retention

Every <chain> call invocation logs the full raw params_val JSON (whatever the user typed via --params) into the rpc_logs collection, with no redaction and no retention policy.

Where

  • cli/src/cli/handlers.rs:322-365

Root cause

call accepts arbitrary JSON-RPC parameters (including for methods like eth_sendRawTransaction or Sui's transaction-execution methods) and logs them verbatim.

Impact

A user who mistakenly pastes a signed transaction, private key, or other sensitive payload as a parameter has it durably stored in cleartext, forever, compounding the impact of the already-known unauthenticated DB access (#29).

Suggested fix

Redact or opt-out of logging raw params, or explicitly document and cap retention (e.g. TTL index, similar to the fix needed for Txio-labs/txio#30).

Priority: Medium
Labels: bug, security, priority:medium

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Third CampaignCampaign: Third CampaignbugSomething isn't workingpriority:mediumNormal prioritysecuritySecurity-relevant issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions