Stack Buffer Overflow via `gmp_sprintf`in `BLSSignature` and `BLSSigShare`
A stack buffer overflow was found in libBLS. An attacker with local access and the ability to modify libBLS code could potentially exploit it, though the risk was very low.
- Triaged in 20 days
- Fixed in 20 days
- Paid in 20 days
- Disclosed after 3 months
Summary by the program
A security researcher identified a stack buffer overflow vulnerability in libBLS. While the risk was very low and nothing directly exploitable through the Network or Adjacent Network (the vulnerability requires local access to a machine and subsequent code changes to libBLS), the security team went ahead and made a quick change to mitigate this behavior. Because a change was made as a result of this report, the security team thanks @voiddy and awarded a bounty.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
The report states the risk was very low and nothing was directly exploitable over the network, because exploitation required local access and code changes to libBLS.
What the attacker needed
Local access to a machine; ability to change libBLS code
The fix
The security team made a quick change to mitigate the behaviour, though the text does not describe the exact fix.
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 report has not been written yet. The Original tab links to the source.
A stack buffer overflow happens when a program writes more data into a fixed-size memory area than it can hold, which can corrupt nearby data. Here the problem was in a library called libBLS, and the report says it would take local access and code changes to actually exploit, so the practical risk was very low.
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.