wok annotate samba/stuff/CVE-2017-7494.u @ rev 25035
Up libqcow (20210419)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 20 18:11:13 2022 +0000 (2022-05-20) |
parents | |
children |
rev | line source |
---|---|
pascal@19962 | 1 CVE-2017-7494: rpc_server3: Refuse to open pipe names with / inside |
pascal@19962 | 2 --- source3/rpc_server/srv_pipe.c |
pascal@19962 | 3 +++ source3/rpc_server/srv_pipe.c |
pascal@19962 | 4 @@ -384,6 +384,11 @@ bool is_known_pipename(const char *pipename, struct ndr_syntax_id *syntax) |
pascal@19962 | 5 { |
pascal@19962 | 6 NTSTATUS status; |
pascal@19962 | 7 |
pascal@19962 | 8 + if (strchr(pipename, '/')) { |
pascal@19962 | 9 + DEBUG(1, ("Refusing open on pipe %s\n", pipename)); |
pascal@19962 | 10 + return false; |
pascal@19962 | 11 + } |
pascal@19962 | 12 + |
pascal@19962 | 13 if (lp_disable_spoolss() && strequal(pipename, "spoolss")) { |
pascal@19962 | 14 DEBUG(10, ("refusing spoolss access\n")); |
pascal@19962 | 15 return false; |