Commit Graph

24 Commits (46db965846bc40c23a27fe19c861fda1ad079f27)

Author SHA1 Message Date
Jan Dittberner 560be526c4 Fix client certificate login
This change fixes the client certificate login for cases where duplicate
serial numbers have been issued and recorded in the emailcerts table.

Email addresses from the client certificate are used as an additional
matching parameter.

- includes/lib/general.php got a new function
  get_email_addresses_from_client_cert to create an array of email
  addresses from the environment variables set by Apache httpd
- includes/loggedin.php and www/index.php use the new function to pass
  email addresses to the get_user_id_from_cert function
- get_user_id_from_cert in includes/lib/general.php has been enhanced to
  use a JOIN over the emailcerts, root_certs and email tables. All
  parameters are escaped via mysql_real_escape_string
- SQL errors in get_user_id_from_cert are now handled
- a match from get_user_id_from_cert is only returned when there is
  exactly one row in the result set

The code and the used query have been tested with Apache 2.4.10 and PHP
5.6 from Debian Jessie and a MariaDB 10.11 in strict mode using a
container based test setup to match the current production setup as
close as possible.
4 months ago
Wytze van der Raay ca2fe0bc16 Fix for https://bugs.cacert.org/view.php?id=1192
"Check on log into the account if user aggreed to CCA, if not prompt him an acception form"
10 years ago
Wytze van der Raay ccc2a6f534 Combined fixes for
- https://bugs.cacert.org/view.php?id=413
  "Add a web page indicating the certificate request is still pending"
- https://bugs.cacert.org/view.php?id=1138
  "Implement to log the SE activity"
- https://bugs.cacert.org/view.php?id=1221
  "Inconsistency in Assurance Management"
10 years ago
Wytze van der Raay 5fb83cec32 Fix for http://bugs.cacert.org/view.php?id=1176
fix deprecation messages due to PHP update.
11 years ago
root 2679d75dfc Fix for https://bugs.cacert.org/view.php?id=985
"Move from translingo to pootle"
13 years ago
Wytze van der Raay d98d23ff5b Fix for https://bugs.cacert.org/view.php?id=841
(Problems on cert login with "duplicate" serial numbers)
13 years ago
Wytze van der Raay b37255299d Fix for https://bugs.cacert.org/view.php?id=963
(Logout Session not completely reset)
13 years ago
root 8262bb0d93 Improved XSS prevention 16 years ago
root 72c9fa43d1 Improved register_globals handling 16 years ago
root 95d46015b4 Redirected logout to www.cacert.org 17 years ago
root afccfceb56 Changed license to GPLv2 17 years ago
root 74e4b951b9 Added the feature to disable certificate-login for certain client certificates 17 years ago
root b95cca2ca8 Fixed a Header attack 17 years ago
root 3e32cf1ca6 bug #80 18 years ago
root caff89d6ba bug fixes 18 years ago
root 7f48f75874 bug fixes 18 years ago
root 029a3b9f89 update 19 years ago
root bb7b042f57 updates 19 years ago
root 13a851559a updates 19 years ago
root 060a4762cf updates 19 years ago
root d89c90943e new code + updates and bug fixes 20 years ago
root 1f48e78e65 removed hard path configs 20 years ago
root c6b8a11ccb added sql schema + bug fixes 20 years ago
root 2e0fce259e some gpg code added + bug fixes etc 20 years ago