博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
WordPress Plugin Form Maker [CSRF → LFI] vulnerable 2019-03-17
阅读量:7125 次
发布时间:2019-06-28

本文共 3000 字,大约阅读时间需要 10 分钟。

# Title: Form Maker by WD [CSRF → LFI]

# Date: 2019-03-17
# Exploit Author: Panagiotis Vagenas
# Vendor Homepage:
# Software Link:
# Version: 1.13.2
# Tested on: WordPress 5.1
Description
-----------
Plugin implements the following AJAX actions:
- `generete_csv`
- `generete_xml`
- `formmakerwdcaptcha`
- `formmakerwdmathcaptcha`
- `product_option`
- `FormMakerEditCountryinPopup`
- `FormMakerMapEditinPopup`
- `FormMakerIpinfoinPopup`
- `show_matrix`
- `FormMakerSubmits`
- `FormMakerSQLMapping`
- `select_data_from_db`
- `manage_fm`
- `FMShortocde`
All of them call the function `form_maker_ajax`. This function
dynamicaly loads a file defined in `$_GET['action']` or
`$_POST['action']` if the former is not defined. Because of the way
WordPress defines the AJAX action a user could define the plugin action
in the `$_GET['action']` and AJAX action in `$_POST['action']`.
Leveraging that and the fact that no sanitization is performed on the
`$_GET['action']`, a malicious actor can perform a CSRF attack to load a
file using directory traversal thus leading to Local File Inclusion
vulnerability.
Plugin also registers the following AJAX actions:
- `paypal_info`
- `checkpaypal`
Those seems like the are only available to PRO version users, yet they
also are vulnerable to this attack.
Additionally the following AJAX actions are registered in PRO version:
- `get_frontend_stats`
- `frontend_show_map`
- `frontend_show_matrix`
- `frontend_paypal_info`
- `frontend_generate_csv`
- `frontend_generate_xml`
Those have the function `form_maker_ajax_frontend` as a callback. All of
them are vulnerable to the aforementioned attack. What's more
interesting about those is the fact that are available to non-registered
users also, making this attack directly exploitable, without using a
CSRF attack. In this case the vulnerable param is `$_REQUEST['page']`.

 

------

PoC

### Using a CSRF attack

```HTML

```

 

### Without leveraging the CSRF vulnerability

```sh

curl 'http://wp-plugin-csrf.dev/wp-admin/admin-ajax.php'  -d 'action=get_frontend_stats&page=/../../../../../index'

```

转载于:https://www.cnblogs.com/iAmSoScArEd/p/10684132.html

你可能感兴趣的文章
邮件服务器架构基础
查看>>
【白话设计模式十四】代理模式(Proxy)
查看>>
LINUX内核经典面试题
查看>>
解决连表查询连接字段字符集不一致异常
查看>>
网页基础
查看>>
springboot(五):spring data jpa的使用
查看>>
导数 sobel
查看>>
Debian命令行的配制工具
查看>>
SAP R3 display Vendor list, MKVZ .
查看>>
我的友情链接
查看>>
C++11 自旋锁Spinlock
查看>>
在Vmware中配置YUM 从本地光盘更新软件
查看>>
java博客推荐更多好的博文请关注如下↓
查看>>
lambda表达式提示变量错误:Variable used in lambda expression should be final or effectively final...
查看>>
Oracle常用语句(手记)
查看>>
部署 ftp服务 和部署ftp yum源
查看>>
Android网络连接判断与处理
查看>>
linux所在目录下文件数
查看>>
FastCGI特点原理、nginx与php-fpm两种通信方式对比
查看>>
Tungsten Replicator 实验
查看>>