Project

General

Profile

Actions

Bug #15385

open

PHP crash when exporting Apple profile, while IPsec P1 authentication method set to "Mutual Certificate"

Added by Craig Coonrad 3 months ago. Updated 30 days ago.

Status:
Pull Request Review
Priority:
Normal
Assignee:
Category:
IPsec Profile Wizard
Target version:
-
Start date:
Due date:
% Done:

0%

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

Description

Version: 23.09.1-RELEASE (amd64)

Steps to reproduce:

1. Configure the Phase 1 authentication method to "Mutual Certificate"
2. Navigate to VPN --> IPsec Export: Apple Profile
3. Click "Download"

Screencap and PHP log attached.


Files

ipsec-export-php.log (4.22 KB) ipsec-export-php.log Craig Coonrad, 04/06/2024 09:19 PM
php-fatal-error.jpg (477 KB) php-fatal-error.jpg Craig Coonrad, 04/06/2024 09:19 PM
PHP_errors (5).log (584 Bytes) PHP_errors (5).log Danilo Zrenjanin, 05/11/2024 07:39 AM
Actions #1

Updated by Danilo Zrenjanin about 2 months ago

I can replicate this issue.

Tested against:

24.03-RELEASE (amd64)
built on Wed Apr 24 17:38:00 UTC 2024
FreeBSD 15.0-CURRENT
Crash report begins.  Anonymous machine information:

amd64
15.0-CURRENT
FreeBSD 15.0-CURRENT #0 plus-RELENG_24_03-n256311-e71f834dd81: Fri Apr 19 00:28:14 UTC 2024     root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-24_03-main/obj/amd64/Y4MAEJ2R/var/jenkins/workspace/pfSense-Plus-snapshots-24_03-main/sources/FreeBS

Crash report details:

PHP Errors:
[11-May-2024 07:35:56 Etc/UTC] PHP Fatal error:  Uncaught TypeError: base64_encode(): Argument #1 ($string) must be of type string, array given in /usr/local/pkg/ipsec-profile.inc:1649
Stack trace:
#0 /usr/local/pkg/ipsec-profile.inc(1649): base64_encode()
#1 /usr/local/pkg/ipsec-profile.inc(1274): iep_generate_ike()
#2 /usr/local/pkg/ipsec-profile.inc(1870): iep_generate_vpn()
#3 /usr/local/pkg/ipsec-profile.inc(1928): iep_generate_payload()
#4 /usr/local/www/vpn_ipsec_profile.php(130): iep_generate_profile()
#5 {main}
  thrown in /usr/local/pkg/ipsec-profile.inc on line 1649

No FreeBSD crash data found.

Actions #2

Updated by Marcos M 30 days ago

  • Status changed from Confirmed to Pull Request Review
  • Assignee set to Marcos M
  • Plus Target Version set to 24.08
Actions

Also available in: Atom PDF