Skip to content

[backend] 2FA setup doesn't validate walletAddress is a well-formed Stellar address #913

Description

@Wilfred007

Description

The 2FA setup endpoint accepts a walletAddress parameter without checking it's a syntactically valid Stellar public key (G... with correct length/checksum). A malformed address can be stored and only fail much later when it's actually used against the Stellar network.

Where

backend/src/controllers — 2FA setup handler

Acceptance Criteria

  • Validate walletAddress format at the schema layer before it reaches the controller
  • Add a test asserting a malformed address is rejected with a 400

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend developmenteasySimple tasks

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