who in updateStreamInternal #170
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
duplicate
This issue or pull request already exists
Handle
pauliax
Vulnerability details
Impact
function updateStreamInternal accepts a parameter 'who' but uses msg.sender when accessing the stream:
This will not update the expected stream when who != msg.sender. Currently, this function is only called from within the modifier, and the modifier is applied with msg.sender only, but still this risk needs to be addressed.
Recommended Mitigation Steps
Consider either updating 'who', or totally getting rid of this parameter to avoid confusion.
The text was updated successfully, but these errors were encountered: