Skip to content
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

Verifier stop check for registry query input size vs type mismatch #23

Open
jxy-s opened this issue Aug 19, 2024 · 0 comments
Open

Verifier stop check for registry query input size vs type mismatch #23

jxy-s opened this issue Aug 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jxy-s
Copy link
Owner

jxy-s commented Aug 19, 2024

Add verifier stop check for registry query where the input size does not match expected type size. For example, if a DWORD/QWORD is expected to be returned from a registry call and the develop did not provide a buffer of 4/8 bytes the developer might have a programing error.

    if ((type == REG_DWORD) && inputLength && (inputLength != sizeof(DWORD)))
    {
        // raise a verifier stop, developer is likely using an errant pattern
    }
@jxy-s jxy-s added the enhancement New feature or request label Aug 19, 2024
@jxy-s jxy-s changed the title Verifier stop check for registry query where the input size does not match expected type size Verifier stop check for registry query input side vs type mismatch Aug 19, 2024
@jxy-s jxy-s changed the title Verifier stop check for registry query input side vs type mismatch Verifier stop check for registry query input size vs type mismatch Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant