Skip to content

fix #48: add provider auth to apply_liveness_slash - #52

Open
leanworld7-netizen wants to merge 1 commit into
EquipChain:mainfrom
leanworld7-netizen:fix/apply-liveness-slash-auth-48
Open

fix #48: add provider auth to apply_liveness_slash#52
leanworld7-netizen wants to merge 1 commit into
EquipChain:mainfrom
leanworld7-netizen:fix/apply-liveness-slash-auth-48

Conversation

@leanworld7-netizen

Copy link
Copy Markdown

Fix for #48\n\nAdded flow.provider.require_auth() before calling liveness_check_and_slash. Prevents unauthorized griefing attacks on stream buffer balances.

apply_liveness_slash was callable by anyone, allowing griefing attacks on stream buffer balances. Added flow.provider.require_auth() to ensure only the stream provider can trigger liveness slashes.
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.

1 participant