diff options
| author | Fraser Tweedale <ftweedal@redhat.com> | 2016-06-30 10:21:01 +1000 |
|---|---|---|
| committer | Jan Cholasta <jcholast@redhat.com> | 2016-08-22 07:19:03 +0200 |
| commit | cf74584d0f772f3f5eccc1d30c001e4212a104fd (patch) | |
| tree | 1111883a51185212b4832b43d6343b9437a9541f /ipapython/sysrestore.py | |
| parent | 7bec8a246d6712f749ec331f5bf066e3357c4ce7 (diff) | |
cert-revoke: fix permission check bypass (CVE-2016-5404)
The 'cert_revoke' command checks the 'revoke certificate'
permission, however, if an ACIError is raised, it then invokes the
'cert_show' command. The rational was to re-use a "host manages
certificate" check that is part of the 'cert_show' command, however,
it is sufficient that 'cert_show' executes successfully for
'cert_revoke' to recover from the ACIError continue. Therefore,
anyone with 'retrieve certificate' permission can revoke *any*
certificate and cause various kinds of DoS.
Fix the problem by extracting the "host manages certificate" check
to its own method and explicitly calling it from 'cert_revoke'.
Fixes: https://fedorahosted.org/freeipa/ticket/6232
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipapython/sysrestore.py')
0 files changed, 0 insertions, 0 deletions
