当前位置:网站首页>HMS v1.0 appointment. PHP editid parameter SQL injection vulnerability (cve-2022-25491)
HMS v1.0 appointment. PHP editid parameter SQL injection vulnerability (cve-2022-25491)
2022-07-04 05:43:00 【sec0nd_】
List of articles
Preface
During the summer vacation, I have nothing to do to shoot a target
It's using vulfocus Online platform , I used it for the first time , I didn't expect that only 15min, and , There is no wp, This recurrence is not complete , Let's talk about the process
Vulnerability description
Hospital management system (HMS) It is a system based on computer or network , It helps to manage the operation of hospitals or any medical institutions . The system or software will help make the whole function paperless . It will be about patients 、 Doctor 、 staff 、 All the information of hospital management details is integrated into one software . It consists of various professionals in the hospital .
HMS v1.0 Be found to contain through adminlogin.php、Patientlogin.php Of SQL Inject holes . admin/123456789
The recurrence process
Train of thought
I thought the description admin and 123456789 It's the end result , You need to inject what you get .
Just go straight up sqlmap 了
On the login screen There are two parameters
Enter one randomly and grab it
the reason being that post request , You need to export the data package , selected loginid Parameters
You can see that there are four databases
selected hms The library queries the tables
Because time is too slow , But the time for a target aircraft environment is only 15min
Here we see user surface , Directly select user Watch
Inquire about user Column in table
Here you can see that there are three fields
Read The values of these three fields
Come here , I found the password is wrong , No 123456789
This idea has been interrupted here
Train of thought two
This idea refers to https://www.cnblogs.com/HOPEAMOR/p/16251404.html
the reason being that appointment.php In the document editid Parameter vulnerability , So you need to log in
find appointment page
send out payload
/appointment.php?editid=-1%27union%20select%201,2,3,4,5,6,7,8,9,user()%23# View current connected users
/appointment.php?editid=-1%27union%20select%201,2,3,4,5,6,7,8,9,database()%23# View the currently connected database
/appointment.php?editid=-1%27union%20select%201,2,3,4,5,6,7,8,9,version()%23# View the current database version
/appointment.php?editid=-1%27union%20select%201,2,3,4,5,6,7,8,9,(select%20group_concat(table_name)%20from%20information_schema.tables%20where%20table_schema=database())%23# Query all tables
Finally, time-based injection ,emm I didn't understand this , No response , I don't know which table to read
Because I want to watch a play at the weekend
This idea is also temporarily interrupted ……
边栏推荐
- Wechat applet +php realizes authorized login
- Kubernets first meeting
- Descriptive analysis of data distribution characteristics (data exploration)
- Tutle clock improved version
- 光模塊字母含義及參數簡稱大全
- Leetcode 184 Employees with the highest wages in the Department (July 3, 2022)
- LM small programmable controller software (based on CoDeSys) note 22: error 4268/4052
- What is MQ?
- The end of the Internet is rural revitalization
- Zzulioj:1201: mode problem
猜你喜欢
Evolution of system architecture: differences and connections between SOA and microservice architecture
【QT】制作MyComboBox点击事件
(4) Canal multi instance use
【雕爷学编程】Arduino动手做(105)---压电陶瓷振动模块
Integer type of C language
冲击继电器JC-7/11/DC110V
Letter meaning and parameter abbreviation of optical module Daquan
BUU-Crypto-[HDCTF2019]basic rsa
检漏继电器JY82-2P
光模块字母含义及参数简称大全
随机推荐
LM小型可编程控制器软件(基于CoDeSys)笔记二十二:错误4268/4052
Wechat applet +php realizes authorized login
c语言经典指针和数组笔试题解析
VB.net 调用FFmpeg简单处理视频(类库——6)
如何判断数组中是否含有某个元素
检漏继电器JY82-2P
Nodejs learning document
Supplement the JS of a video website to decrypt the video
LabVIEW错误对话框的出现
Letter meaning and parameter abbreviation of optical module Daquan
Zzulioj:1201: mode problem
补某视频网站的js,进行视频解密
Write a complete answer applet (including single choice questions, judgment questions and multiple topics) (III) single choice questions, judgment questions, and the first question display
Character types of C language
1480. Dynamic sum of one-dimensional array
体验碎周报第 102 期(2022.7.4)
Graduation design of small programs -- small programs of food and recipes
接地继电器DD-1/60
19. Framebuffer application programming
Canoe panel learning video