当前位置:网站首页>Tianmu MVC audit II
Tianmu MVC audit II
2022-07-06 09:51:00 【XRSec】
This article is edited by Er Nong Xi Zhu
Audit controller
After auditing the entry file and figuring out the routing rules in the previous article , We begin to formally audit the controller .
Home Catalog
from app/home/index.php Start audit , There is nothing to say ahead , But notice here , Although it is judgment, it is not PC Execute when logging in , But we can see the query method it calls , I feel very familiar with , More like think The query method defined in , We recall the last audit , The filtering mechanism of audit , Let's search the whole picture where(, Check one by one , See if there is where The condition is two parameters , perhaps int type .
backstage SQL Inject
Everything comes to him who waits , Here we are , Find out $sid Not wrapped in single quotation marks , And has not been cast int type . The catalogue is admin\controller\special.php, We try to reproduce . Good one SQL Inject holes .
The front desk SQL Inject
Just when I thought there was no front desk SQL At the time of Injection , All of a sudden , I found a location . Suddenly remembered a sentence : edge , Too wonderful for words .
Look for . have a look $sid How did it get in , Is it controllable
Search this globally get_category_list(), Found in home/controller/special.php in ,category() In this method , adopt GET Incoming sid This value , Although this method is right $sid Protected by single quotation marks , But in calling get_category_list() Time is running naked , well , Repeat it
Completely ok. The audit is completed when the front desk arrives here
The front desk XSS
stay home\controller\articles.php,articles Method this position htmlspecialchars_decode, This function decodes the materialized symbols , It suddenly caught my attention , Because we have audited , It will change the passed in value html Materialized coding , And then put it in the database . In this position, it decodes the data again , Vegetable chicken intuition tells me , There must be something wrong , Let's look for it $data Where does this variable come from
In this 32 OK, we can see that it is queried from this database .
Let's find out how to write , There is too much content here , Use the debug Look at the query statement :"SELECT * FROMtemmoku_articleASAINNER JOINtemmoku_contentASBON A.aid =B.aid WHERE A.aid=3 ORDER BY A.aid DESC LIMIT 1" In retrospect, I made a very uncomfortable mistake , I'll search jab.'content, No search for , Doubt life ing, however , I remembered later , Search for jab."content To position , Uncomfortable .
ad locum ,admin\public_class\article.php in , Find write jab.content database . Keep going back
Find out user\controller\articles.php Call occurs , Look up ,add Method .
Register an account and open the permission to send articles .
Storage type XSS It's a success
边栏推荐
- Learning SCM is of great help to society
- Summary of May training - from a Guang
- Research and implementation of hospital management inpatient system based on b/s (attached: source code paper SQL file)
- CAPL 脚本打印函数 write ,writeEx ,writeLineEx ,writeToLog ,writeToLogEx ,writeDbgLevel 你真的分的清楚什么情况下用哪个吗?
- Mapreduce实例(七):单表join
- Solve the problem of too many small files
- 通过bat脚本配置系统环境变量
- 五月刷题03——排序
- Regular expressions are actually very simple
- CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
猜你喜欢

Nc17 longest palindrome substring

PR 2021 quick start tutorial, first understanding the Premiere Pro working interface

Release of the sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]

小白带你重游Spark生态圈!

嵌入式开发中的防御性C语言编程

Design and implementation of online shopping system based on Web (attached: source code paper SQL file)

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

Redis connection redis service command

Take you back to spark ecosystem!

Use of activiti7 workflow
随机推荐
Mapreduce实例(四):自然排序
竞赛vscode配置指南
Several ways of MySQL database optimization (pen interview must ask)
June brush question 02 - string
Design and implementation of film and television creation forum based on b/s (attached: source code paper SQL file project deployment tutorial)
[Yu Yue education] Wuhan University of science and technology securities investment reference
【深度学习】语义分割:论文阅读:(2021-12)Mask2Former
机械工程师和电气工程师方向哪个前景比较好?
Hero League rotation map automatic rotation
听哥一句劝,按这套嵌入式的课程内容和课程体系去学习
Full stack development of quartz distributed timed task scheduling cluster
018. Valid palindromes
软件负载均衡和硬件负载均衡的选择
在CANoe中通过Panel面板控制Test Module 运行(初级)
If a university wants to choose to study automation, what books can it read in advance?
Listen to my advice and learn according to this embedded curriculum content and curriculum system
【深度学习】语义分割-源代码汇总
Teach you how to write the first MCU program hand in hand
Yarn organizational structure
Why can't TN-C use 2p circuit breaker?