The Road from Academic Research to OpenSSL Contributions
summary
Finds and reproduces a buffer‑overflow in an “official” SHA‑3 reference that maps to CVE-2022-37454, shows it allows 4GB-triggered infinite loops and arbitrary code execution in lab exploit tests, writes a CodeQL query to detect the same a+b overflow pattern, and discovers that pattern in HKDF code paths including OpenSSL; contributes a small safe rewrite — a one-line contribution accepted into OpenSSL — and documents that the HMAC Update-after-Final attack (issue #13210) is no longer exploitable since OpenSSL 3.2.0 and proposes a regression test.
AI-written summary · about
chapters (10)
- 0:00Introduction to research
- 1:02Hash functions basics
- 4:19Vulnerabilities in hash implementations
- 8:14Finding bugs in Apple Core Crypto
- 10:45SHA-3 implementation flaws
- 15:48Contributing to BoringSSL
- 17:34OpenSSL contributions
- 21:53HMAC API misuse issues
- 26:52OpenSSL 3.2.0 unintended fixes
- 30:50Conclusion and Q&A
