Project

General

Profile

Bug #11341

PresharedKey is not sanitized from status_output config file

Added by Viktor Gurov 2 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
WireGuard
Target version:
Start date:
01/30/2021
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.5.0
Affected Architecture:
Release Notes:
Default

Description

PresharedKey is not sanitized from config file

WireGuard-Configuration File wg0.conf:

# This WireGuard config file has been created automatically. Do not edit!
# Description: WG0

[Interface]
PrivateKey = <redacted>
ListenPort = 51820

# Peer: WG42
[Peer]
PublicKey = Xja7ORQcgzifnwXg9xAR3wVef53yj10fx65dtZZYcTM=
AllowedIPs = 10.2.2.2/24
PresharedKey = XU2RlgQOzMqKh1qDA7d2jQRJjuIGgDRpQPR1DYeQiTc=

Associated revisions

Revision 294bb15c (diff)
Added by Viktor Gurov 2 months ago

Sanitize WireGuard PresharedKey from config. Fixes #11341

History

#2 Updated by Jim Pingle 2 months ago

  • Status changed from New to Pull Request Review
  • Target version set to 2.5.0

#3 Updated by Renato Botelho 2 months ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Viktor Gurov

PR has been merged. Thanks!

#4 Updated by Viktor Gurov 2 months ago

  • % Done changed from 0 to 100

#5 Updated by Viktor Gurov 2 months ago

  • Status changed from Feedback to Resolved

2.5.0.a.20210201.1628 works as expected:

WireGuard-Configuration File wg0.conf

# This WireGuard config file has been created automatically. Do not edit!
# Description: WG0

[Interface]
PrivateKey = <redacted>
ListenPort = 51820

# Peer: WG42
[Peer]
PublicKey = Xja7ORQcgzifnwXg9xAR3wVef53yj10fx65dtZZYcTM=
AllowedIPs = 10.2.2.2/24
PresharedKey = <redacted>

Also available in: Atom PDF