What Every Programmer Should Know About Stack Buffer Overflows on Windows
The article offers a hands-on guide to understanding stack buffer overflow attacks on Windows. While many similar analyses exist for Unix-like systems, this piece focuses on Windows specifics using the unsafe scanf function as the starting point.
Everyone knows that calling scanf without a width specifier is dangerous. The function reads characters until it encounters whitespace and stores them in the user-supplied buffer, appending a null terminator. When input exceeds the allocated buffer size, scanf writes beyond the intended memory region, overwriting adjacent data such as structure fields or, more critically, the function return address.
Memory Model and Stack Layout
Memory is presented as a contiguous array of bytes divided into segments: code, data, heap, and stack. The stack follows LIFO semantics and stores local variables, function arguments, and return addresses. When a function is called, a new stack frame is created containing the return address placed by the call instruction.
The RIP register holds the address of the next instruction to execute. The ret instruction pops the saved return address from the stack and loads it into RIP, resuming execution after the call site. Because the return address sits immediately adjacent to local buffers in the same stack frame, an overflow can directly corrupt it.
Practical Exploitation with WinDbg
The tutorial walks through setting up WinDbg, placing a breakpoint at main, and observing memory contents with commands such as x buff and db buff. Supplying carefully crafted input first overwrites the buffer, then adjacent stack data, and finally the return address itself.
When execution continues after the return address is corrupted, Windows raises a Fail Fast Exception. This occurs because MSVC places a stack canary immediately after vulnerable buffers. The compiler inserts a call to __security_check_cookie before the function returns; any mismatch triggers termination before control flow can be redirected.
The article concludes by noting that bypassing the canary requires restoring its original value in the payload, while avoiding null bytes that would terminate scanf input prematurely. These constraints illustrate both the power and the limitations of classic stack overflow techniques on modern Windows systems.
Related articles
Yandex SmartCaptcha Fully Bypassed by Automated Audio Challenge Solver
A detailed reverse engineering report demonstrates that Yandex SmartCaptcha can be solved autonomously without human intervention. The researcher built a pipeline combining Vosk, Whisper large-v3-turbo and a spectral ensemble that passes the audio challenge on three consecutive attempts. The analysis reveals that the widget actually runs across three separate iframes, with all /check requests originating from a hidden backend iframe containing the 551 KB obfuscated PGreed fingerprinting library. Proof-of-Work, canvas fingerprints, mouse telemetry and 104 encrypted device attributes are collected, yet the audio branch proves weaker than intended. The static intro track and limited four-digit vocabulary allow the multi-engine consensus to outperform human listeners on the same distorted audio samples.
Linux 5.10 LTS and 5.15 LTS Reach End of Life with Thousands of Unpatched CVEs
Greg Kroah-Hartman has officially moved the Linux 5.10 LTS and Linux 5.15 LTS kernel branches to end-of-life status in early December 2026. The kernels, which received long-term support since 2020 and 2021 respectively, will no longer receive security updates after five to six years of maintenance. Hundreds of unpatched vulnerabilities remain in the final releases, with 2366 CVEs listed for version 5.10.276 and 2264 CVEs for 5.15.227. Kroah-Hartman strongly recommends migrating to currently supported LTS branches such as Linux 6.1 and Linux 6.6. The next long-term kernel is expected to be Linux 7.3 rather than the later Linux 7.4 release.
Critical OS Command Injection Flaw in Movable Type Already Under Active Exploitation
Six Apart has disclosed a severe vulnerability in its Movable Type content management system that allows remote attackers to execute arbitrary operating system commands. The flaw, tracked as CVE-2026-125615, resides in the installation wizard component mt-wizard.cgi and carries a CVSS v4.0 base score of 9.3 along with a CVSS v3.0 score of 9.8. Security updates addressing the issue were released on December 1, 2026, covering multiple versions of both Movable Type and Movable Type Premium. The vendor has already observed real-world attacks exploiting the vulnerability. All cloud-hosted environments have been automatically updated, while on-premises users are urged to apply the patches immediately. JVN has issued an urgent advisory highlighting the need for rapid remediation.
Dark Web Sellers Offer One-Click Google Account Session Hijacking Exploits
Cybercriminals on underground forums are advertising a one-click method to hijack Google accounts by tricking victims into clicking a link hosted on a legitimate Google domain. The attack targets active sessions rather than passwords, allowing immediate access to all linked Google services once the session is stolen. According to BI.ZONE research covering January to October, such authentication bypass offers represent 7% of zero-day exploit listings. Microsoft products appeared in 32% of all ads, followed by WordPress at 15%, while Fortinet, Linux, and Google services each accounted for 5-7%. Researchers identified potential matches for 70% of the advertised flaws, with 77% of those lacking any public disclosure by November. Nearly half the listings originated in the first half of the year, meaning vendors had more than four months to address issues before public awareness. One advertised malware specifically blocks Windows antivirus updates by exploiting an unpatched flaw in the update mechanism itself.