Skip to content

[CRITICAL] Insecure Direct Object Reference (IDOR) in API #22

Description

@hacktron-app-dev

Severity: critical
Category: vulnerability
Triage Status: new
Validation: Human: unvalidated | LLM: valid


Description

The API endpoint /api/users/{id} does not validate that the authenticated user has permission to access the requested user ID. An attacker can enumerate and access other users data by changing the ID parameter.

Proof of Concept

  1. Login as user with ID 123
  2. Request GET /api/users/456
  3. Receive full user data for user 456 without authorization check

Vulnerable Code

File: src/api/users.controller.ts:45

async getUser(@Param("id") id: string) { return this.userService.findById(id); }

Metadata

  • Finding ID: 750e8400-e29b-41d4-a716-446655440101
  • Found By: hacktron_security_agent
  • Validated By: hacktron_llm_validator
  • Duplicate Of: N/A
  • Reported At: 2025-12-03T16:51:44.000Z

This issue was automatically created by Hacktron security scanning.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions