Commit 48f4ba32 authored by Nick Kew's avatar Nick Kew
Browse files

PR#40950: backport security note to htpasswd/htdigest docs.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@487905 13f79535-47bb-0310-9956-ffa450edef68
parent 863a5055
Loading
Loading
Loading
Loading
+5 −0
Changes for docs/manual/programs/htdigest.xml: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -66,4 +66,9 @@
    </dl>
</section>

<section id="security"><title>Security Considerations</title>
    <p>This program is not safe as a setuid executable. Do <em>not</em> make it
    setuid.</p>
</section>

</manualpage>
+12 −0
Changes for docs/manual/programs/htpasswd.xml: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -188,8 +188,20 @@ distribution.</seealso>
    <em>not</em> be within the Web server's URI space -- that is, they should
    not be fetchable with a browser.</p>

    <p>This program is not safe as a setuid executable. Do <em>not</em> make it
    setuid.</p>

    <p>The use of the <code>-b</code> option is discouraged, since when it is
    used the unencrypted password appears on the command line.</p>

    <p>When using the <code>crypt()</code> algorithm, note that only the first
    8 characters of the password are used  to form the password. If the supplied
    password is longer, the extra characters will be silently discarded.</p>

    <p>The SHA encryption format does not use salting: for a given password,
    there is only one encrypted representation. The <code>crypt()</code> and
    MD5 formats permute the representation by prepending a random salt string,
    to make dictionary attacks against the passwords more difficult.</p>
</section>

<section id="restrictions"><title>Restrictions</title>