flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Audit] Pause/resume respond "success" without actually changing any state

Open K1NGD4VID opened this issue 3 months ago • 9 comments

Filed from the second-wave repository audit (issue 18/100). See the audit summary for full category context.

  • Location: backend/src/controllers/stream.controller.ts:807-841, 890-919
  • Problem: pauseStream/resumeStream call simulation-only Soroban functions (see Architecture #B7) and respond { success: true, stream }, echoing the unmodified, pre-call stream object — no on-chain transaction is submitted and no DB field (isPaused/pausedAt) is updated.
  • Evidence: Response object is the same stream read before the call; no prisma.stream.update in either handler.
  • Suggested implementation: Either implement real signed on-chain calls (see Architecture #B7) or, until that lands, return 501 Not Implemented/an explicit "not yet supported" error instead of a false success: true.
  • Acceptance criteria: Calling pause/resume either performs a real state change verifiable in the DB and on-chain, or returns a non-200 response indicating it did not.
  • Difficulty: L
  • Expected impact: Stops the API from lying to clients about whether a stream was actually paused/resumed.

K1NGD4VID avatar Aug 29 '26 18:08 K1NGD4VID

Hello and good day. I'm experienced and would love to resolve your issues in no time. Thank you

DeveloperEmmy avatar Aug 29 '26 19:08 DeveloperEmmy

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

pls assign me to this task, i can work on it

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

d1a-m3n avatar Aug 29 '26 19:08 d1a-m3n

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

I’ve reviewed the issue and have a solid understanding of what needs to be addressed. I’d like to take responsibility for the implementation and ensure the resulting changes are reliable, well-tested, and easy to maintain.

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

rajiabdulrahmon2020-ui avatar Aug 29 '26 19:08 rajiabdulrahmon2020-ui

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

Let me work on this.

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

michealross avatar Aug 29 '26 20:08 michealross

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

🧑‍💻 @d1a-m3n: 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 🌊

drips-wave[bot] avatar Aug 29 '26 20:08 drips-wave[bot]

This issue has been removed from the Stellar Wave Program by the repository maintainers.

@d1a-m3n, you have been unassigned from this issue. If you have any questions, please reach out to the repo maintainers.

drips-wave[bot] avatar Nov 18 '26 17:11 drips-wave[bot]

@e-simileoluwa has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

Hi maintainer, I can get this issue fixed quickly. Please assign it to me

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

e-simileoluwa avatar Nov 21 '26 12:11 e-simileoluwa

Congratulations, @e-simileoluwa! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

🧑‍💻 @e-simileoluwa: 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 🌊

drips-wave[bot] avatar Nov 21 '26 12:11 drips-wave[bot]

This issue has been completed by @e-simileoluwa as part of the Stellar Wave Program's 11th Wave 🥳

😎 @e-simileoluwa: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, 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.

drips-wave[bot] avatar Nov 22 '26 09:11 drips-wave[bot]