当前位置:网站首页>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
边栏推荐
- CANoe CAPL文件操作目录合集
- CAPL script pair High level operation of INI configuration file
- What you have to know about network IO model
- 美新泽西州州长签署七项提高枪支安全的法案
- MapReduce instance (IX): reduce end join
- Hero League rotation chart manual rotation
- CAPL script printing functions write, writeex, writelineex, writetolog, writetologex, writedbglevel do you really know which one to use under what circumstances?
- Random notes
- C杂讲 双向循环链表
- There are software load balancing and hardware load balancing. Which one to choose?
猜你喜欢
A wave of open source notebooks is coming
单片机实现模块化编程:思维+实例+系统教程(实用程度令人发指)
一大波開源小抄來襲
Control the operation of the test module through the panel in canoe (primary)
MapReduce instance (VI): inverted index
MapReduce instance (VII): single table join
Counter attack of noodles: redis asked 52 questions in a series, with detailed pictures and pictures. Now the interview is stable
CANoe不能自动识别串口号?那就封装个DLL让它必须行
机械工程师和电气工程师方向哪个前景比较好?
C杂讲 动态链表操作 再讲
随机推荐
Bugku web guide
[CV] target detection: derivation of common terms and map evaluation indicators
CANoe不能自动识别串口号?那就封装个DLL让它必须行
大学C语言入门到底怎么学才可以走捷径
Leetcode:608 tree node
Counter attack of noodles: redis asked 52 questions in a series, with detailed pictures and pictures. Now the interview is stable
PR 2021 quick start tutorial, first understanding the Premiere Pro working interface
美新泽西州州长签署七项提高枪支安全的法案
51单片机进修的一些感悟
Single chip microcomputer realizes modular programming: Thinking + example + system tutorial (the degree of practicality is appalling)
MapReduce instance (IV): natural sorting
CANoe CAPL文件操作目录合集
Why is 51+ assembly in college SCM class? Why not come directly to STM32
MapReduce instance (V): secondary sorting
Embedded development is much more difficult than MCU? Talk about SCM and embedded development and design experience
What are the models of data modeling
Contest3145 - the 37th game of 2021 freshman individual training match_ B: Password
oracle sys_ Context() function
四川云教和双师模式
MapReduce instance (VI): inverted index