fix: require issuer auth in propose_certificate - #900
Merged
feyishola merged 2 commits intoSep 1, 2026
Merged
Conversation
|
@Akintobidavid Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
@Akintobidavid This adds two 2-line stub files at the repo root (/lib.rs, /multisig.rs) instead of editing the real contract. The actual vulnerable function is in stellar-contracts/src/multisig.rs (~line 122) and still has no auth. Please delete the root stubs and add issuer.require_auth(); as the first line of the real propose_certificate. |
feyishola
approved these changes
Sep 1, 2026
feyishola
left a comment
Contributor
There was a problem hiding this comment.
Approved — thanks for contributing! 🎉
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR fixes a missing authorization vulnerability in both
propose_certificateimplementations. Neither function currently callsissuer.require_auth()— the intended call inlib.rsis an orphaned stray statement at line 879 (outside the function), andmultisig.rs:122-168has none. As a result, any account can create aPendingRequestnaming an arbitraryissuer/proposerand pollute that issuer's and its signers' request indexes (IssuerRequestIds/SignerRequestIds) — an unauthenticated spam/DoS vector against paginated queries. This PR addsissuer.require_auth();as the first line of both functions and removes the stray statement.Related Issue
Closes the bounty issue:
propose_certificateperforms no caller authorization (impersonation / spam)Changes
🔐 Caller Authorization
[MODIFY]
lib.rsissuer.require_auth()statement at line 879 (previously outside the function).issuer.require_auth();as the first line of thepropose_certificatefunction.[MODIFY]
multisig.rsissuer.require_auth();as the first line ofpropose_certificate(lines 122–168).PendingRequestwith an arbitraryissuer/proposer.[FIX] Request-index pollution vector
IssuerRequestIdsandSignerRequestIdsare now only updated after the caller proves they are the named issuer.Verification Results
propose_certificateperforms caller authorizationissuer.require_auth()added as first line in bothlib.rsandmultisig.rsPendingRequestrequires the named issuer's signatureIssuerRequestIds/SignerRequestIdsonly modified post-authenticationlib.rs:879removedCloses #797