提交 #94974: imageinfo buffer overflow信息

标题imageinfo buffer overflow
描述imageinfo project has buffer overflow in the imageinfo.hpp file, attackers can crash software by constructing malicious files.In imageinfo.hpp 497 lines to 509 lines, this loop function didn't safety check offset value, Eventually overflow. The poc url is: https://github.com/10cksYiqiyinHangzhouTechnology/imageinfo_poc The project issue is: https://github.com/xiaozhuai/imageinfo/issues/1#issue-1600041028 Vulnerability function: ```cpp off_t offset = 0; // typedef long _off_t; off_t offset = 0; off_t end = metaLength; while (offset < end) { uint32_t boxSize = buffer.readU32BE(offset); // uint32_t readU32BE; if (buffer.cmpAnyOf(offset + 4, 4, {"iprp", "ipco"})) { end = offset + boxSize; offset += 8; } else if (buffer.cmp(offset + 4, 4, "ispe")) { width = buffer.readU32BE(offset + 12); height = buffer.readU32BE(offset + 16); return true; } else { offset += boxSize; } } ```
来源⚠️ https://github.com/10cksYiqiyinHangzhouTechnology/imageinfo_poc
用户
 10cksYiqiyinHangzhouTechnology (UID 41666)
提交2023-02-26 13時43分 (4 年前)
管理2023-03-06 08時17分 (8 days later)
状态已接受
VulDB条目222362 [xiaozhuai imageinfo 直到 3.0.3 imageinfo.hpp 内存损坏]
积分20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!