Project

General

Profile

Actions

Bug #13650

closed

User with a wireguard permissions not able to edit peers/tunnels

Added by Andrey Hammer 3 months ago. Updated 21 days ago.

Status:
Resolved
Priority:
Normal
Category:
WireGuard
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

User with "WebCfg - VPN: WireGuard" can't edit anything. On attemt to edit got redirect to wg/vpn_wg_tunnels.php.
Looks like issue with wireguard.inc.php:

These rules(and maybe other rules too)
$priv_list['page-vpn-wireguard']['match'][] = "wg/vpn_wg_tunnels_edit.php";
$priv_list['page-vpn-wireguard']['match'][] = "wg/vpn_wg_peers_edit.php";

should be:
$priv_list['page-vpn-wireguard']['match'][] = "wg/vpn_wg_tunnels_edit.php*";
$priv_list['page-vpn-wireguard']['match'][] = "wg/vpn_wg_peers_edit.php*";

Actions #1

Updated by Danilo Zrenjanin 3 months ago

  • Status changed from New to Confirmed

I can confirm this behavior on the:

22.05-RELEASE (amd64)
built on Wed Jun 22 18:56:13 UTC 2022
FreeBSD 12.3-STABLE

Wireguard version:

0.1.6_2

I could define new tunnels and peers. But couldn't edit the existing ones.

Actions #2

Updated by Christopher Cope 26 days ago

  • Status changed from Confirmed to Pull Request Review
  • Assignee set to Christopher Cope
Actions #3

Updated by Danilo Zrenjanin 21 days ago

It works as expected with the patch.

Tested the patch against:

WireGuard    net    0.1.6_2    

Actions #4

Updated by Christian McDonald 21 days ago

  • Status changed from Pull Request Review to Closed
Actions #5

Updated by Christian McDonald 21 days ago

  • Status changed from Closed to Resolved
Actions

Also available in: Atom PDF