Skip to content

Commit

Permalink
Double-check that acctID and acct.ID are the same
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongable authored Jan 30, 2025
1 parent f2f8070 commit 0e33bfc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wfe2/wfe.go
Original file line number Diff line number Diff line change
Expand Up @@ -2501,6 +2501,11 @@ func (wfe *WebFrontEndImpl) FinalizeOrder(ctx context.Context, logEvent *web.Req
return
}

if acct.ID != acctID {
wfe.sendError(response, logEvent, probs.Malformed("Mismatched account ID"), nil)
return
}

order, err := wfe.sa.GetOrder(ctx, &sapb.OrderRequest{Id: orderID})
if err != nil {
if errors.Is(err, berrors.NotFound) {
Expand Down

0 comments on commit 0e33bfc

Please sign in to comment.