-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,095 changed files
with
160,317 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
## 环境编译 | ||
``` | ||
docker-compose build | ||
docker-compose up -d | ||
``` | ||
## 漏洞介绍 | ||
|
||
### 前台SQL注入漏洞 | ||
|
||
漏洞的触发点在作品的评论处 | ||
 | ||
|
||
利用burosuite抓包扫描 | ||
 | ||
|
||
攻击的payload是 | ||
` | ||
'%2b(select*from(select(sleep(20)))a)%2b' | ||
` | ||
|
||
利用sqlmap即可跑出结果 | ||
 | ||
|
||
|
||
### 后台getshell | ||
|
||
后台地址http://127.0.0.1:8001/?s=admin, 后台账户 admin:admi | ||
fuzz过程 输入php 被过滤成空 所以 phphpp 提交之后就会变成php | ||
|
||
跟踪到\Lib\Admin\Action\AdminAction.class.php | ||
` | ||
$config["upload_class"] = trim(str_replace(array("php", "asp", "apsx", "txt", "asax", "ascx", "cdx", "cer", "cgi", "jsp", "html", "html", "htm", ",,"), "", strtolower($config["upload_class"])), ","); | ||
` | ||
|
||
` | ||
$upload_class = str_replace(array("php", "asp", "apsx", "txt", "asax", "ascx", "cdx", "cer", "cgi", "jsp", "html", "html", "htm", ",,"), "", strtolower(C("upload_class"))); | ||
var_dump(strtolower(C("upload_class"))); | ||
` | ||
附件配置处的地方替换一次后写进config.php 这里从config.php中读出来的时候再替换一次 所以在附件设置的地方就该未雨绸缪构造一个两次替换后才是php的后缀 | ||
|
||
这里用的是ptxtptxthtxtptxthtxtp | ||
|
||
然后上传 | ||
|
||
 | ||
|
||
获得shell | ||
 | ||
|
||
|
||
[链接一](http://www.bubuko.com/infodetail-2246395.html) | ||
[链接二](https://www.evilys.top/2017/08/22/%E7%AE%80%E5%8D%95%E5%AE%A1%E8%AE%A1Gxlcms/) | ||
[链接三](http://foreversong.cn/archives/736) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: '2' | ||
services: | ||
|
||
|
||
php5-app_gxlcms1.0: | ||
build: ./php-fpm | ||
image: s1r1u5/gxlcms:1.0 | ||
restart: always | ||
links: | ||
- mysql-gxlcms1.0:db | ||
ports: | ||
- 8001:80 | ||
depends_on: | ||
- mysql-gxlcms1.0 | ||
|
||
|
||
mysql-gxlcms1.0: | ||
build: ./mysql | ||
image: s1r1u5/mysql_gxlcms:1.0 | ||
environment: | ||
MYSQL_ROOT_PASSWORD: "123456" | ||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM mysql:5.7 | ||
|
||
MAINTAINER s1riu5 <[email protected]> | ||
|
||
ENV AUTO_RUN_DIR /docker-entrypoint-initdb.d | ||
|
||
ENV INSTALL_DB_SQL schema.sql | ||
|
||
COPY ./$INSTALL_DB_SQL $AUTO_RUN_DIR/ | ||
|
||
RUN chmod a+x $AUTO_RUN_DIR/$INSTALL_DB_SQL |
Oops, something went wrong.