mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2025-12-23 07:29:04 -08:00
116 lines
5.2 KiB
Markdown
116 lines
5.2 KiB
Markdown
# codestar:CreateProject, codestar:AssociateTeamMember
|
|
|
|
{% hint style="success" %}
|
|
Learn & practice AWS Hacking:<img src="../../../../.gitbook/assets/image (1) (1) (1) (1).png" alt="" data-size="line">[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)<img src="../../../../.gitbook/assets/image (1) (1) (1) (1).png" alt="" data-size="line">\
|
|
Learn & practice GCP Hacking: <img src="../../../../.gitbook/assets/image (2) (1).png" alt="" data-size="line">[**HackTricks Training GCP Red Team Expert (GRTE)**<img src="../../../../.gitbook/assets/image (2) (1).png" alt="" data-size="line">](https://training.hacktricks.xyz/courses/grte)
|
|
|
|
<details>
|
|
|
|
<summary>Support HackTricks</summary>
|
|
|
|
* Check the [**subscription plans**](https://github.com/sponsors/carlospolop)!
|
|
* **Join the** 💬 [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** us on **Twitter** 🐦 [**@hacktricks\_live**](https://twitter.com/hacktricks_live)**.**
|
|
* **Share hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos.
|
|
|
|
</details>
|
|
{% endhint %}
|
|
|
|
This is the created policy the user can privesc to (the project name was `supercodestar`):
|
|
|
|
```json
|
|
{
|
|
"Version": "2012-10-17",
|
|
"Statement": [
|
|
{
|
|
"Sid": "1",
|
|
"Effect": "Allow",
|
|
"Action": [
|
|
"codestar:*",
|
|
"iam:GetPolicy*",
|
|
"iam:ListPolicyVersions"
|
|
],
|
|
"Resource": [
|
|
"arn:aws:codestar:eu-west-1:947247140022:project/supercodestar",
|
|
"arn:aws:events:eu-west-1:947247140022:rule/awscodestar-supercodestar-SourceEvent",
|
|
"arn:aws:iam::947247140022:policy/CodeStar_supercodestar_Owner"
|
|
]
|
|
},
|
|
{
|
|
"Sid": "2",
|
|
"Effect": "Allow",
|
|
"Action": [
|
|
"codestar:DescribeUserProfile",
|
|
"codestar:ListProjects",
|
|
"codestar:ListUserProfiles",
|
|
"codestar:VerifyServiceRole",
|
|
"cloud9:DescribeEnvironment*",
|
|
"cloud9:ValidateEnvironmentName",
|
|
"cloudwatch:DescribeAlarms",
|
|
"cloudwatch:GetMetricStatistics",
|
|
"cloudwatch:ListMetrics",
|
|
"codedeploy:BatchGet*",
|
|
"codedeploy:List*",
|
|
"codestar-connections:UseConnection",
|
|
"ec2:DescribeInstanceTypeOfferings",
|
|
"ec2:DescribeInternetGateways",
|
|
"ec2:DescribeNatGateways",
|
|
"ec2:DescribeRouteTables",
|
|
"ec2:DescribeSecurityGroups",
|
|
"ec2:DescribeSubnets",
|
|
"ec2:DescribeVpcs",
|
|
"events:ListRuleNamesByTarget",
|
|
"iam:GetAccountSummary",
|
|
"iam:GetUser",
|
|
"iam:ListAccountAliases",
|
|
"iam:ListRoles",
|
|
"iam:ListUsers",
|
|
"lambda:List*",
|
|
"sns:List*"
|
|
],
|
|
"Resource": [
|
|
"*"
|
|
]
|
|
},
|
|
{
|
|
"Sid": "3",
|
|
"Effect": "Allow",
|
|
"Action": [
|
|
"codestar:*UserProfile",
|
|
"iam:GenerateCredentialReport",
|
|
"iam:GenerateServiceLastAccessedDetails",
|
|
"iam:CreateAccessKey",
|
|
"iam:UpdateAccessKey",
|
|
"iam:DeleteAccessKey",
|
|
"iam:UpdateSSHPublicKey",
|
|
"iam:UploadSSHPublicKey",
|
|
"iam:DeleteSSHPublicKey",
|
|
"iam:CreateServiceSpecificCredential",
|
|
"iam:UpdateServiceSpecificCredential",
|
|
"iam:DeleteServiceSpecificCredential",
|
|
"iam:ResetServiceSpecificCredential",
|
|
"iam:Get*",
|
|
"iam:List*"
|
|
],
|
|
"Resource": [
|
|
"arn:aws:iam::947247140022:user/${aws:username}"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
{% hint style="success" %}
|
|
Learn & practice AWS Hacking:<img src="../../../../.gitbook/assets/image (1) (1) (1) (1).png" alt="" data-size="line">[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)<img src="../../../../.gitbook/assets/image (1) (1) (1) (1).png" alt="" data-size="line">\
|
|
Learn & practice GCP Hacking: <img src="../../../../.gitbook/assets/image (2) (1).png" alt="" data-size="line">[**HackTricks Training GCP Red Team Expert (GRTE)**<img src="../../../../.gitbook/assets/image (2) (1).png" alt="" data-size="line">](https://training.hacktricks.xyz/courses/grte)
|
|
|
|
<details>
|
|
|
|
<summary>Support HackTricks</summary>
|
|
|
|
* Check the [**subscription plans**](https://github.com/sponsors/carlospolop)!
|
|
* **Join the** 💬 [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** us on **Twitter** 🐦 [**@hacktricks\_live**](https://twitter.com/hacktricks_live)**.**
|
|
* **Share hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos.
|
|
|
|
</details>
|
|
{% endhint %}
|