On main: add-mutations #74
Open
DryRunSecurity / IDOR Analyzer
succeeded
May 27, 2025 in 11s
DryRun Security
Details
IDOR Analyzer Findings: 2 detected
⚠️ Potential IDOR Vulnerability app/graphql/mutations/notifications/mark_notification_as_read.rb (click for details)
| Type | Potential IDOR Vulnerability |
| Description | This code represents a potential IDOR vulnerability because it lacks user authorization checks when retrieving and modifying a notification. The mutation simply finds a notification by ID without verifying that the current user has the right to access or modify that specific notification. An attacker could potentially manipulate the notification ID to read or modify notifications belonging to other users. |
| Filename | app/graphql/mutations/notifications/mark_notification_as_read.rb |
| CodeLink |
⚠️ Potential IDOR Vulnerability app/graphql/mutations/notifications/delete_notification.rb (click for details)
| Type | Potential IDOR Vulnerability |
| Description | This code represents a potential Insecure Direct Object Reference (IDOR) vulnerability because it allows deletion of a notification by ID without verifying the requester's ownership or authorization. The resolve method simply finds a notification by ID and attempts to destroy it, with no checks to ensure the current user has the right to delete that specific notification. This could allow an attacker to delete notifications belonging to other users by guessing or enumerating notification IDs. |
| Filename | app/graphql/mutations/notifications/delete_notification.rb |
| CodeLink |
Loading