Project

General

Profile

Actions

Bug #15385

closed

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

Added by Craig Coonrad 8 months ago. Updated about 1 month ago.

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

100%

Estimated time:
Plus Target Version:
24.11
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 6 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 6 months ago

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

Updated by aleksei prokofiev 5 months ago

Tested on ipsec-profile-wizard version 1.2.3 on
24.08-DEVELOPMENT (amd64)
built on Tue Jul 2 9:00:00 MSK 2024
FreeBSD 15.0-CURRENT
No crashes, it fixed.

Actions #4

Updated by Jim Pingle 5 months ago

  • Status changed from Pull Request Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Jim Pingle about 1 month ago

  • Plus Target Version changed from 24.08 to 24.11
Actions

Also available in: Atom PDF