Static Taint Analysis Using Binary Ninja: A Case Study Of MySQL Cluster Vulnerabilities
The post describes a static taint-analysis method built on Binary Ninja to find memory-safety bugs in MySQL NDB Cluster, where untrusted signal data reaches array indexes and memory operations without bounds checks. It is a research write-up rather than a single disclosed bug report, and it claims the approach surfaced out-of-bounds reads and writes in signal handlers.
Published on zerodayinitiative.com
Taint analysis is an effective technique for finding vulnerabilities, even in large codebases. My colleague, Lucas Leong, recently demonstrated how Clang Static Analyzer and CodeQL can be used to model and find vulnerabilities in MySQL NDB Cluster using taint analysis.
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
Root cause
Likely, message handlers in the cluster daemon used values taken from incoming signals as array indexes and memory offsets without validating them against bounds.
Impact
An attacker who can send crafted signals to the data node could trigger out-of-bounds reads and writes, which may crash the node or potentially lead to code execution.
What the attacker needed
Ability to send signals to the data node
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.
Programs often take input from outside and use it to pick a position in a list or a block of memory. If nobody checks that the position is inside the list, the program can read or write memory it should not touch, which can crash it or let an attacker run their own code. This post builds a tool that follows such untrusted input through the program's code to spot places where the check is missing.
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.