Differences From Artifact [1a4eccad68]:
- File misc-stml.scm — part of check-in [e78a65d865] at 2016-09-19 05:55:31 on branch trunk — Add filtering to s:get-input. Switch to dbi. (user: matt, size: 10165) [annotate] [blame] [check-ins using]
To Artifact [fb9cd24234]:
- File
misc-stml.scm
— part of check-in
[1b5a5d3a6e]
at
2016-10-20 17:53:01
on branch crypt
— Replace external openssl call with "crypt" egg.
The OpenSSL call was using the old UNIX crypt DES password hashing, which is very weak. Crypt will default to a more sensible mechanism (Blowfish, but in the future could transparently switch).
Old passwords will continue to work, because the crypt egg detects DES salts and happily hashes them. When creating new passwords, they will be hashed using the modern algorithm.
The OpenSSL call passed the password to the shell, so an onlooker on the server could see it in plaintext. It also neglected to escape the password for the shell, resulting in a command injection vulnerability. (user: sjamaan, size: 9930) [annotate] [blame] [check-ins using] [more...]
︙ | |||
8 9 10 11 12 13 14 15 | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | + - - | ;; PURPOSE. ;;====================================================================== ;; dumbobj helpers ;;====================================================================== (declare (unit misc-stml)) (use (prefix crypt c:)) (use regex) |
︙ | |||
125 126 127 128 129 130 131 | 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | - + + - - - - - + - - - - | (define (session:make-rand-string len) (let loop ((res "") (n 1)) (if (> n len) res (loop (string-append res (session:get-rand-char)) (+ n 1))))) |
︙ |