Bug 38053 - UMC-Webserver: socket.error unhandled when authenticating
UMC-Webserver: socket.error unhandled when authenticating
Status: RESOLVED DUPLICATE of bug 38402
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-16 15:45 CET by Florian Best
Modified: 2020-11-27 18:04 CET (History)
0 users

See Also:
What kind of report is it?: ---
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): Error handling
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2015-03-16 15:45:39 CET
After playing around with the UMC-server (to fix some other bug) the following bug occurs when the UMC-server closes the connection during authentication:
 ( ERROR   ) : Traceback in check_queue((<class '__main__.UMCP_Dispatcher'>,), {}):
Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-web-server", line 78, in new_f
    return f(*args, **kwargs)
  File "/usr/sbin/univention-management-console-web-server", line 308, in check_queue
    client.authenticate_user(queuerequest.request, queuerequest.response_queue)
  File "/usr/sbin/univention-management-console-web-server", line 162, in authenticate_user
    self.client.authenticate(request.body['username'], request.body['password'], request.body['new_password'], request.body['locale'])
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/client.py", line 361, in authenticate
    self.request(authRequest)
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/client.py", line 267, in request
    if self._resend(sock):
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/client.py", line 232, in _resend
    self.__realsocket.shutdown(socket.SHUT_RDWR)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 107] Transport endpoint is not connected
Comment 1 Stefan Gohmann univentionstaff 2019-01-03 07:17:49 CET
This issue has been filled against UCS 4.0. The maintenance with bug and security fixes for UCS 4.0 has ended on 31st of May 2016.

Customers still on UCS 4.0 are encouraged to update to UCS 4.3. Please contact
your partner or Univention for any questions.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
Comment 2 Florian Best univentionstaff 2020-11-27 18:04:34 CET
Fixed by:
    Bug #38402: enhance error handling in client
    
    git-svn-id: svn+ssh://billy.knut.univention.de/var/univention/svn/dev/branches/ucs-4.1/ucs-4.1-0@63375 1b283449-9f2f-0410-b571-8eb228e1a901

    Bug #38402: fix recursion error in the umcp client which allowed DoS by
            causing 100% CPU load
    
    git-svn-id: svn+ssh://billy.knut.univention.de/var/univention/svn/dev/branches/ucs-4.1/ucs-4.1-0@63249 1b283449-9f2f-0410-b571-8eb228e1a901

*** This bug has been marked as a duplicate of bug 38402 ***