On main: notification-mutations #75
Open
DryRunSecurity / IDOR Analyzer
succeeded
May 27, 2025 in 1s
DryRun Security
Details
IDOR Analyzer Findings: 2 detected
⚠️ Potential IDOR Vulnerability app/graphql/mutations/notifications/create_notification.rb (click for details)
| Type | Potential IDOR Vulnerability |
| Description | This is a potential IDOR (Insecure Direct Object Reference) vulnerability because the CreateNotification mutation allows specifying an arbitrary user_id without any authorization checks. This means a user could potentially create notifications for other users by manipulating the user_id parameter. The code does not implement any server-side validation to ensure that the current authenticated user has the right to create a notification for the specified user_id. |
| Filename | app/graphql/mutations/notifications/create_notification.rb |
| CodeLink |
⚠️ Potential IDOR Vulnerability app/graphql/mutations/notifications/update_notification.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 if the current user has the right to access or modify that specific notification. An attacker could potentially manipulate the ID parameter to read or mark notifications belonging to other users. |
| Filename | app/graphql/mutations/notifications/update_notification.rb |
| CodeLink |
Loading