Facebook Pixel From Buffer Overflows to Control Flow Attacks | Circuit Cellar - education - Lees dit verhaal op Magzter.com
Ga onbeperkt met Magzter GOLD

Ga onbeperkt met Magzter GOLD

Krijg onbeperkte toegang tot meer dan 9000 tijdschriften, kranten en Premium-verhalen voor slechts

$149.99
 
$74.99/Jaar

Poging GOUD - Vrij

From Buffer Overflows to Control Flow Attacks

Circuit Cellar

|

March 2026

This article extends the January 2026 article by showing a buffer overflow attack that changes a return value. I also discuss the use of the GCC stack protection feature, and demonstrate that it's not always a bulletproof protection method, even if it is better than doing nothing.

- By Colin O'Flynn

From Buffer Overflows to Control Flow Attacks

In my previous article, I demonstrated how a simple buffer overflow attack could be used to bypass a password check. The attack in my Circuit Cellar #426 article worked because you were able to overwrite a “secret” password, meaning you had control over what the password comparison checked against.

But when discussing buffer overflows, the more common attack would just be to overwrite the stack itself. In fact, most compilers even have an option to enable a “stack protector” specifically to prevent this type of attack.

The previous article introduced the setup for a buffer overflow, and in this article I’m going to extend the previous work to show you how that stack protector works. This is a feature you can turn on for your own systems, but I wanted to specifically show you why they aren’t a perfect shield that will detect all buffer overflows. In fact it won’t even detect the buffer overflow from my previous article!

I specifically wanted to introduce this attack to demonstrate that embedded systems often have more attack vectors to consider than “normal” software. Compiling code for a Linux or Windows host can be fairly consistent, but embedded systems have more variability.

In this article I’ll also show you how a buffer overflow can overwrite the stack, and how you can test this yourself using low-cost hardware. This specific example is something I challenged my graduate student Brian Peters to experiment with—in fact he made an even more complex attack, which I’ll discuss at the end of this article, but it will show you what is possible beyond what you might think of as a normal buffer overflow attack.

HARDWARE SETUP

MEER VERHALEN VAN Circuit Cellar

Circuit Cellar

Circuit Cellar

IDES Converge Toward VS Code

Your Next IDE Might Look Very Familiar

time to read

12 mins

April 2026

Circuit Cellar

Circuit Cellar

New KYOCERA AVX Capacitors for Optical Communications

KYOCERA AVX, a leading global manufacturer of advanced electronic components engineered to accelerate technological innovation and build a better future, has expanded its selection of 550/560 Series ultra-broadband capacitors to better satisfy surging cross-market demand for high-speed, high-bandwidth optical communication systems.

time to read

2 mins

April 2026

Circuit Cellar

Circuit Cellar

Wireless Convergence Reshaping Autonomous Transportation

The future of transportation will not be defined by a single technology milestone.

time to read

4 mins

April 2026

Circuit Cellar

Circuit Cellar

STMicroelectronics' New STM32 Series Redefines Entry-Level Microcontroller Performance and Value for Smart Devices Everywhere

STMicroelectronics (ST), a global semiconductor leader serving customers across the spectrum of electronics applications, has announced a new generation of entry-level microcontrollers (MCUs) to boost the performance of billions of tiny smart devices throughout factories, homes, cities, and infrastructures while meeting cost, size, and power limitations.

time to read

1 min

April 2026

Circuit Cellar

Circuit Cellar

Datasheet: Haptic Components Things That Go Buzz in the App

Haptic Devices Bring Physical Feedback to the Human Interface

time to read

7 mins

April 2026

Circuit Cellar

Circuit Cellar

Software-Defined Systems

Reshaping the Future of Modern Cars

time to read

7 mins

April 2026

Circuit Cellar

Circuit Cellar

Vishay Intertechnology Phototransistor Optocouplers Deliver Accuracy and Energy Efficiency for Industrial Applications

Vishay Intertechnology, Inc. introduced a new series of phototransistor optocouplers that combine a high and linear current transfer ratio (CTR) over temperature with a low forward current of 0.5mA.

time to read

1 mins

April 2026

Circuit Cellar

Circuit Cellar

B MCU Real-Time Tracing

How to Trace MCU Code in (Almost) Real Time

time to read

13 mins

April 2026

Circuit Cellar

Circuit Cellar

Getting Started with Zephyr RTOS

Sometimes, too much can be just enough. In this article, Jacob shows why learning an RTOS that's more than you need can be just what you need for your growing skillset.

time to read

8 mins

April 2026

Circuit Cellar

Circuit Cellar

A Tribute to Robert Tinney

A Captivating Artist in the Early Days of Circuit Cellar

time to read

3 mins

April 2026

Listen

Translate

Share

-
+

Change font size