The process of Ubuntu16.04 local right-of-access vulnerability re-testing

Source: Internet
Author: User

I. Overview of Vulnerabilities

In Ubuntu 16.04, there is a right to exploit if the unprivileged_bpf_disable permission is not turned off.
How to view:
1,cat/proc/version Viewing the system version

2, see if there is a unprivileged_bpf_disable file, if the file exists, to see if the file content is 1, if not 1, there is a vulnerability

Second, the vulnerability verification

1. Download POC file upstream44.c
: Http://cyseclabs.com/exploits/up ... mp;isappinstalled=0

2. Compile the executable file and give the executable permission
Gcc-o Upstream upstream44.c
chmod a+x Upstream

3, in the normal user interface, the execution of the upstream program, will directly become the root user

III. Defence programmes

1, the current defense mode is to enable the unprivileged_bpf_disable feature
Echo 1 >/proc/sys/kernel/unprivileged_bpf_disabled

2, when the above features are enabled, execute upstream again to find the right to fail

The process of Ubuntu16.04 local right-of-access vulnerability re-testing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.