Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
samba36: CVE-2017-7494: rpc_server3: Refuse to open pipe names with /…
Browse files Browse the repository at this point in the history
… inside

Ref.: https://bugzilla.samba.org/show_bug.cgi?id=12780

Backport from Lede.
  • Loading branch information
vlendec authored and RMerl committed May 25, 2017
1 parent c0642b4 commit 9da88d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions release/src/router/samba36/source3/rpc_server/srv_pipe.c
Expand Up @@ -481,6 +481,11 @@ bool is_known_pipename(const char *cli_filename, struct ndr_syntax_id *syntax)
pipename += 1;
}

if (strchr(pipename, '/')) {
DEBUG(1, ("Refusing open on pipe %s\n", pipename));
return false;
}

if (lp_disable_spoolss() && strequal(pipename, "spoolss")) {
DEBUG(10, ("refusing spoolss access\n"));
return false;
Expand Down

0 comments on commit 9da88d2

Please sign in to comment.