当前位置:网站首页>Mexican SQL manual injection vulnerability test (mongodb database) problem solution
Mexican SQL manual injection vulnerability test (mongodb database) problem solution
2022-07-06 09:55:00 【zr1213159840】
The environment of the topic is Nginx+PHP+MongoDB. And the following code is given
In terms of the investigation knowledge points of the topic , That's it MD5 value .
First, let's open the link , Discovery is the user login interface ( If not, please wait a moment ), Then as usual , Click on the notice , Find out id Information about
Let's read the code , stay query This part , hold id After inserting , Directly returned the queried data.
User entered id The value of is directly inserted into the database without any escape , In this place, we can id The value of is
1'});
In this way, the query statement becomes
db.notice.find({
'id':'1'})'})
You can see that the back part is filtered , Then if it is modified to the following part
id=1'}); return ({title:tojson(db.Authority_confidential.find()[1]),2: 1
The assembled statement is
db.notice.find({
'id':'1'}); return ({
title:tojson(db.Authority_confidential.find()[1]),2: 1'})
find The function finds all the data ,tojson Yes convert to json Format , So we can find out all Authority_confidential Data in the library , The effect is as follows
Take a look md5 value , Then log in , Get key
边栏推荐
- Une grande vague d'attaques à la source ouverte
- Upload vulnerability
- Regular expressions are actually very simple
- MapReduce instance (VIII): Map end join
- MapReduce instance (V): secondary sorting
- 【深度学习】语义分割:论文阅读:(2021-12)Mask2Former
- 机械工程师和电气工程师方向哪个前景比较好?
- PR 2021 quick start tutorial, first understanding the Premiere Pro working interface
- Several silly built-in functions about relative path / absolute path operation in CAPL script
- Compilation of libwebsocket
猜你喜欢
【深度學習】語義分割-源代碼匯總
Summary of May training - from a Guang
C杂讲 浅拷贝 与 深拷贝
DCDC power ripple test
Release of the sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
CAPL script pair High level operation of INI configuration file
CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
大学C语言入门到底怎么学才可以走捷径
Some thoughts on the study of 51 single chip microcomputer
C#/. Net phase VI 01C Foundation_ 01: running environment, process of creating new C program, strict case sensitivity, meaning of class library
随机推荐
【深度学习】语义分割-源代码汇总
[deep learning] semantic segmentation: paper reading: (2021-12) mask2former
I2C summary (single host and multi host)
C杂讲 浅拷贝 与 深拷贝
四川云教和双师模式
Hugo blog graphical writing tool -- QT practice
[flask] crud addition and query operation of data
【深度学习】语义分割:论文阅读:(2021-12)Mask2Former
Vs All comments and uncomments
068. Find the insertion position -- binary search
Hero League rotation chart manual rotation
嵌入式开发比单片机要难很多?谈谈单片机和嵌入式开发设计经历
Oom happened. Do you know the reason and how to solve it?
Contrôle de l'exécution du module d'essai par panneau dans Canoe (primaire)
June brush question 01 - array
vscode 常用的指令
Elk project monitoring platform deployment + deployment of detailed use (II)
发生OOM了,你知道是什么原因吗,又该怎么解决呢?
cmooc互联网+教育
【深度學習】語義分割-源代碼匯總