Skip to content

require proposalId to be [A-Za-z0-9_-] and max 128 bytes - #85

Open
edmundedgar wants to merge 1 commit into
zodiaceco:mainfrom
edmundedgar:sanitize-proposal-id
Open

edmundedgar wants to merge 1 commit into
zodiaceco:mainfrom
edmundedgar:sanitize-proposal-id

Conversation

@edmundedgar

Copy link
Copy Markdown
Contributor

This PR requires the proposalId to be something that could reasonably be an ID, namely alphanumeric, underscore or hyphen.

The proposalId isn't used by code at all but is passed through verbatim to the social layer. We've seen a lot of hopeful AI bots stuffing extra text or code into this parameter in the hope of getting something to pass that disputers don't understand. So far in practice this has mostly resulted in transferring money from hackers to honest disputers (or in one case from one honest disputer to another honest disputer due to now-fixed bugs in reality-eth-lib) but it's better to just close off the attack vector and make sure that the ID only contains characters that are reasonable for an ID.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants