HexBrain

Internet Bug Bounty · Report #221789

OOB read in TS_OBJ_print_bio() (CVE-2016-2180)

Validstatus
lowseverity
5upvotes
25 May 2017disclosed

Summary

The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is the total length the OID text representation would use and not the amount of data written. This will result in OOB reads when large OIDs are presented.

OpenSSL 1.0.2 users should upgrade to 1.0.2i OpenSSL 1.0.1 users should upgrade to 1.0.1u

This issue was reported to OpenSSL on 21st July 2016 by Shi Lei (Gear Team, Qihoo 360 Inc.). The fix was developed by Stephen Henson of the OpenSSL development team.

How it was found

The function TS_OBJ_print_bio() misuses OBJ_obj2txt(): the return value is the total length the OID text representation would use and not the amount of data written. This will result in OOB reads when large OIDs are presented.

refer: https://www.openssl.org/news/secadv/20160922.txt

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original