Dotclear

Changeset 1202 for plugins/httpPassword


Ignore:
Timestamp:
06/05/09 13:25:03 (14 years ago)
Author:
wattoo
Message:

Correction d'un bug de securite (mauvaise prise en compte du couple login/password).
Il n'y a pas a dire, developpeur c est un metier

Location:
plugins/httpPassword
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/httpPassword/_define.php

    r1134 r1202  
    1616     /* Description*/    "Manage .htpasswd file to make the blog private", 
    1717     /* Author */        "Frederic PLE <dotclear@frederic.ple.name>", 
    18      /* Version */       '0.5.2', 
     18     /* Version */       '0.5.3', 
    1919     /* Permissions */   'httpPassword' 
    2020); 
  • plugins/httpPassword/_public.php

    r1134 r1202  
    6262               list($cur_user,$cur_pass) = explode(':',trim($ligne),2); 
    6363               httpPassword::__debuglog($core,'cur_user: '.$cur_user.'      cur_pass: '.$cur_pass); 
    64                if (crypt($PHP_AUTH_PW,$cur_pass) == $cur_pass) { 
     64               if ($cur_user == $PHP_AUTH_USER and crypt($PHP_AUTH_PW,$cur_pass) == $cur_pass) { 
    6565                    $authenticated = true; 
    6666                    httpPassword::__debuglog($core,'        OK'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map