COOKiES Consent Management
The module misses a check when converting a specific video attribute back into a source link. An administrator could add harmful code that runs in the browser of other visitors. They could view hidden data and alter information on the site.
- Who could do thisOnly someone with an administrator login.
- Does it apply to youA site is affected if an attacker has the access right to display a specific HTML element with a specific class to all users.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate COOKiES Consent Management to 1.2.17.
For developers: what the fix changed
The fix introduces a Drupal.cookies.isSafeUrl function in js/cookies.lib.js to ensure URLs use safe protocols. It also updates several JavaScript files, such as modules/cookies_video/js/cookies_media.js, to read raw attribute values and validate them using this new function before assigning them to an iframe.
js/cookies.lib.js+33 −0 fixmodules/cookies_filter/js/cookies_filter.js+17 −12 fixmodules/cookies_video/js/cookies_media.js+17 −15 fixmodules/cookies_video/js/cookies_video_embed_field.js+8 −12 fix