当前位置:网站首页>[attack and defense world web] difficulty Samsung 9 points introductory question (Part 2): shrink, lottery
[attack and defense world web] difficulty Samsung 9 points introductory question (Part 2): shrink, lottery
2022-07-23 15:52:00 【Black zone (rise)】
Catalog
5、 ... and 、shrine
How to solve the problem :
1、php Source code understanding ,SSTI( Server side ) Template Injection
The process :
Ctrl+U
View source code
Used 2 A module flask and os modular , See whether the module can be injected
app.route Passed two paths
Filter () and 'config','self' Was blacklisted
visit shrine route
/shrine/{ {1+3}}
Carried out transportation , There is SSTI( Server side ) Template Injection
And because of filtering () and 'config','self' Was blacklisted
1、payload:
/shrine/{ {url_for.__globals__['current_app'].config}}
2、payload:
/shrine/{ {get_flashed_messages.__globals__['current_app'].config['FLAG']}}
6、 ... and 、lottery
How to solve the problem :
1、 Logical loopholes , Weak equality
The process :
Swim once
Then register
![]()
See here flag
Click on buy after
Grab the bag
appear api.php Of post The ginseng
api.php Become the focus
see robots.txt Found out
Indicate that it cannot pass git Get the source code
Find the attachment to the title
It's the source code
Automatic audit
( There are no loopholes )
Check the source code yourself
You can find
1、request yes json Format (json Support Boolean data )
2、7 Comparison of digits , One by one
3、 And weak equality is used (TRUE,1,"1" They are all equal , It's just different types )
structure payload
[true,true,true,true,true,true,true]
Change to
{"action":"buy","numbers":[true,true,true,true,true,true,true]}
Use bp Grab the bag
Click again buy
边栏推荐
- Part II how to design an RBAC authority system
- 软件测试周刊(第81期):能够对抗消极的不是积极,而是专注;能够对抗焦虑的不是安慰,而是具体。
- 第五篇 Druid数据源介绍
- [pyGame practice] playing poker? Win or lose? This card game makes me forget to eat and sleep.
- [7.16] code source - [array division] [disassembly] [select 2] [maximum common divisor]
- Time series data in industrial Internet of things
- Learning about patents
- Find a specific number in an ordered array (binary search or half search)
- UmiJs - qiankun主子应用之间,数据的传递
- C语言经典例题-将输入的两位数转成英文
猜你喜欢
随机推荐
老照片上色——DeOldify快速上手
适用于顺序磁盘访问的1分钟法则
7.13web safety operation
深入理解L1、L2正则化
浅谈‘过早优化’
What is the real HTAP? (2) Challenge article
【攻防世界WEB】难度三星9分入门题(中):ics-05、easytornado
What is the difference between server hosting and virtual host
备份内容哈哈哈
地图附近名片流量主小程序开发
Suffix expression (summer vacation daily question 4)
ten thousand and one hundred
STL map operation
云服务器ECS远程监控
Modify SSH command line[ [email protected] ]Color
任务切换的细节
C # close current computer command
[pyGame actual combat] aircraft shooting masterpiece: fierce battle in the universe is imminent... This super classic shooting game should also be taken out and restarted~
第三篇 RBAC权限管理 数据库设计详解
Deep understanding of L1 and L2 regularization































