CWE-837 – Improper Enforcement of a Single, Unique Action

Read Time:1 Minute, 26 Second

Description

The software requires that an actor should only be able to perform an action once, or to have only one unique action, but the software does not enforce or improperly enforces this restriction.

In various applications, a user is only expected to perform a certain action once, such as voting, requesting a refund, or making a purchase. When this restriction is not enforced, sometimes this can have security implications. For example, in a voting application, an attacker could attempt to “stuff the ballot box” by voting multiple times. If these votes are counted separately, then the attacker could directly affect who wins the vote. This could have significant business impact depending on the purpose of the software.

Modes of Introduction:

Likelihood of Exploit:

 

Related Weaknesses

CWE-799

 

Consequences

Other:

An attacker might be able to gain advantage over other users by performing the action multiple times, or affect the correctness of the software.

 

Potential Mitigations

CVE References

 

  • CVE-2008-0294
    • Ticket-booking web application allows a user to lock a seat more than once.
  • CVE-2005-4051
    • CMS allows people to rate downloads by voting more than once.
  • CVE-2002-216
    • Polling software allows people to vote more than once by setting a cookie.
  • CVE-2003-1433
    • Chain: lack of validation of a challenge key in a game allows a player to register multiple times and lock other players out of the game.
  • CVE-2002-1018
    • Library feature allows attackers to check out the same e-book multiple times, preventing other users from accessing copies of the e-book.
  • CVE-2009-2346
    • Protocol implementation allows remote attackers to cause a denial of service (call-number exhaustion) by initiating many message exchanges.