Detection rules › Sigma

Zimbra Collaboration Suite Email Server Unauthenticated RCE

Status
test
Severity
medium
Log source
category webserver
Author
@gott_cyber
Source
github.com/SigmaHQ/sigma

Detects an attempt to leverage the vulnerable servlet "mboximport" for an unauthenticated remote command injection

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1190 Exploit Public-Facing Application

Rule body yaml

title: Zimbra Collaboration Suite Email Server Unauthenticated RCE
id: dd218fb6-4d02-42dc-85f0-a0a376072efd
status: test
description: Detects an attempt to leverage the vulnerable servlet "mboximport" for an unauthenticated remote command injection
references:
    - https://www.volexity.com/blog/2022/08/10/mass-exploitation-of-unauthenticated-zimbra-rce-cve-2022-27925/
    - https://www.yang99.top/index.php/archives/82/
    - https://github.com/vnhacker1337/CVE-2022-27925-PoC
author: '@gott_cyber'
date: 2022-08-17
modified: 2023-01-02
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2022-27925
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection_servlet:
        cs-method: 'POST'
        cs-uri-query|contains: '/service/extension/backup/mboximport\?'
        cs-uri-query|contains|all:
            - 'account-name'
            - 'ow'
            - 'no-switch'
            - 'append'
        sc-status:
            - 401
            - 200
    selection_shell:
        cs-uri-query|contains: '/zimbraAdmin/'
        cs-uri-query|endswith: '.jsp'
        sc-status|contains: '200'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_servlet

selection_servlet:
    cs-method: 'POST'
    cs-uri-query|contains: '/service/extension/backup/mboximport\?'
    cs-uri-query|contains|all:
        - 'account-name'
        - 'ow'
        - 'no-switch'
        - 'append'
    sc-status:
        - 401
        - 200

Stage 2: selection_shell

selection_shell:
    cs-uri-query|contains: '/zimbraAdmin/'
    cs-uri-query|endswith: '.jsp'
    sc-status|contains: '200'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
cs-methodeq
  • POST
cs-uri-queryends_with
  • .jsp
cs-uri-querymatch
  • /service/extension/backup/mboximport\?
  • /zimbraAdmin/
  • account-name
  • append
  • no-switch
  • ow
sc-statuseq
  • 200
  • 401
sc-statusmatch
  • 200