-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
winapi audit events returning garbage #119690
Comments
At a glance, it looks like |
In 3.11+, the audit call looks correct in
I think it's just the
Here's a couple more that aren't pressing issues:
|
Hmm, I've definitely got garbage in logs from 3.11, but it might be an earlier version. Worth going back and fixing, or else I'll be going back and fixing in my own builds.
Thanks for confirming. I would've gone crazy trying to figure out the problem with CreateFile otherwise!
Is it not? That privilege was the cause of one of the weirdest bugs I've ever had to diagnose (it was causing an unrelated stat test to succeed when run as admin after the privilege was set but not cleared, because it allowed the backup privilege to be used on a file ACLd for no access 🤦♂️)
I was excited, but I think you rewrote it more correctly for Windows, not for us! As long as there's a specific API for us to use, I'd rather use it, even if technically all the structs used are supported. If a user is not supposed to be creating junctions, they'll get a relevant security error (and if an admin is auditing junction creation, they'll get those audit events). Either way, no plans to touch anything outside of winapi in this issue. |
I don't know what you mean about a user not being allowed to be create junctions. There is no special privilege required to create a junction. You just need synchronize, read-attributes, and write-data access to set the reparse point. There is no API to create a junction per se. There's I rewrote the code for |
Oh my bad, there isn't an API for creating a junction. I was probably thinking of the mount point API, yeah.
Perhaps, but I haven't heard any requests for it. The closest I've seen is people requesting |
…honGH-119717) (cherry picked from commit 78d697b) Co-authored-by: Steve Dower <[email protected]>
…d _winapi.CreateNamedPipe audit events
Also backports a minor improvement to test_audit.
(cherry picked from commit 78d697b) Co-authored-by: Steve Dower <[email protected]>
…File and _winapi.CreateNamedPipe audit events (pythonGH-119735) (cherry picked from commit 2e861ac) Co-authored-by: Steve Dower <[email protected]> pythongh-119690: Fixes buffer type confusion in _winapi.CreateFile and _winapi.CreateNamedPipe audit events
…File and _winapi.CreateNamedPipe audit events (pythonGH-119735) (cherry picked from commit 2e861ac) Co-authored-by: Steve Dower <[email protected]> pythongh-119690: Fixes buffer type confusion in _winapi.CreateFile and _winapi.CreateNamedPipe audit events
…d _winapi.CreateNamedPipe audit events (GH-119735) (#123680) (cherry picked from commit 2e861ac) Co-authored-by: Steve Dower <[email protected]>
…d _winapi.CreateNamedPipe audit events (GH-119735) (#123679) (cherry picked from commit 2e861ac) Co-authored-by: Steve Dower <[email protected]>
The CreateFile and CreateNamedPipe audit events from the winapi module appear to be returning garbage instead of the names. There's potential for buffer overreads and/or information leakage.
Linked PRs
The text was updated successfully, but these errors were encountered: