Re: OpenVPN and CWE-316?
Gert Doering <[email protected]> Tue, 13 Aug 2024 14:22:17 +0200
| Newsgroups | gmane.network.openvpn.user |
|---|---|
| Message-ID | <[email protected]> |
Hi
On Tue, Aug 13, 2024 at 12:57:49PM +0200, Jakob Curdes wrote:
> The original seccuvera article states that OpenVPN (I assume they mean the
> Windows client) is "vulnerable" to this weakness and leaves data like
> emails, passwords and 2FA codes in the main memory after the program is
> closed. I have not tested this myself so I canot say if that is true.
Whether or not OpenVPN retains information used to log into the server
depends on the "--auth-nocache" setting. There is no "correct" solution
here - you want to reauth frequently to renegotiate new session keys, and
if you do not want to re-enter your username + password every time, it
needs to be cached... (in-memory-encryption could be used, but if OpenVPN
can decrypt it, a process that can read OpenVPN's memory can do so as
well).
On Program *close*, this data should be cleared (as well as "the OS
needs to clear the memory and make it inaccessible"), but it's not clear
what the researchers did here - they logged off, but depending on the
way they started OpenVPN, it might still be running in the background
(and in which case, these credentials will still be there).
(OpenVPN will, of course, never retain "emails" passing through the VPN
- I understand the article to mean "the e-mail address used as username
for logging into the VPN server")
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users
signature.asc
(application/pgp-signature, 630 B)
-----BEGIN PGP SIGNATURE----- iQGcBAEBAgAGBQJmu0/5AAoJEB2Cnv7KVigSFQQL/3c/LBE667xujYFPL7s9hh2/ 0n48ZWs+V9T6E/JlpnOgKBqDhad57GgQOmFMQYDK/1F6RDSPJbgo/OctejHfgPRt dnUPHH4RYAx/Z4GiHEcs1vRmUc0P0yof/zvr87clnZSiY9m7MMiMjOv52sBo+U/Z 1wLaEuQTH0IAy3PAkZHQSeXVWWNxFjyFy/Vzfguy6Bfd2KucHcCCv+2yprUHpo9M SRUtNCFiLDj2L1+3Fx0Ff9aRaVIIZPSKopkoNB6SpZjjs3x2pJJaAeroeuItGxTT KTGQzgcAvGptKbl3rSoLZ+nqj7TJ8qlYB9LBWbXumagxIIf/GiLc34j+ZQqz1NmS Y4Oe4qUUPna06dO5BaM11mXrIJh7QDuHd4qvko3WuMyFSnhX/w9+dzlfKkBOmVRR 8lkJS5lEu6me5mXz5nQN8jdGzzAHNlLBVMxnriybrH2PtWeX8ebaKTw+x0EDwCz8 Kqvt2TABw4ULjT35cAVSXnJrhhMVNjwemdcAFZe4pg== =rlmN -----END PGP SIGNATURE-----