Univention Bugzilla – Bug 46820
syntax.py: Invalid base64 not detected
Last modified: 2022-02-21 13:36:42 CET
/usr/share/pyshared/univention/admin/syntax.py contains this code multiple times: import base64 try: base64.decodestring('!!!!!') # this is not a valid base64 encoded string except Exception as ex: # binascii.Error print("This is not always triggered when the base64 is invalid", ex) FYI: <https://de.wikipedia.org/wiki/Base64> … := [A–Za–z0–9+/] …{4}*(…{2}==|…{3}=)?
All base64 relevant syntax classes are now raising valueError() when decoding fails.