Skip to content

Fix IDOR in Requests and Donations controllers (5509)#5519

Open
cassxw wants to merge 2 commits intorubyforgood:mainfrom
cassxw:5509-idor-requests-donations
Open

Fix IDOR in Requests and Donations controllers (5509)#5519
cassxw wants to merge 2 commits intorubyforgood:mainfrom
cassxw:5509-idor-requests-donations

Conversation

@cassxw
Copy link

@cassxw cassxw commented Mar 15, 2026

Partially resolves #5509 (other controller fixes in #5514)

Description

Scopes Requests and Donations lookups to the current organization to prevent cross‑org access (IDOR). Adds request specs for cross‑org 404 behavior and updates the request show spec to use a valid default storage location.

Removes tenant isolation risk for Requests and Donations lookups.

Tradeoffs: 404s for cross‑org IDs instead of showing the record.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • bundle exec rspec spec/requests/requests_requests_spec.rb spec/requests/donations_requests_spec.rb - all green.
  • When running the full test suite, experienced some flaky test failures, which I believe are currently being sorted out in Fix flaky tests #5516.

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.

Security: Cross-organization IDOR in 5 controllers (Requests, Donations, Kits, Announcements, Distributions)

1 participant