Project

General

Profile

Actions

Todo #16958

closed
JP JP

Improve handling of OpenSSL encryption passphrase

Todo #16958: Improve handling of OpenSSL encryption passphrase

Added by Jim Pingle about 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Configuration Backend
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
26.07
Release Notes:
Default

Description

When encrypting or decrypting data, the code in crypt.inc uses the passphrase in openssl command line parameters. Though the processes are short-lived, there is a potential the passphrase could be observed by someone using various methods to view the process list.

The code should pass the value through a file, which is safer.

This function is used when encrypting and decrypting configuration backups (manual and via ACB)

Reported by: @lujiefsi


Files

16958.patch (1.61 KB) 16958.patch Jim Pingle, 07/20/2026 05:47 PM

JP Updated by Jim Pingle about 2 months ago Actions #1

  • File 16958.patch 16958.patch added
  • Description updated (diff)
  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100

Fixed in commit a0b135f75987dd015b9973a3a91c14556d227d2a

Patch is attached.

JP Updated by Jim Pingle about 1 month ago Actions #2

  • Status changed from Feedback to Resolved

JP Updated by Jim Pingle about 1 month ago Actions #3

  • Private changed from Yes to No
Actions

Also available in: Atom