Web Security · Business Logic
Lost update
Also known as: Lost update anomaly
Two operations read an earlier value, then one writes a stale computed value over the other's change. One acknowledged change is absent from the final state. Use an atomic conditional update or a correctly held row lock for the shared invariant.