microsoft / omi

Open Management Infrastructure
Other
360 stars 114 forks source link

Enhanced security #692

Closed deepakjain111 closed 2 years ago

deepakjain111 commented 2 years ago

Introduced authentication for omiserver in omiengine for user validation and PAM based user validation. This authentication is secret string based. This secret string can be set only once, that is duirng omiegine bootup, any other afterwards attempt to change the secret string will be ignored.

Default user type for running any scripts will be invalid user, so that user authencication can't be skipped. Additional validation for not allowing unauthorized user to proceed.

Fixed a Use-After-Free vulnerability where omiengine's connection with client get freed before omiegnine's connection with omiserver amd resulting in Use-After-Free vulnerability.