GoURL Unrestricted Upload Vulnerability POC
GoURL Unrestricted Upload Vulnerability POC is a vulnerability in the GoURL Bitcoin Wordpress Plugin. The vulnerable function is located at https://github.com/cryptoapi/Bitcoin-Wordpress-Plugin/blob/8aa17068d7ba31a05f66e0ab2bbb55efb0f60017/gourl.php#L5637. The vulnerability is caused by the use of a substring for the file name to select the first 95 letters, allowing an attacker to upload a file with a .php extension. To exploit this vulnerability, an attacker must create a file with a name of 95 characters or less, followed by a .php extension, and upload it to the target WordPress website. The uploaded file can then be accessed via a link such as http://127.0.0.1/wp/wp-content/uploads/gourl/images/i123456789a123456789b123456789c123456789d123456789e123456789f123456789g123456789h123456789i1.php.