Yookassa Webhook Flaw Allowed Forging Payment Confirmations via Single Curl Request
A technical audit of a car rental booking service revealed that the Yookassa webhook endpoint accepted payment.succeeded events at face value, allowing forged payment confirmations with a single unauthenticated curl request.
Original vulnerable implementation
The handler in payment_service.py extracted the event type and gateway_payment_id directly from the incoming JSON payload. It performed only one check: whether the gateway_payment_id existed in the local database. If the event type matched payment.succeeded, the payment status was updated and the booking marked as paid. No signature validation, IP filtering, or secondary verification against the Yookassa API was performed.
Because the gateway_payment_id is returned to the client immediately after payment initiation, any user who created a booking could replay the identifier in a forged webhook and complete the transaction without paying.
Why signature checks were not already in place
Yookassa documentation describes an optional Webhook-Signature header using HMAC-SHA256, yet the integration had never configured a webhook_key. The team rejected IP-based allowlisting because traffic passed through reverse proxies, making reliable extraction of the client IP difficult without weakening the trust model. Instead, the fix relies on an authoritative reverse lookup.
Remediation implemented
The corrected handler now treats the incoming webhook solely as a notification trigger. It immediately calls the Yookassa Payments API using the shop ID and secret key to retrieve the current payment state. Status, amount, and currency are taken exclusively from the API response. Mismatches or API failures result in the webhook returning a 5xx status so that Yookassa will retry later. Final statuses are no longer overwritten by subsequent notifications.
A development mode that lacks API credentials retains the original trusting behavior, as no real payments occur in that environment.
Testing and scope of the patch
- test_forged_webhook_ignored_when_gateway_says_pending — forged succeeded event ignored when API reports pending
- test_webhook_amount_mismatch_ignored — status unchanged on amount discrepancy
- test_webhook_confirmed_success_marks_paid — correct transition when API confirms payment
- test_webhook_canceled_marks_failed — cancellation properly reflected
- test_webhook_final_status_not_rewritten — no extra API call for already-final payments
- test_webhook_unknown_payment_ignored — unknown IDs produce no side effects
The PR added 62 lines to the service and 205 lines of tests. Three further improvements—IP allowlisting, signature verification, and removal of double commits—were intentionally left for separate work to keep the security fix minimal and low-risk.
Related articles
Binance Warns Android Users of Chrome Vulnerability Allowing Theft of Saved Passwords
Binance has issued a security advisory alerting Android users to a vulnerability in older versions of Google Chrome that enables attackers to steal saved logins and passwords. The attack requires only that the victim visits a specially crafted webpage and does not involve installing malicious apps or downloading files. The flaw affects devices running Chrome versions below 146 or Android security updates released before August 5, 2025. Binance recommends updating both Chrome and the Android System WebView component through official channels, as well as applying the latest Android patches and changing saved credentials for financial and email accounts. No CVE identifier has been disclosed, and there is currently no public information on active exploitation or the number of affected users. The advisory follows a similar November warning from Binance regarding an iOS vulnerability that could expose cryptocurrency wallet data.
Critical JetBrains TeamCity Flaw Enables Unauthorized Build Agent Hijacking
JetBrains has released patches for a critical vulnerability in TeamCity On-Premises that allows an unauthenticated attacker to impersonate an authorized build agent. The flaw, tracked as CVE-2026-136858 with a CVSS score of 9.1, affects the authentication mechanism on the communication channel between the server and build agents. An attacker reaching the server over HTTP or HTTPS can displace a legitimate agent and receive assigned builds, thereby gaining access to credentials and secrets delivered during compilation. The issue also enables attackers to falsify build results and publish tampered packages that can compromise downstream consumers in the software supply chain. JetBrains credited researcher Jiawei Guo for the discovery reported on November 24 and stated no evidence of in-the-wild exploitation has been found. The company previously faced real-world exploitation of another critical TeamCity vulnerability, CVE-2026-63077, just four months earlier. Updates are available in versions 2026.1.7, 2026.2.3, and 2026.3, while a security patch plugin is offered for environments that cannot restart immediately.
Acronis Backup Products Vulnerable to Exploitation in Targeted Attacks
Acronis has disclosed a high-severity vulnerability in its backup products designed for web hosting environments. The flaw, tracked as CVE-2026-87887, affects the Linux versions of Acronis Backup plugin for cPanel & WHM and Acronis Backup extension for Plesk. It stems from improper authorization handling that could allow attackers to obtain sensitive information. The issue carries a CVSS v3.0 base score of 7.5 and has already been exploited in targeted attacks. Acronis released security advisory SEC-12645 on December 3, 2026, and urged immediate updates. Patched versions include Acronis Backup plugin for cPanel & WHM 1.9.3.1031 and Acronis Backup extension for Plesk 1.8.12-659. Users of version 1.9.4 are advised to downgrade to the fixed 1.9.3 branch until a permanent fix is available.
Critical Linux Kernel Vulnerability CVE-2026-139281 Enables Stateful Firewall Bypass for Nearly 21 Years
A critical flaw tracked as CVE-2026-139281 has been discovered in the Linux kernel, allowing remote attackers to bypass stateful firewall rules implemented via iptables and nftables. The vulnerability resides in the conntrack subsystem of Netfilter and stems from an integer overflow when processing fragmented IPv6 packets. It received a CVSS 3.1 score of 9.1 from Red Hat and requires no authentication or user interaction for exploitation. The bug was introduced in January 2006 with Linux 2.6.15 and remained present for almost 21 years until patches were released. Researcher Jérémie Jean disclosed technical details on 22 August 2026 after using OpenAI Codex based on GPT-5 during patch development. Fixes are available in multiple kernel versions including 5.10.275 through 7.4-rc1, with Red Hat Enterprise Linux 8 and AlmaLinux already updated. Debian 12 and 13 remain vulnerable as of 3 December, while Ubuntu continues assessment; disabling IPv6 is recommended as a workaround where patches cannot be applied.