CVE-2022-4559 (published 2022-12-16T17:15Z)

A vulnerability was found in INEX IPX-Manager up to 6.2.0. It has been declared as problematic. This vulnerability affects unknown code of the file resources/views/customer/list.foil.php. The manipulation leads to cross site scripting. The attack can be initiated remotely. Upgrading to version 6.3.0 is able to address this issue. The name of the patch is bc9b14c6f70cccdb89b559e8bc3a7318bfe9c243. It is recommended to upgrade the affected component. VDB-215962 is the identifier assigned to this vulnerability.

CVSS v3 base score: 6.1, MEDIUM (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

Weakness information:
cwe_id: CWE-707
cwe_name: Improper Neutralization
description: The product does not ensure or incorrectly ensures that structured messages or data are well-formed and that certain security properties are met before being read from an upstream component or sent to a downstream component.
extended_description: 
            If a message is malformed, it may cause the message to be incorrectly interpreted.
            Neutralization is an abstract term for any technique that ensures that input (and output) conforms with expectations and is "safe."  This can be done by:
	    
	      checking that the input/output is already "safe" (e.g. validation)
	      transformation of the input/output to be "safe" using techniques such as filtering, encoding/decoding, escaping/unescaping, quoting/unquoting, or canonicalization
	      preventing the input/output from being directly provided by an attacker (e.g. "indirect selection" that maps externally-provided values to internally-controlled values)
	      preventing the input/output from being processed at all
	    
            This weakness typically applies in cases where the product prepares a control message that another process must act on, such as a command or query, and malicious input that was intended as data, can enter the control plane instead. However, this weakness also applies to more general cases where there are not always control implications.
         
         

Fix information:
repo_url: https://github.com/inex/IXP-Manager
commit_details: repo_url: https://github.com/inex/IXP-Manager
author: Barry O'Donovan
author_date: 2022-10-20 11:41:43+01:00
msg: [BF] Escape HTML content to prevent XSS [ref: 055-9-4]
repository: repo_url: https://github.com/inex/IXP-Manager
repo_name: inex/IXP-Manager
description: Full stack web application powering peering at over 200 Internet Exchange Points (IXPs) globally.
repo_language: PHP
owner: inex
file_changes: filename: list.foil.php
change_type: ModificationType.MODIFY
diff: @@ -53,7 +53,7 @@
 
         <div class="btn-group btn-group-sm">
             <button class="btn btn-white btn-xs dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
-                <?= $t->tag ? 'Tag: ' . $t->tags[ $t->tag ][ 'display_as' ] : "Limit to tag..." ?>
+                <?= $t->tag ? 'Tag: ' . $t->ee( $t->tags[ $t->tag ][ 'display_as' ] ) : "Limit to tag..." ?>
             </button>
 
             <ul class="dropdown-menu dropdown-menu-right">
@@ -64,7 +64,7 @@
                 <div class="dropdown-divider"></div>
                 <?php foreach( $t->tags as $tag ): ?>
                     <a class="dropdown-item <?= $t->tag !== $tag[ 'id' ] ?: "active" ?>"href="<?= route( 'customer@list' , [ 'tag' => $tag[ 'id' ] ] ) ?>">
-                        <?= $tag[ 'display_as' ] ?>
+                        <?= $t->ee( $tag[ 'display_as' ] ) ?>
                     </a>
                 <?php endforeach; ?>
             </ul>

programming_language: PHP