Bug ID 867705: URL for IFRAME element may not be normalized in some cases

Last Modified: Jan 20, 2023

Bug Tracker

Affected Product:  See more info
BIG-IP APM(all modules)

Known Affected Versions:
14.1.0,,,,,, 14.1.2,,,,,,,,, 14.1.3,, 14.1.4,,,,,,, 14.1.5,,,

Opened: Jan 08, 2020
Severity: 4-Minor


Client JavaScript may see a non-normalized URL for the IFRAME HTML element in Portal Access.


The URL for IFRAME element is not normalized and the web application may not work correctly in Portal Access.


- Original HTML page contains IFRAME element with relative URL - JavaScript code reads this URL from the IFRAME element


Use an iRule to correct the returned IFRAME URL in rewritten JavaScript code. There is no generic iRule pattern; the correction depends on actual JavaScript code, but you can use the following example as a template: when REWRITE_REQUEST_DONE { if { [HTTP::path] ... } { # use appropriate selection for URI set correct_location 1 } } when REWRITE_RESPONSE_DONE { if {[info exists correct_location]} { unset correct_location # look for the piece of code to be corrected set str2find {...} # use appropriate pattern for rewritten code set str_len [string length $str2find] set strt [string first $str2find [REWRITE::payload]] # make replacement using appropriate corrected code if {$strt > 0} { REWRITE::payload replace $strt $str_len {...} } } }

Fix Information


Behavior Change