[an error occurred while processing the directive]
![]() |
cosign-discuss at umich.edu |
general discussion of cosign development and deployment | |
One of our users has discovered by accident that the login CGI will accept a backslash in the username and will correctly authenticate to the KDC, presumably because the backslash is regarded by the krb functions as just quoting the following character. However, cosign retains the backslash in the authenticated username and so the backslash appears in the REMOTE_USER environment variable when it is read by mod_cosign. This then affects authorisation.
It doesn't look like cgi.c does any sanity checking of the login argument that is passed to it from the html form. It should probably check that only alphanumeric characters are accepted (and perhaps / to allow for non-default principals), though this might affect non-ascii usernames (do people use multicharacter usernames?). What do people think?