Forum Discussion
MSIX Runtime HKCU CreateKey
The application is "ExamDiff" from PrestoSoft (a free product you can access from their website).
The image I provided in the original post shows the line in a procmon trace that is problematic as the highlighted one (click on the image to view). The test was on a clean VM that had never seen the product.
This example was taken from a package that included the PSF RegLegacyFixup (which is needed because without it the app won't store user options in the registry at all). The result shows in the details column of procmon that "Read, Write DAC" permissions were granted. Instead, the result should say that "Read/Write" permissions were granted, just like the call made against the parent key 6 lines previous.
Would it be possible for you to share the config.json for the PSF RegLegacyFixup? We can try to fix this manually. We'll share the fix if it works.
- May 13, 2022Best method would be to send you the package. Give me a link to send it to you.
- Aniket_BanerjeeMay 16, 2022Former EmployeeTim, can you please send it to me as a Private Message? You can attach files upto 70 MB here.
- May 22, 2022
[package sent previously]
@Aniket_Banergee I have been doing some digging on another app with an issue using CreateKeyEx in a similar situation which may be interesting as well. In this similar case, the call requesting "Maximum_Allowed" permissions gets an access denied.
In this case, the caller first opens the HKCU key.
Then it calls CreateKeyEx using the returned HKCU key and a path "Software\..." which represents a key present in the package, the call to impl:CreateKeyEx is requesting Maximum_Allowed permissions and this call is successful.
The app passes this package key to another CreateKeyEx call to create a subkey not present in the package. If I query the key passed by the app in using NTQueryKey, this shows the key path in the form "=\REGISTRY\USER\...". This CreateKeyEx call is the one returning ACCESS_DENIED, which is incorrect.PS: I am testing against Windows 10 31H2 (19044.1706) with May 2022 updates.