mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-05 02:03:35 +08:00
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
id: winrm-basic-auth-enabled
|
|
|
|
info:
|
|
name: WinRM Basic Authentication Enabled
|
|
author: princechaddha
|
|
severity: high
|
|
description: Verifies if Windows Remote Management (WinRM) allows basic (unencrypted) authentication.
|
|
impact: |
|
|
Basic authentication can expose credentials in plaintext, allowing attackers to intercept and exploit sensitive information.
|
|
remediation: |
|
|
Disable Basic authentication and configure secure authentication mechanisms like Kerberos or certificate-based authentication.
|
|
tags: windows,winrm,code,windows-audit
|
|
|
|
self-contained: true
|
|
|
|
code:
|
|
- pre-condition: |
|
|
IsWindows();
|
|
engine:
|
|
- powershell
|
|
- powershell.exe
|
|
args:
|
|
- -ExecutionPolicy
|
|
- Bypass
|
|
pattern: "*.ps1"
|
|
source: |
|
|
(Get-Item WSMan:\localhost\Service\Auth).Basic
|
|
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "True"
|
|
|
|
# digest: 490a004630440220294359acc0a658e659a1959a7cf9fbff00b7261c878a500e83cb8aca844315c60220388fce3fd43933b68aa315b68c0210a23bc6fb24193111035bb7a9c1219015e8:922c64590222798bb761d5b6d8e72950 |