Bug 50605 - don't log password in base_http.get_json()
don't log password in base_http.get_json()
Status: RESOLVED FIXED
Product: Components
Classification: Unclassified
Component: udm-rest-api-client
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Daniel Tröder
Ole Schwiegert
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-12-06 10:41 CET by Daniel Tröder
Modified: 2019-12-06 19:52 CET (History)
0 users

See Also:
What kind of report is it?: Security Issue
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
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 Daniel Tröder univentionstaff 2019-12-06 10:41:43 CET
base_http.get_json()n logs all arguments passed to the request method including the Basic Auth credentials.

Remove the password from the log output.
Comment 1 Daniel Tröder univentionstaff 2019-12-06 19:52:58 CET
The password of the UDM REST API connection is not logged anymore.
This is also tested.

[master eca4e9c] don't log UDM REST API user password

https://travis-ci.com/univention/python-udm-rest-api-client/builds/139803588
https://codecov.io/github/univention/python-udm-rest-api-client/commit/eca4e9c2d732a3afab6a4f7790953706aa35a515