当前位置:网站首页>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 ……
边栏推荐
- JS how to convert seconds into hours, minutes and seconds display
- Etcd database source code analysis - initialization overview
- What is MQ?
- LC weekly 300
- [microservice] Nacos cluster building and loading file configuration
- SQL performance optimization skills
- VB. Net GIF (making and disassembling - optimizing code, class library - 5)
- BUU-Crypto-[HDCTF2019]basic rsa
- 如何展开Collapse 的所有折叠面板
- Online shrimp music will be closed in January next year. Netizens call No
猜你喜欢

每周小结(*63):关于正能量

Gridview出现滚动条,组件冲突,如何解决

LM small programmable controller software (based on CoDeSys) note XXI: error 3703

检漏继电器JY82-2P

配置交叉编译工具链和环境变量

BUU-Crypto-Cipher

The data mark is a piece of fat meat, and it is not only China Manfu technology that focuses on this meat

(4) Canal multi instance use

BUU-Pwn-test_ your_ nc

Introduction To AMBA 简单理解
随机推荐
注释与注解
How to get the parent node of all nodes in El tree
卸载Google Drive 硬盘-必须退出程序才能卸载
509. 斐波那契数、爬楼梯所有路径、爬楼梯最小花费
(4) Canal multi instance use
Flask
SQL performance optimization skills
Steady! Huawei micro certification Huawei cloud computing service practice is stable!
19. Framebuffer application programming
VB.net 调用FFmpeg简单处理视频(类库——6)
[MySQL practice of massive data with high concurrency, high performance and high availability -8] - transaction isolation mechanism of InnoDB
input显示当前选择的图片
十二. golang其他
win10清除快速访问-不留下痕迹
Topological sorting and graphical display of critical path
Configure cross compilation tool chain and environment variables
gslb(global server load balance)技术的一点理解
ETCD数据库源码分析——初始化总览
1480. 一维数组的动态和
Online shrimp music will be closed in January next year. Netizens call No