A security auditor is examining backend service logs following an unauthorized access report on a cloud microservice. The auditor observes two distinct request patterns:
1. `GET /documents/download?path=../../../../etc/shadow` returning HTTP `200 OK` along with system credential hashes.
2. `PUT /api/v1/profile` with payload `{"username": "jdoe", "is_admin": true}` resulting in a regular user successfully assigning themselves administrator rights.
Based on these findings, which of the following software vulnerabilities are present in the application? (Select TWO.)
- Path traversalCevap
- Mass assignmentCevap
- CSQL injection
- DBuffer overflow
Cevap
The application exhibits path traversal (directory traversal) and mass assignment (auto-binding) vulnerabilities.
The first log entry demonstrates path traversal because directory navigation operators (`../`) were executed to retrieve system files outside the web root. The second log entry demonstrates mass assignment because client-controlled JSON key-value pairs were automatically bound to internal object properties (`is_admin`), resulting in unauthorized privilege escalation.
Adım Adım Çözüm
Anahtar Kavram
Software Vulnerabilities and Logic Flaws (Path Traversal & Mass Assignment)