VYPR
High severityOSV Advisory· Published Apr 25, 2019· Updated Aug 4, 2024

CVE-2019-11514

CVE-2019-11514

Description

User/Command/ConfirmEmailHandler.php in Flarum before 0.1.0-beta.8 mishandles invalidation of user email tokens.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
flarum/flarumPackagist
< 0.1.0-beta.80.1.0-beta.8

Affected products

1
  • Range: v0.1.0-beta, v0.1.0-beta.2, v0.1.0-beta.3, …

Patches

1
66607a567493

Always invalidate all user email tokens

https://github.com/flarum/coreFranz LiedkeNov 28, 2018via ghsa
2 files changed · +12 1
  • src/User/Command/ConfirmEmailHandler.php+2 1 modified
    @@ -53,7 +53,8 @@ public function handle(ConfirmEmail $command)
             $user->save();
             $this->dispatchEventsFor($user);
     
    -        $token->delete();
    +        // Delete *all* tokens for the user, in case other ones were sent first
    +        $user->emailTokens()->delete();
     
             return $user;
         }
    
  • src/User/User.php+10 0 modified
    @@ -614,6 +614,16 @@ public function notifications()
             return $this->hasMany('Flarum\Notification\Notification');
         }
     
    +    /**
    +     * Define the relationship with the user's email tokens.
    +     *
    +     * @return \Illuminate\Database\Eloquent\Relations\HasMany
    +     */
    +    public function emailTokens()
    +    {
    +        return $this->hasMany(EmailToken::class);
    +    }
    +
         /**
          * Define the relationship with the permissions of all of the groups that
          * the user is in.
    

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.