Skip to content

Security: Potential unauthenticated object creation endpoint#9371

Open
tuanaiseo wants to merge 1 commit intomozilla:masterfrom
tuanaiseo:contribai/fix/security/potential-unauthenticated-object-creatio
Open

Security: Potential unauthenticated object creation endpoint#9371
tuanaiseo wants to merge 1 commit intomozilla:masterfrom
tuanaiseo:contribai/fix/security/potential-unauthenticated-object-creatio

Conversation

@tuanaiseo
Copy link
Copy Markdown

Problem

CreateInternalIssue exposes CreateAPIView without an explicit permission_classes declaration. If global DRF permissions are permissive, attackers could create or mutate internal issue records without authorization.

Severity: high
File: treeherder/webapp/api/internal_issue.py

Solution

Set explicit permission_classes on this view (for example staff-only or authenticated roles), and add tests asserting unauthenticated/unauthorized requests receive 401/403.

Changes

  • treeherder/webapp/api/internal_issue.py (modified)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

`CreateInternalIssue` exposes `CreateAPIView` without an explicit `permission_classes` declaration. If global DRF permissions are permissive, attackers could create or mutate internal issue records without authorization.

Affected files: internal_issue.py

Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
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