mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 09:32:48 -05:00
use fixed-time comparison of secrets (#1698)
This commit is contained in:
@ -80,7 +80,7 @@ namespace Bit.Billing.Controllers
|
||||
[HttpPost("webhook")]
|
||||
public async Task<IActionResult> PostWebhook([FromQuery] string key)
|
||||
{
|
||||
if (key != _billingSettings.StripeWebhookKey)
|
||||
if (!CoreHelpers.FixedTimeEquals(key, _billingSettings.StripeWebhookKey))
|
||||
{
|
||||
return new BadRequestResult();
|
||||
}
|
||||
|
Reference in New Issue
Block a user