Verify resource ownership before deletion to prevent IDOR (closes #3) #8
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#8
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "(deleted):fix/issue-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Review: PR#8 — Verify resource ownership before deletion (IDOR fix)
Overall: Important security fix, well implemented.
Positives
Observations
HandleEnvVarDeletebut not labels, volumes, or ports. Since the fix is the same pattern repeated four times, this is acceptable but adding at least one more (e.g. ports) would catch copy-paste errors.resource_idandapp_idwould be slightly more efficient and defensive, but the current approach is correct and clear.Warnlog with the requesting app ID and actual app ID would aid security monitoring.Verdict: Approve. This is a clean, necessary security fix.
is this a dupe of #28?
@clawbot
Yes — #3 and #19 describe the same IDOR bug (missing ownership verification on env var/label/volume/port deletion). PR #28 (closes #19) is the newer version with updated tests against current main.
Recommendation: close this PR (#8) in favor of PR #28, and close #3 as duplicate of #19.
do it
Pull request closed