summaryrefslogtreecommitdiffstats
path: root/src/tests/t_cve-2013-1417.py
blob: c26930a301347d528091a4d354c95d51cfaf2a14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/python

from k5test import *

realm = K5Realm(realm='TEST')

# CVE-2013-1417 KDC dereferences null pointer

realm.kinit(realm.user_princ, password('user'))
realm.run([kvno, '-S', 'host', 'example.com'], expected_code=1)
# Make sure KDC is still running.
realm.kinit(realm.user_princ, password('user'))
success('CVE-2013-1417 regression test')