Skip to content

SetStellarAddressDto.stellarAddress is validated only with @IsString(), unlike every other Stellar-address-accepting DTO in the codebase #120

Closed

Description

@chonilius

src/users/users.controller.ts declares:

class SetStellarAddressDto {
  @IsString()
  stellarAddress: string;
}

Every other DTO in the codebase that accepts a Stellar address — FundBountyDto, FundEscrowDto, ReleaseEscrowDto, SplitRecipientDto, FundMilestoneDto, ResolveIssueDto, DepositDto, AssignRewardDto — uses the custom @IsStellarAddress() validator (src/common/validators/stellar-address.validator.ts), which checksum-validates via StrKey.isValidEd25519PublicKey. setStellarAddress is the sole exception: any non-empty string passes.

This is corroborated by the test suite's own structure — dedicated e2e files exist for stellar-address-validation-bounties-milestones, stellar-address-validation-escrow, and stellar-address-validation-maintenance-pool, but there is no equivalent for users, consistent with the validator never having been applied here.

Since User.stellarAddress is later read directly as the recipientAddress passed to EscrowService.release/splitRelease in BountiesService.markMergedAndRelease, a malformed address set through this endpoint doesn't fail until the Soroban call itself rejects it — by which point the bounty has already been marked MERGED (per #46's stuck-state mechanics).

Fix: replace @IsString() with @IsStellarAddress() on SetStellarAddressDto.stellarAddress.

Activity

  1. added
    bug
    security
    very hard
    help wanted
    on Aug 21, 2026
  2. added
    Stellar Wave
    on Aug 26, 2026
  3. Mhidesav commented on Aug 26, 2026

    @Mhidesav

    @Mhidesav has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    "Hi! I've gone through the task description in detail and I'm clear on what's required and what the expected outcome looks like. I've worked on similar issues before, and I'm confident I can deliver a solid, tested solution within about an hour. I'd love to take this one on. Please assign it to me if it's still available. Thanks!"

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Mhidesav to this issue.

  4. 0xtrendz commented on Aug 26, 2026

    @0xtrendz

    @0xtrendz has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hello, I’m interested in working on this issue and would appreciate being assigned to it. Thank you.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @0xtrendz to this issue.

  5. temitope-007 commented on Aug 26, 2026

    @temitope-007

    @temitope-007 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Hi maintainer

    I'd like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @temitope-007 to this issue.

  6. Wilfred007 commented on Aug 26, 2026

    @Wilfred007
    Contributor

    @Wilfred007 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.

    Can I work on this task?

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Wilfred007 to this issue.

  7. drips-wave commented on Aug 26, 2026

    @drips-wave

    Congratulations, @Wilfred007! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @Wilfred007: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  8. drips-wave commented on Aug 27, 2026

    @drips-wave

    This issue has been completed by @Wilfred007 as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @Wilfred007: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  9. removed
    Stellar Wave
    on Oct 15, 2026
  10. added
    Stellar Wave
    on Oct 15, 2026
  11. removed
    Stellar Wave
    on Oct 15, 2026
  12. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar Wavebughelp wantedsecurityvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions