Privilege Escalation for mysql "root" in linux

Source: Internet
Author: User

In a linux system, mysql Elevation of Privilege when logging on with the root permission
In the linux version of mysql5.x, there is a function that can help us do a lot of tedious things, this function 4. There seems to be none below x. I haven't found it and haven't checked the function manual. I just wrote something in my own experience. 4. Let's take a look at the function manual tomorrow for another experiment.
Mysql 5. x introduces a system function. This function can execute system commands. when mysql logs in as root, it can be used to execute commands, of course, within the permitted range.
Privilege Escalation starts as follows:
Lab environment:
A: 192.168.211.128 (mysql version: 5.0.77)
B: 192.168.211.131
Experiment process:
On Machine B, connect to the database of machine A through the root user (this must be distinguished here, this root user is from mysql, not from linux ).

 
Now that you have connected to the database of host A, you can call the system function.
 

 

Well, the idea is here. Let's use the rest of them.

Related Article

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.