CVE-2018-10919 tests: Add tests for guessing confidential attributes
authorTim Beale <timbeale@catalyst.net.nz>
Mon, 9 Jul 2018 03:57:59 +0000 (15:57 +1200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Aug 2018 11:57:15 +0000 (13:57 +0200)
commit375f48f779fd6c62080efb03949cc25fa9515c3b
treeec2691102a26a270de860456d3d52473937ab0eb
parentc107e2d6751b8e6b40f23c50ca4f0e28a0ac9196
CVE-2018-10919 tests: Add tests for guessing confidential attributes

Adds tests that assert that a confidential attribute cannot be guessed
by an unprivileged user through wildcard DB searches.

The tests basically consist of a set of DB searches/assertions that
get run for:
- basic searches against a confidential attribute
- confidential attributes that get overridden by giving access to the
  user via an ACE (run against a variety of ACEs)
- protecting a non-confidential attribute via an ACL that denies read-
  access (run against a variety of ACEs)
- querying confidential attributes via the dirsync controls

These tests all pass when run against a Windows Dc and all fail against
a Samba DC.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13434

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
selftest/knownfail.d/confidential_attr [new file with mode: 0644]
source4/dsdb/tests/python/confidential_attr.py [new file with mode: 0755]
source4/selftest/tests.py