当前位置:网站首页>About network time protocol (NTP) mod-6 scanning vulnerability handling
About network time protocol (NTP) mod-6 scanning vulnerability handling
2022-07-18 16:49:00 【Qiang Junen】
One 、 Vulnerability description
A vulnerability scanning process was carried out on the intranet network equipment once, and the vulnerability was exposed , This vulnerability can be exploited remotely NTP Server response mode 6 Inquire about . Devices that respond to these queries may be used for NTP Enlarge the attack . An unauthenticated remote attacker may pass a well-designed pattern 6 Query exploits this vulnerability , Cause reflected denial of service .
Repair suggestions : Limit NTP Pattern 6 Inquire about .
Vulnerability level : intermediate
Two 、 Vulnerability verification and handling
2.1、 Vulnerability verification
Execute the following command , The representative with result output turns on mode 6 Inquire about , No output means it is closed mode 6 Inquire about .
ntpq -c rv ntp_ip // As shown below

The latter performs :
ntpq -pn // If the order is not followed ntp, This is a ntp Locally executed
ntpq -pn ntp_ip // Remote Authentication

2、 Vulnerability handling , Limit NTP mod-6 Inquire about
modify ntp Server profile :vi /etc/ntp.conf, Add the following
server ip_address
restrict -6 default nomodify notrap noquery
restrict :: default nomodify notrap noquery
restrict default nomodify notrap noquery
disable monitor
Configuration instructions :
restrict IP Address mask Subnet mask Parameters // among IP The address can also be default ,default It's all about IP.
The parameters are as follows :
ignore : Close all NTP Online services
nomodify: The client cannot change the time parameter of the server , But the client can use the server for network timing .
notrust : Unless the client is authenticated , Otherwise, the client source will be treated as untrusted subnet
noquery : Do not provide client time query : The client cannot use ntpq,ntpc Wait for the command ntp The server
notrap : Does not provide trap Remote login : Refused to provide pattern for matching hosts 6 Control message trap service . The trap service is ntpdq The subsystem that controls the message protocol , For remote event loggers .
nopeer : Used to prevent the host from trying to peer to the server , And allow fraudulent servers to control the clock
kod : Send... When access violation occurs KoD package .
After the modification is completed :systemctl restart ntpd
Local validation :ntpq -pn // The query is normal

Remote Authentication :ntpq -pn ntp_ip or ntpq -c rv ntp_ip
Sum up ,mod-6 And disable , You can apply for security re scanning .
边栏推荐
- UE4蓝图学习篇(六)--Branch、Switch、FilpFlop、Sequence
- INSET: Sentence Infilling with INter-SEntential Transformer
- @Conditional条件装配
- [bioinformatics] exosome miRNA growth training camp (14 days)
- [today's little go is going to throw away the garbage (2)]
- Redis基础课程讲义
- [bioinformation] protein interaction project ideas Growth Camp (14 days)
- Le quotidien économique loue hongji, l'entreprise leader de RPA, pour aider à la transformation numérique des institutions financières
- The principle and design principle of index
- C language bit field
猜你喜欢
随机推荐
SNMP(简单网络管理协议)
Cv2.resize pit
The professional standard of the new profession "database operation administrator" was launched and developed
Halcon distance calculation
US pressure surges tiktok changes global safety director
[Gu Yue 21 lecture] ROS introduction series (3) -- programming implementation of client and server + programming implementation of custom service data
C language bit field
js自写一个适用于object对象的forEach方法
【Xilinx AX7103 MicroBalze学习笔记7】MicroBlaze AXI4 接口之 DDR 读写实验
kotlin类和接口
INSET: Sentence Infilling with INter-SEntential Transformer
【node+ts】搭建node+typescript项目
大模型训练难于上青天?效率超群、易用的“李白”模型库来了
Aardio - [library] graphical paging component library
Postgresql-14.4-源码阅读02-ReadBuffer_common-后续再更新此篇-看的头大
The second week of summer vacation
SFF1602-MHCHXM(海矽美)二极管SFF1602
AC management
网络丢包,网络延迟?这款神器帮你搞定所有!
【刷题记录】12. 整数转罗马数字









