Skip to content

WireGuard Preshared Key

ID: wireguard-preshared-key

Severity: info

Author: DhiyaneshDK

Tags: wireguard,exposure,tokens

id: wireguard-preshared-key
info:
name: WireGuard Preshared Key
author: DhiyaneshDK
severity: info
reference:
- https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/wireguard.yml
- https://www.wireguard.com/quickstart/
- https://manpages.debian.org/testing/wireguard-tools/wg.8.en.html
- https://gist.github.com/lanceliao/5d2977f417f34dda0e3d63ac7e217fd
metadata:
verified: true
max-request: 1
tags: wireguard,exposure,tokens
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
- PresharedKey\s*=\s*([A-Za-z0-9+/]{43}=)
# digest: 490a00463044022014141c84e06052cb18ce835336ce4ec1ccf3c53c56dc8a669a569e62d0f03a0d02207218ed99b87166407ddb581daf247477a6a70d929cb310bb6af45fc467cfa348:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/tokens/wireguard/wireguard-preshared-key.yaml"

View on Github