CVE-2004-0597
libpng < 1.2.5 - Remote Code Execution via Malformed PNG Image
Title source: llmExploitation Summary
EIP tracks 3 public exploits for CVE-2004-0597. PoCs published by ATmaCA, anonymous, infamous41md.
AI-analyzed exploit summary This exploit generates a malicious PNG file targeting a buffer overflow in MSN Messenger (CVE-2004-0597). It embeds a download-and-execute shellcode to fetch and run arbitrary code from a specified URL.
Description
Multiple buffer overflows in libpng 1.2.5 and earlier, as used in multiple products, allow remote attackers to execute arbitrary code via malformed PNG images in which (1) the png_handle_tRNS function does not properly validate the length of transparency chunk (tRNS) data, or the (2) png_handle_sBIT or (3) png_handle_hIST functions do not perform sufficient bounds checking.
Exploits (3)
This exploit generates a malicious PNG file targeting a buffer overflow in MSN Messenger (CVE-2004-0597). It embeds a download-and-execute shellcode to fetch and run arbitrary code from a specified URL.
This exploit demonstrates a denial-of-service (DoS) vulnerability in libpng by attempting to read a malformed PNG file, which can cause the application to crash. The code uses the libpng library to parse a PNG file, and if the file is malformed, it triggers an error condition that leads to a crash.
This exploit targets a buffer overflow vulnerability in libpng 1.2.5 by crafting a malicious PNG file with a tRNS chunk containing shellcode. The exploit bypasses a length check by omitting the PLTE chunk, leading to arbitrary code execution when the file is processed.