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)
Related CISSP questions
- A mobile app's API returns complete customer records, including national ID numbers and internal account notes.Software Development Security
- A C service computes a buffer size as count multiplied by record size, using 32-bit unsigned integers, with count taken…Software Development Security
- A team is designing password storage for a new web application. Which approach BEST protects stored passwords if the…Software Development Security
- A web application keeps the same session ID before and after login. An attacker plants a known session ID in a victim's…Software Development Security
All 110 free CISSP questions by domain · 15 sample questions on one page
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.