Exploiting Intel’s Management Engine
The Intel Management Engine (ME) firmware reads a user-modifiable configuration file into a fixed-size buffer without checking its length, causing a buffer overflow. By overwriting thread-local storage and a shared-memory descriptor, an attacker can bypass the stack guard and execute unsigned code on the ME, gaining full control of the machine.
kakaroto.homelinux.net
Published on kakaroto.homelinux.net
Let me tell you a story…. (I think I’ll start all my blog posts with that considering how long they always end up being)
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
What the attacker needed
Local access to modify ME configuration; Intel tools to set Trace Hub Configuration; knowledge of ME internals
How it was found
- Generate a malicious Trace Hub configuration file using the provided script.
- Configure the ME using Intel's tools and set the generated file in the Trace Hub Configuration field.
- The ME process reads the oversized file, overflowing the stack buffer.
- Overwrite the thread-local storage and syslib context to point to a custom shared-memory block.
- Use the shared-memory block to control the memcpy return address and execute a ROP chain.
- Enable RED unlock via the DfX Aggregator register to gain full JTAG control over the ME.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The Intel Management Engine is a small separate computer inside Intel chips that runs even when the main computer is off. A file that controls part of its configuration can be changed by the user, and the program that reads it does not check the file size, so a too-large file spills over into memory. The author shows how to use that spill to run custom code on the ME, which then lets you take over the whole machine.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.