This CMS can be downloaded from here.
1. Install
First create a database you can choose any name.Here I create a database named dm.
1 | create database dm; |
Second import data into database you created just now.You can import with PHPMyAdmin or mysql command. I use mysql command to import data.
1 | mysql -uroot -ppassword dm < import.sql |
Ps.inmport.sql
is in dmqyjz_v20190822/
.
Then visithttp://localhsot/dmqyjz_v20190822/install.php
.
Enter your Domain Name, Database Name, MySQL Username, MySQL Password.
And if your MySQL version is higher than 5.5 choose 是
, or choose 否
.
Click 开始配置
to install.
If you saw this page, it means you install this CMS successfully.
2. Log in as Super Administrator
Visit http://localhost/dmqyjz_v20190822/admindm-yourname/g.php
Log in as admin:admin123
.
3. Description
After logged in as super administrator, open the following three pages.
CSRF-1
This CSRF-POC can add a normal administartor named test7 if a super administrator click the button.
1 | <html> |
CSRF-2
This CSRF-POC can edit a normal administrator’s password and permissions if a super administrator click the button.
1 | <html> |
CSRF-3
This CSRF-POC can delete a normal administrator if a super administrator click the button.
1 | <html> |
4. Analzy
CSRF-1
Add normal administrator
Code
CSRF-2
Edit normal administrator’s password
Code
CSRF-3
Delete normal administrtor
Code
All codes didn’t check Token or Referer.