Detection rules › Sigma

Atlassian Bitbucket Command Injection Via Archive API

Status
test
Severity
high
Log source
category webserver
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects attempts to exploit the Atlassian Bitbucket Command Injection CVE-2022-36804

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1190 Exploit Public-Facing Application

Rule body yaml

title: Atlassian Bitbucket Command Injection Via Archive API
id: 65c0a0ab-d675-4441-bd6b-d3db226a2685
status: test
description: Detects attempts to exploit the Atlassian Bitbucket Command Injection CVE-2022-36804
references:
    - https://twitter.com/_0xf4n9x_/status/1572052954538192901
    - https://www.rapid7.com/blog/post/2022/09/20/cve-2022-36804-easily-exploitable-vulnerability-in-atlassian-bitbucket-server-and-data-center/
    - https://confluence.atlassian.com/bitbucketserver/bitbucket-server-and-data-center-advisory-2022-08-24-1155489835.html
    - https://blog.assetnote.io/2022/09/14/rce-in-bitbucket-server/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-09-29
modified: 2023-01-02
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2022-36804
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    selection:
        cs-uri-query|contains|all:
            - '/rest/api/latest/projects/'
            - 'prefix='
            - '%00--exec'
    condition: selection
falsepositives:
    - Web vulnerability scanners
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    cs-uri-query|contains|all:
        - '/rest/api/latest/projects/'
        - 'prefix='
        - '%00--exec'

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-uri-querymatch
  • %00--exec
  • /rest/api/latest/projects/
  • prefix=