Description (en)
Hi @ll,
about 2 months ago I posted
<https://seclists.org/fulldisclosure/2025/Dec/29>
"Defense in depth -- the Microsoft way (part 94):
SAFER (SRPv1 and AppLocker alias SRPv2) bypass for dummies"
Here's the continuation...
About 23 years ago, 64-bit Windows introduced the WoW64 subsystem, which
performs a transpatent redirection of file system and registry accesses
for 32-bit applications.
To allow consistent appearance and behaviour of 64-bit and 32-bit variants
of applications like the "command processor" which reads its settings from
the registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor],
several branches or single keys of the split registry where joined: until
Vista via "registry reflection", since Windows 7 via "shared keys".
Some applications, for example the Windows Script Host, were but lobotomized:
the registry keys [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host]
and [HKEY_LOCAL_MACHINE\SOFTWARE\WoW6432Node\Microsoft\Windows Script Host]
are separate, NOT joined.
Demonstration
~~~~~~~~~~~~~
The article <https://technet.microsoft.com/en-us/library/ee198684.aspx>
"Disabling Windows Script Host" states:
| To disable WSH for all users of a particular computer, create this
| entry:
|
| [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings]
| "Enabled"=dword:00000000
It but needs a second, UNDOCUMENTED entry to enforce this setting:
| "IgnoreUserSettings"=dword:00000001
Without this entry, unprivileged users can enable WSH or exempt it from
SAFER, either Software Restriction Policies or AppLocker:
| [HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings]
| "Enabled"=dword:00000001
| "UseWINSAFER"=dword:00000000
With the first 2 entries for the computer in place, and NO entries set for
the user, start a command prompt, run %SystemRoot%\SysWoW64\CSCRIPT.EXE or
%SystemRoot%\SysWoW64\WSCRIPT.EXE without arguments and admire their help
messages on the console or in a dialog box: OOPS!
Due to the lobotomy the same entries MUST be set in the 32-bit branch of
the registry too! Since the key name \WoW6432Node\ is an implementation
detail you should NEVER use, run the proper command lines:
REG.EXE ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Hosts\Settings" /REG:32 /V Enabled /D 0
REG.EXE ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Hosts\Settings" /REG:32 /V IgnoreUserSettings /D 1
stay tuned, and far away from split brains
Stefan Kanthak
_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: https://seclists.org/fulldisclosure/
Raw JSON
{
"containers": {
"cna": {
"affected": [
{
"product": "Defense in depth",
"vendor": "unknown",
"versions": [
{
"status": "affected",
"version": "unknown"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Stefan Kanthak via Fulldisclosure"
}
],
"descriptions": [
{
"lang": "en",
"value": "Hi @ll,\n\nabout 2 months ago I posted\n<https://seclists.org/fulldisclosure/2025/Dec/29>\n\"Defense in depth -- the Microsoft way (part 94):\n SAFER (SRPv1 and AppLocker alias SRPv2) bypass for dummies\"\n\nHere's the continuation...\n\nAbout 23 years ago, 64-bit Windows introduced the WoW64 subsystem, which\nperforms a transpatent redirection of file system and registry accesses\nfor 32-bit applications.\nTo allow consistent appearance and behaviour of 64-bit and 32-bit variants\nof applications like the \"command processor\" which reads its settings from\nthe registry key [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Command Processor],\nseveral branches or single keys of the split registry where joined: until\nVista via \"registry reflection\", since Windows 7 via \"shared keys\".\n\nSome applications, for example the Windows Script Host, were but lobotomized:\nthe registry keys [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows Script Host]\nand [HKEY_LOCAL_MACHINE\\SOFTWARE\\WoW6432Node\\Microsoft\\Windows Script Host]\nare separate, NOT joined.\n\nDemonstration\n~~~~~~~~~~~~~\n\nThe article <https://technet.microsoft.com/en-us/library/ee198684.aspx>\n\"Disabling Windows Script Host\" states:\n\n| To disable WSH for all users of a particular computer, create this\n| entry:\n|\n| [HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows Script Host\\Settings]\n| \"Enabled\"=dword:00000000\n\nIt but needs a second, UNDOCUMENTED entry to enforce this setting:\n\n| \"IgnoreUserSettings\"=dword:00000001\n\nWithout this entry, unprivileged users can enable WSH or exempt it from\nSAFER, either Software Restriction Policies or AppLocker:\n\n| [HKEY_CURRENT_USER\\Software\\Microsoft\\Windows Script Host\\Settings]\n| \"Enabled\"=dword:00000001\n| \"UseWINSAFER\"=dword:00000000\n\nWith the first 2 entries for the computer in place, and NO entries set for\nthe user, start a command prompt, run %SystemRoot%\\SysWoW64\\CSCRIPT.EXE or\n%SystemRoot%\\SysWoW64\\WSCRIPT.EXE without arguments and admire their help\nmessages on the console or in a dialog box: OOPS!\n\nDue to the lobotomy the same entries MUST be set in the 32-bit branch of\nthe registry too! Since the key name \\WoW6432Node\\ is an implementation\ndetail you should NEVER use, run the proper command lines:\n\nREG.EXE ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows Script Hosts\\Settings\" /REG:32 /V Enabled /D 0\nREG.EXE ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows Script Hosts\\Settings\" /REG:32 /V IgnoreUserSettings /D 1\n\nstay tuned, and far away from split brains\nStefan Kanthak\n_______________________________________________\nSent through the Full Disclosure mailing list\nhttps://nmap.org/mailman/listinfo/fulldisclosure\nWeb Archives & RSS: https://seclists.org/fulldisclosure/"
}
],
"providerMetadata": {
"dateUpdated": "2026-11-02T08:33:22Z",
"orgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"shortName": "VULNARCHIVE"
},
"references": [
{
"tags": [
"technical-description"
],
"url": "https://vuln.freearchive.org/archive/full-disclosure/2026/Mar/5"
},
{
"tags": [
"technical-description"
],
"url": "https://seclists.org/fulldisclosure/2026/Mar/5"
},
{
"url": "https://nmap.org/mailman/listinfo/fulldisclosure"
},
{
"url": "https://seclists.org/fulldisclosure/"
},
{
"url": "https://seclists.org/fulldisclosure/2025/Dec/29"
},
{
"url": "https://technet.microsoft.com/en-us/library/ee198684.aspx"
}
],
"source": {
"defect": [
"https://seclists.org/fulldisclosure/2026/Mar/5"
],
"discovery": "EXTERNAL"
},
"title": "Defense in depth -- the Microsoft way (part 96): yet another SAFER (SRPv1) and AppLocker (SRPv2) loophole",
"x_gcve": [
{
"recordType": "advisory",
"relationships": [],
"vulnId": "GCVE-1988-2026-0514",
"x_vulnarchive": {
"archiveUrl": "https://vuln.freearchive.org/archive/full-disclosure/2026/Mar/5",
"automated": true,
"contentSha256": "87c88bbba18df52d04390aae9c41895f73fed8826ab8e8d74c04472c172be945",
"evidenceScore": 6,
"messageId": "",
"originalUrl": "https://seclists.org/fulldisclosure/2026/Mar/5",
"policy": "vulnarchive-1",
"sourceFormat": "text/html",
"sourcePublishedAt": "2026-02-23T16:36:44Z"
}
}
]
}
},
"cveMetadata": {
"assignerOrgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"assignerShortName": "VULNARCHIVE",
"datePublished": "2026-11-02T08:33:22Z",
"dateUpdated": "2026-11-02T08:33:22Z",
"state": "PUBLISHED",
"vulnId": "GCVE-1988-2026-0514"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}