mirror of
https://github.com/bitwarden/server
synced 2025-12-26 05:03:18 +00:00
use fixed-time comparison of secrets (#1698)
This commit is contained in:
@@ -49,7 +49,7 @@ namespace Bit.Billing.Controllers
|
||||
[HttpPost("ipn")]
|
||||
public async Task<IActionResult> PostIpn([FromBody] BitPayEventModel model, [FromQuery] string key)
|
||||
{
|
||||
if (key != _billingSettings.BitPayWebhookKey)
|
||||
if (!CoreHelpers.FixedTimeEquals(key, _billingSettings.BitPayWebhookKey))
|
||||
{
|
||||
return new BadRequestResult();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user