CWE Code: 119
Vulnerability Type: privilege_escalation
CVSS Score: 7.2
CWE Name:  Improper Restriction of Operations within the Bounds of a Memory Buffer
Summary: sophos safeguard enterprise before 8.00.5, safeguard easy before 7.00.3, and safeguard lan crypt before 3.95.2 are vulnerable to local privilege escalation via multiple ioctls, e.g., 0x8810200b, 0x8810200f, 0x8810201b, 0x8810201f, 0x8810202b, 0x8810202f, 0x8810203f, 0x8810204b, 0x88102003, 0x88102007, 0x88102013, 0x88102017, 0x88102027, 0x88102033, 0x88102037, 0x88102043, and 0x88102047. when some conditions in the user-controlled input buffer are not met, the driver writes an error code (0x2000001a) to a user-controlled address. also, note that all the aforementioned ioctls use transfer type method_neither, which means that the i/o manager does not validate any of the supplied pointers and buffer sizes. so, even though the driver checks for input/output buffer sizes, it doesn't validate if the pointers to those buffers are actually valid. so, we can supply a pointer for the output buffer to a kernel address space address, and the error code will be written there. we can take advantage of this condition to modify the sep_token_privileges structure of the token object belonging to the exploit process and grant se_debug_name privilege. this allows the exploit process to interact with higher privileged processes running as system and execute code in their security context.
Access Authentication: NONE
Access Complexity: LOW
Access Vector: LOCAL
Impact (C/I/A): COMPLETE/COMPLETE/COMPLETE
Published Date: 2018-07-09
Last Modified Date: 2019-10-03