Bug 46820 - syntax.py: Invalid base64 not detected
syntax.py: Invalid base64 not detected
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UDM maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-13 12:28 CEST by Philipp Hahn
Modified: 2022-02-21 13:36 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.086
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2018-04-13 12:28:36 CEST
/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}=)?
Comment 1 Florian Best univentionstaff 2022-02-21 13:36:42 CET
All base64 relevant syntax classes are now raising valueError() when decoding fails.