Actions
Bug #16898
closed
JP
JP
Potential command execution via CR/LF in System Proxy settings
Bug #16898:
Potential command execution via CR/LF in System Proxy settings
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
26.07
Release Notes:
Default
Affected Version:
Affected Architecture:
Description
The settings for proxy username (proxyuser) and proxy password (proxypass) on system_advanced_misc.php accept CR/LF characters, and other characters which are not valid for their content, which can lead to a potential command execution path.
The proxy credentials are added as shell variables in certain cases (e.g. in /etc/crontab) and specially-crafted payloads can allow adding arbitrary crontab entries which are executed by the cron daemon.
Note that triggering a refresh of the cron content, such as via reboot, ACB settings, or the Cron package is necessary
Files
JP Updated by Jim Pingle 3 months ago
- Subject changed from Potential command execution via System Proxy settings to Potential command execution via CR/LF in System Proxy settings
JP Updated by Jim Pingle 3 months ago
- File 16898.patch 16898.patch added
- Status changed from New to Feedback
- % Done changed from 0 to 100
Fixed in commit 647e5c290d81edeceb6c27fa35469b908c665daf
Added validation for proxy credentials which flags several invalid characters.
Patch is attached.
JP Updated by Jim Pingle about 1 month ago
- Status changed from Feedback to Resolved
JP Updated by Jim Pingle about 1 month ago
- Private changed from Yes to No
Actions