Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2021-20323 + AWS S3 takeover + Shopify takeover #76

Merged
merged 2 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions other/takeover-s3-bucket.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadata:
language: v1-beta
name: "AWS S3 Bucket takeover"
description: "Possible sub-domain takeover via AWS S3 bucket."
tags: "passive,s3,takeover,cloud"
author: "Milad Fadavvi"


given response then
if "NoSuchBucket" in {latest.response} and "BucketName:" in {latest.response} then
report issue:
severity: high
confidence: firm
detail: "https://github.com/EdOverflow/can-i-take-over-xyz/issues/36"
remediation: "Delete the related DNS record."
end if
16 changes: 16 additions & 0 deletions other/takeover-shopify.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadata:
language: v1-beta
name: "Shopify subdomain takeover"
description: "Possible sub-domain takeover | Shopify"
tags: "passive,shopify,takeover,cloud"
author: "Milad Fadavvi"


given response then
if ("To finish setting up your new web address, go to your domain settings, click \"Connect existing domain\"" in {latest.response} or "Sorry, this shop is currently unavailable." in {latest.response}) and "shop-not-found" in {latest.response} then
report issue:
severity: high
confidence: firm
detail: "info --> https://github.com/EdOverflow/can-i-take-over-xyz/issues/46"
remediation: "Delete the related DNS record."
end if
25 changes: 25 additions & 0 deletions vulnerabilities-CVEd/CVE-2021-20323 keycloak xss.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
metadata:
language: v1-beta
name: "CVE-2021-20323"
description: "KeyCloak Post-Based reflected XSS | CVE-2021-20323"
author: "Milad Fadavvi"
tags: "injection,xss,rxss"

run for each:
potential_path = "/auth/realms/master/clients-registrations/openid-connect"

given host then
send request called check:
method: "POST"
path: {potential_path}
body: "{\"<img src=x onerror=\\"alert('Bo0oq')\\"/>\":1}"
headers: "Content-type": "application/json"

if "alert('Bo0oq')" in {check.response.body} and "org.keycloak" in {check.response.body}
then
report issue:
severity: medium
confidence: certain
detail: `https://nvd.nist.gov/vuln/detail/CVE-2021-20323`
remediation: "Update the KeyCloak!"
end if