mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-01-31 15:53:33 +08:00
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
id: windows-anonymous-sid-enumeration-allowed
|
|
|
|
info:
|
|
name: Windows Allows Anonymous SID Enumeration
|
|
author: princechaddha
|
|
severity: medium
|
|
description: Checks if anonymous users can enumerate Security Identifiers (SIDs), which can expose user information.
|
|
impact: |
|
|
Allowing anonymous SID enumeration can provide attackers with information to target specific users.
|
|
remediation: |
|
|
Disable anonymous SID enumeration to protect sensitive user information.
|
|
tags: windows,anonymous,sid,security,code,windows-audit
|
|
|
|
self-contained: true
|
|
|
|
code:
|
|
- pre-condition: |
|
|
IsWindows();
|
|
engine:
|
|
- powershell.exe
|
|
args:
|
|
- -ExecutionPolicy
|
|
- Bypass
|
|
pattern: "*.ps1"
|
|
source: |
|
|
if ((Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa' -Name 'AnonymousSidNameTranslation' -ErrorAction SilentlyContinue).AnonymousSidNameTranslation -eq 1) { Write-Output 'Anonymous SID Enumeration Allowed'; }
|
|
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- "Anonymous SID Enumeration Allowed"
|