Repository navigation
INEX is pleased to announce the general availability of IXP Manager v7.5.0. This release contains new features, improvements, bug-fixes, and three security fixes - one of which is critical.
Release Summary
git --no-pager diff --shortstat v7.4.1
562 files changed, 14456 insertions(+), 4578 deletions(-)
Upgrade Instructions
The official upgrade instructions are here. Follow these, including the database migrations.
Three additional tasks must be performed depending on the usage of your platform, and one extra task for users who have skinned the IXP Manager layout.
Important: The PPA by Ondřej Surý used by our installer script and installation instructions has been deprecated. Instructions are provided below regarding migrating to the new PPA. This is required to continue receiving the latest PHP updates - which is critical given the security updates of late.
PHP PPA Migration
It is highly likely that most IXP Manager installs will have been carried out using Ondrej Sury's PPA ppa:ondrej/php. This has been deprecated and installations will need to migrate to the new PPA to receive updates.
- Check if you are using the old PPA:
find /etc/apt/sources.list.d -type f -exec grep "ondrej/php/ubuntu" {} +
- If the above command outputs
/etc/apt/sources.list.d/ondrej-ubuntu-php-noble.sources:URIs: https://ppa.launchpadcontent.net/ondrej/php/ubuntu/- or similar, only the URL needs to match - you will need to migrate. - Run the following commands to replace the PPA on your system.
sudo apt update
sudo apt install debsuryorg-repository-php
sudo add-apt-repository --remove ppa:ondrej/php
sudo apt update
- The earlier file
/etc/apt/sources.list.d/ondrej-ubuntu-php-noble.sourceswill be removed, and a new one in its place:/etc/apt/sources.list.d/php.sources. - Inspect the upgrade using
apt list --upgradable, or go ahead with the upgradesudo apt upgrade.
Patch Panel Port file migration
Note: If you do not have any files under storage/files/ppp, this task is not required.
An issue was identified (#1123) where new files attached to patch panel ports cannot be downloaded - only files uploaded from older versions of IXP Manager can be downloaded. v7.5.0 fixes the underlying issue; however, you must also run a migration task to combine both stores.
This migration task will merge the old file storage directory (storage/files/ppp) into the new directory (storage/app/files/ppp). It must be run as root to preserve ownership settings.
sudo mkdir -p $IXPROOT/storage/app/files/ppp/
sudo cp -a $IXPROOT/storage/files/ppp/. $IXPROOT/storage/app/files/ppp/
After performing the merge, verify the old files can be downloaded via IXP Manager before cleaning up the old store in $IXPROOT/storage/files/ppp. If the above command wasn't run as root, you may need to reset file ownership.
NOTE: This action must be completed before carrying out the 'Cleanup patch panel files after failed panel expunge operations' task documented next.
Cleanup patch panel files after failed panel expunge operations
Note: This task assumes you have run the Patch Panel Port file migration above if required to do so. It may be skipped if you don't have any files in the new file store: storage/app/files/ppp.
A bug in the Patch Panel Expunge feature meant that any files associated with the patch panel were left on the filesystem instead of being deleted. A command-line tool is provided which will search for and remove any such files. The command will remove files matching the Patch Panel filename convention which are not referenced by any rows in the database.
cd $IXPROOT
./artisan upgrade:cleanup-expunged-patch-panel-files
The command may be run with the --dry-run switch. In this mode, no files will be deleted, and the command will report a plan for each file in the store - remove or skip.
Skinned file modification
Note: If you have not skinned the layout for IXP Manager, this task is not required.
After upgrading to the latest version of the select2 front-end library, some features involving drop-downs (html select's) stopped working. Fixing this required a change to the resources/views/layouts/ixpv4.foil.php layout file in v7.5.0.
If you have skinned resources/views/layouts/ixpv4.foil.php, diff it against the new version and incorporate the changes.
If you are upgrading from a version <=7.4.0, please note that changes to this file were also made in v7.4.1 as part of upgrading the front-end build system to Vite.
Security
Impact: High - Critical
Summary
We have released IXP Manager v7.5.0 to address a security vulnerability uncovered as a result of internal testing, and two additional issues reported via the GitHub Security Advisory platform.
Identified Issues
-
Configuration injection by superadmin users leading to potential remote code execution GHSA-qvrw-9585-275f. (Severity: Critical - 9.9 / 10).
A vulnerability was discovered in the settings UI which allowed superadmin users to inject extraneous configuration values into the system configuration. This could be used to embed XSS payloads, run shell commands on the server, or inject malformed configuration that prevents IXP Manager from running. Note that only logged in superadmin users could exploit this vulnerability. -
2FA tokens may be tested on pages besides the verification endpoint. GHSA-r9hp-9g8f-mq8p. (Severity: 6.8 / 10);
An issue was reported where two-factor tokens could be tested on pages not covered by the rate limiting put in place in v7.4.1. Since this bypasses the fix, an online attack against a user's two-factor token remained possible. -
IXP Manager customer welcome-email stored XSS via the NOC phone field GHSA-4rw9-4v3c-g2c5;
A customer administrator user could modify NOC contact information and in some cases trigger a stored XSS on the welcome email page.
All of these issues are corrected in v7.5.0.
Security Enhancements
User Login Throttle and 2FA Lockout.
v7.5.0 adds new account restrictions where repeated failed login or 2FA attempts are made against a user's account.
If a user (or bad actor) makes repeated failed password attempts, the system enforces a delay between logins. Users are emailed whenever this condition occurs. This will be automatically cleared after ~24 hours, or can be cleared by administrator users.
A more detailed explanation of the login throttling is published here in the IXP Manager Documentation
If repeated 2FA tokens are provided, the account is completely locked, and this can only be removed by contacting an administrator or a customer admin user if eligible.
A more detailed explanation of the 2FA lockout is published here in the IXP Manager Documentation.
Both of these improvements to the authentication system are significant, and we expect them to be robust. We have also included significant work on preventing user enumeration through response codes, response messages and timing attacks.
System-Wide Password Policy
Previous versions of IXP Manager shipped a static password policy (8 characters, letters, numbers, and mixed case required).
In this release, we introduce system-wide password policy configuration. Every form and console command which updates a user's password will enforce the defined policy. Passwords are checked against the policy during login, and if they fail new requirements, the user must update their password via the lost password tool to set a policy-compliant password.
Since IXP Manager ships with 2FA enabled, the minimum length remains 8 characters, which meets NIST guidelines.
This feature is documented here
We remind users that the safest way to use strong passwords is to mandate a password manager.
Improvements
- Implement stubbed password rehash feature (track configured bcrypt rounds)
- Use Ondrej Sury's new PPA in installer script and vagrant env bootstrapping - #1196
- user/view page: missing parenthesis - #1193
- Remove out-of-date code from config - #1189
- Improve wording on Forgot Password form responses - #1186
- Address development platform Dependabot vulnerabilities - #1182
- Test coverage of Profile forms - #1180
- Customer Delete page should respect Customer/Member configured strings - #1177
- Fix literal quoted html in Alert email body - #1173
- Improve
validate.phpUX when missing required extensions - #1172 - Grapher Validator: check
rrdextension is present if features enabled - #1171 - Add tool to cleanup files left from failed Patch Panel Expunge - #1167
- More login tests, including regression tests - #1165
- Validator: delete cache entry after writing to prevent cache spam - #1164
- Detect too-long contact group names, on form, and in validations - #1163
- Fix two small typos - #1155
- Test coverage of docstore files, ensuring sha256 cannot be changed without uploading a new file - #1152
- Ensure patch panel file delete message is escaped when rendered to browser - #1151
- Adding configurable initial port states for new panels, duplex pairing, bulk actions for changing unused port states or duplex configuration and other page/menu enhancements - #1150
- Remove DB cleanup code (shave 30s from full test suite), and use strict_types in tests - #1149
- Add validation rule for phone numbers instead of accepting any text - #1146
- Add options to set range used for automatic channel-group number assignment - #1145
- Fix potential 500 error on Patch Panel Port file listing, and support UTF8 characters in file names - #1144
- Deduplicate code in CIDR parsing validation rules - #1143
- Use the configured text for Member/Customer instead of hardcoded text - #1141
- Deduplicate code on customer details - #1140
- Add help text to Looking Glass route search page - #1139
- Avoid hard errors during docstore file uploads; return meaningful errors to user; harden file downloads - #1137
- Code deduplication in switch configuration list - #1136
- Further logging of sent emails - #1134
- Allow filtering cust list by resold/reseller - #1130
- Make Physical Interfaces / VLAN Interfaces tables responsively adjust width - #1129
- Show physical port status also in port edit list - #1128
- Remove unused copy of Purifier library - #1127
- Fix typo in installer script output - #1125
- Code readability improvement - #1121
- Layer 2 email notifications - prevent change if notification email is not syntactically valid - #1120
- Text improvement on Patch Panel upload form - #1119
- Improved language in Forgot Password email - #1118
- Escape ixf-compare fields - #1113
- Escape API responses from Looking Glass, and treat as plain text where relevant - #1112
#[SensitiveParameter]annotation on security credential function arguments - #1110IsCountryvalidation rule for settings, helper for countries in forms - #1109
Bug Fixes
- Remove mention of HOTP, was never supported
- Fix composer autoload warnings for test classes - #1194
- Fix transceiver diagnostics when errors are encountered - #1190
- Fix creation of Associate member and cover form with tests - #1188
- Fix edge case scenario where login could immediately redirect to logout - #1179
- Fix Patch Panel Port Delete when files are attached - #1175
- Fix Patch Panel Expunge not deleting files, split DB from file operations, better handling of errors - #1166
- Fix Settings UI changes wrong .env variable for "Enforce 2FA for Users" - #1160
- Fix billing details incorrectly hidden in Customer Details for non-resold customer - #1159
- Fix Contact List filter by group - when group is inactive, page should still provide filtered list instead of showing all contacts - #1158
- Fix missing HTML SELECT placeholders since upgrading select2 - #1138
- Fix duplicate speed dropdowns in Switch Configuration list view - #1132
- Fix Patch Panel file upload - newly uploaded files could not be downloaded - #1126
- Fix intermittent test failure on VirtualInterfaceControllerTest - #1122
- Fix Layer 2 notifications: if emails should only sent on superuser changes, and customer makes change, don't notify - follow configuration intent - #1120
- Fix Switch User feature when using Remember Me - #1117
- Fix Peering Matrix due to broken JS - #1111
- Fix Vite assets so they support IXP Manager hosted under sub-paths - #1108
Acknowledgements
We wish to thank everyone who contributed to this release: @listerr @sparkeh @cmek, and @tanfwc with SecureAX Pte Ltd.
CI Results for this Release
PHP unit tests:
./vendor/bin/phpunit
PHPUnit 12.5.45 by Sebastian Bergmann and contributors.
Runtime: PHP 8.4.27
Configuration: /Users/thomas/Herd/ixpm-inex/phpunit.xml
............................................................. 61 / 1006 ( 6%)
............................................................. 122 / 1006 ( 12%)
............................................................. 183 / 1006 ( 18%)
............................................................. 244 / 1006 ( 24%)
............................................................. 305 / 1006 ( 30%)
............................................................. 366 / 1006 ( 36%)
............................................................. 427 / 1006 ( 42%)
............................................................. 488 / 1006 ( 48%)
............................................................. 549 / 1006 ( 54%)
............................................................. 610 / 1006 ( 60%)
............................................................. 671 / 1006 ( 66%)
............................................................. 732 / 1006 ( 72%)
............................................................. 793 / 1006 ( 78%)
............................................................. 854 / 1006 ( 84%)
............................................................. 915 / 1006 ( 90%)
............................................................. 976 / 1006 ( 97%)
.............................. 1006 / 1006 (100%)
Time: 06:26.006, Memory: 159.00 MB
OK (1006 tests, 7335 assertions)
CI tests:
❯ ./vendor/bin/psalm --use-baseline=psalm-baseline.xml
Running on PHP 8.4.27, Psalm 6.21.4@72023213487628df0bc5b2e02d68cbac614b7ef5.
JIT acceleration: OFF
You can enable JIT acceleration (experimental) with --force-jit.
Target PHP version: 8.4 (inferred from composer.json).
Scanning files...
Analyzing files...
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 60 / 649 (9%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 120 / 649 (18%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 180 / 649 (27%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 240 / 649 (36%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 300 / 649 (46%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 360 / 649 (55%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 420 / 649 (64%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 480 / 649 (73%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 540 / 649 (83%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 600 / 649 (92%)
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
------------------------------
No errors found!
------------------------------
Checks took 12.49 seconds and used 1,762.461MB of memory
Psalm was able to infer types for 91.2103% of the codebase