Skip to content

Commit

Permalink
Merge pull request #59 from xElkomy/main
Browse files Browse the repository at this point in the history
New Three Custom Scan checks
  • Loading branch information
olliewuk authored Jul 27, 2023
2 parents a4ea097 + 44999a3 commit 4a60180
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
.vscode
71 changes: 71 additions & 0 deletions other/Openredirect/mass48-openredirect.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
metadata:
language: v1-beta
name: "Mass 48 Param For Open Redirect"
description: "Open Redirect"
author: "SirBugs, xelkomy"

run for each:
# you could add more values to this list to make the check repeat
potential_path =
"/https://bing.com/",
"//https://bing.com//",
"/?targetOrigin=https://bing.com/",
"/?fallback=https://bing.com/",
"/?query=https://bing.com/",
"/?redirection_url=https://bing.com/",
"/?next=https://bing.com/",
"/?ref_url=https://bing.com/",
"/?state=https://bing.com/",
"/?1=https://bing.com/",
"/?redirect_uri=https://bing.com/",
"/?forum_reg=https://bing.com/",
"/?return_to=https://bing.com/",
"/?redirect_url=https://bing.com/",
"/?return_url=https://bing.com/",
"/?host=https://bing.com/",
"/?url=https://bing.com/",
"/?redirectto=https://bing.com/",
"/?return=https://bing.com/",
"/?prejoin_data=https://bing.com/",
"/?callback_url=https://bing.com/",
"/?path=https://bing.com/",
"/?authorize_callback=https://bing.com/",
"/?email=https://bing.com/",
"/?origin=https://bing.com/",
"/?continue=https://bing.com/",
"/?domain_name=https://bing.com/",
"/?redir=https://bing.com/",
"/?wp_http_referer=https://bing.com/",
"/?endpoint=https://bing.com/",
"/?shop=https://bing.com/",
"/?qpt_question_url=https://bing.com/",
"/?checkout_url=https://bing.com/",
"/?ref_url=https://bing.com/",
"/?redirect_to=https://bing.com/",
"/?succUrl=https://bing.com/",
"/?file=https://bing.com/",
"/?link=https://bing.com/",
"/?referrer=https://bing.com/",
"/?recipient=https://bing.com/",
"/?redirect=https://bing.com/",
"/?u=https://bing.com/",
"/?hostname=https://bing.com/",
"/?returnTo=https://bing.com/",
"/?return_path=https://bing.com/",
"/?image=https://bing.com/",
"/?requestTokenAndRedirect=https://bing.com/",
"/?retURL=https://bing.com/",
"/?next_url=https://bing.com/"

given host then
send request called check:
method: "GET"
path: {potential_path}

if "Location: https://bing.com" in {check.response.headers} then
report issue:
severity: low
confidence: certain
detail: `Open Redirect found at {potential_path}.`
remediation: "Ensure your website are not redirect the users outside it without wihtelist."
end if
21 changes: 21 additions & 0 deletions other/technologies/WoodWing-Detect.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
metadata:
language: v1-beta
name: "Detect WoodWing Studio Server Panel"
description: "Default creds: username: woodwing password: ww"
author: "xelkomy"

define:
potential_path = "/StudioServer/server/apps/login.php"

given host then
send request called check:
method: "GET"
path: {potential_path}

if "WoodWing Studio Server" in {check.response.body} then
report issue:
severity: info
confidence: certain
detail: `WoodWing Studio Server Panel at {potential_path}.`
remediation: "Maybe there is defult creds impact Default creds: username: woodwing password: ww."
end if
21 changes: 21 additions & 0 deletions vulnerability-classes/injection/SSRFInjection.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
metadata:
language: v1-beta
name: "SSRF in each insetpoint"
description: "Insert an Collaborator address into each parameter to detect SSRF"
author: "xelkomy"

define:
ssrfaddress="{generate_collaborator_address()}"

# we will automatically insert into nested insertion points
given insertion point then
send payload:
appending: {ssrfaddress}

if http interactions then
report issue:
severity: high
confidence: firm
detail: "SSRF Discovery by BCheck: Explore the Request Tab to Observe the Payload and Attempt Self-Capture"
remediation: "Implement SSRF remediation measures to mitigate the vulnerability."
end if

0 comments on commit 4a60180

Please sign in to comment.