Quantcast
Viewing all articles
Browse latest Browse all 19115

0007139: generate-server-cert.sh leaves security relevant tmp files behind

When running /usr/libexec/openldap-generate-server-cert.sh, a tmp file with a random name is being generated, and should be deleted after use. A wrong variable is used in deletion, leaving security relevant material lying around in an insecure fashion.<br /> <br /> In the trace below you can see the CERT_RANDOM file being generated, but it is attempted to delete $RANDOM_DATA after use. <br /> <br /> This is wrong. It should have been "rm -rf $CERT_RANDOM". <br /> <br /> After completion of the script, the file is left behind in /tmp, containing random bytes used to generate the cert. This is a security issue, even if the permissions of the file are restrictive.

Viewing all articles
Browse latest Browse all 19115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>