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

Last Modified: Jul 21, 2020

Bug Tracker

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

Known Affected Versions:
14.1.0, 14.1.0.1, 14.1.0.2, 14.1.0.3, 14.1.0.5, 14.1.0.6, 14.1.2, 14.1.2.1, 14.1.2.2, 14.1.2.3, 14.1.2.4, 14.1.2.5, 14.1.2.6

Opened: Jan 08, 2020
Severity: 4-Minor

Symptoms

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

Impact

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

Conditions

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

Workaround

Use iRule to correct returned IFRAME URL in rewritten JavaScript code. There is no generic iRule pattern; the correction depends on actual JavaScript code. Use the following template for iRule: 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

None

Behavior Change