# CVE-2019-9787 CSRF PoC
## Overview
PoC of CVE-2019-9787 CSRF
WordPress Version 5.0
[refference](https://blog.ripstech.com/2019/wordpress-csrf-to-rce/)
Do not use this except for test purpose.
## Installation
```
$ docker-compose up -d
```
1. access http://localhost:8080/ and install WordPress. you only have to create WP admin account.
2. access http://localhost:8080/?p=1#comments as a visitor, and post comment like "csrf site: http://localhost/".

## Test
click the link posted at 2.

you'll see the comment "csrf success" is posted by user you currently logged in.
[4.0K] /data/pocs/05dfdd7b1883e2cd09609c331f68e0b8350231f6
├── [ 689] docker-compose.yml
├── [4.0K] nginx
│ ├── [ 262] iframe-post.html
│ └── [ 105] index.html
└── [ 766] README.md
1 directory, 4 files