Skip to main content

CISSP practice question · Software Development Security

A user profile update API binds every field in the submitted JSON directly to the stored user object.

A user profile update API binds every field in the submitted JSON directly to the stored user object. A tester adds an isAdmin field set to true to an ordinary profile update and gains administrator rights. Which flaw and fix BEST fit?

  • ASQL injection; parameterize the update query
  • BMass assignment; bind only an allowlist of fields users may change
  • CBroken authentication; require MFA for profile updates
  • DInsecure deserialization; sign the JSON payload
Show the answer and explanation

Correct answer: B) Mass assignment; bind only an allowlist of fields users may change

Mass assignment occurs when frameworks bind client-supplied fields to internal object properties automatically; binding only an explicit allowlist of user-editable fields fixes it.

Why each option is right or wrong

  • A) Incorrect. The request contained no SQL syntax, and parameterized queries would store the isAdmin value just the same.
  • B) Correct. The API trusted every field the client sent, including a privileged property. Explicitly allowlisting editable fields, or using separate input objects, prevents clients from setting attributes such as roles.
  • C) Incorrect. The tester was a legitimately authenticated user. Stronger authentication does not stop an authorized user from submitting extra fields.
  • D) Incorrect. Signing could stop tampering in transit, but the tester creates the request and the server would accept any payload the client signs. The issue is which fields are bound.
Exam domain
Software Development Security · 10% of CISSP
Question type
Multiple choice (one answer)

Practise the full CISSP exam

This question is one of a small free sample from the CertRidge CISSP bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with ISC2; never copied from the real exam.