[38;2;63;63;70m================================================================================[0m
[1;38;2;250;250;250mlegitbiz[38;2;113;113;122m[[1;38;2;16;185;129mresearch[38;2;113;113;122m][0m [38;2;113;113;122m// [1;38;2;52;211;153madvisory[0m
[38;2;63;63;70m================================================================================[0m
[38;2;113;113;122mid:[0m [1;38;2;52;211;153mLB-2026-001 // flexslider-hg[0m
[38;2;113;113;122mtarget:[0m [1;38;2;250;250;250mHG Slider (flexslider-hg) <= 2.1[0m
[38;2;113;113;122mtype:[0m [1;38;2;250;250;250mStored Cross-Site Scripting (CWE-79)[0m
[38;2;113;113;122mseverity:[0m [1;38;2;251;191;36mMedium (CVSS:3.1 5.4 - AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)[0m
[38;2;113;113;122mcna / portal:[0m [1;38;2;56;189;248mPatchstack VDP (https://patchstack.com/database/mvdp)[0m
[38;2;113;113;122mdate:[0m [1;38;2;250;250;250m2026-11-27[0m
[38;2;113;113;122mstatus:[0m [1;38;2;16;185;129msubmitted / coordinated disclosure[0m
[38;2;113;113;122mresearcher:[0m [1;38;2;250;250;250mlegitbiz[research][0m
[38;2;63;63;70m--------------------------------------------------------------------------------[0m
[1;38;2;52;211;153m[01][0m [38;2;113;113;122m//[0m [1;38;2;250;250;250msummary[0m
[38;2;63;63;70m--------------------------------------------------------------------------------[0m
[38;2;212;212;216mThe [38;2;52;211;153m`_slide_link_url`[38;2;212;212;216m post-meta of the [38;2;52;211;153m`slides`[38;2;212;212;216m custom post type is saved using[0m
[38;2;212;212;216monly [38;2;52;211;153m`[1;38;2;248;113;113mstrip_tags[38;2;212;212;216m()`[38;2;212;212;216m and later echoed into the admin "Slides" list-table (the[0m
[38;2;212;212;216mLink column) with no output escaping. An authenticated Editor can store an[0m
[38;2;212;212;216mattribute-breakout event handler with no angle brackets that survives[0m
[38;2;212;212;216m[38;2;52;211;153m`[1;38;2;248;113;113mstrip_tags[38;2;212;212;216m()`[38;2;212;212;216m and executes arbitrary JavaScript in the browser of any user —[0m
[38;2;212;212;216mincluding an Administrator — who opens the Slides list screen.[0m
[38;2;63;63;70m--------------------------------------------------------------------------------[0m
[1;38;2;52;211;153m[02][0m [38;2;113;113;122m//[0m [1;38;2;250;250;250mvulnerable code (flexslider-hg.php)[0m
[38;2;63;63;70m--------------------------------------------------------------------------------[0m
[38;2;212;212;216mSave sink (line 346):[0m
[38;2;52;211;153m update_post_meta( $post_id, '_slide_link_url', strip_tags( $_POST['slide_link_url'] ) );[0m
[38;2;212;212;216mRender sink (line 419, hooked on manage_slides_posts_custom_column):[0m
[38;2;52;211;153m if ( $column == 'link' )[0m
[38;2;52;211;153m echo ''[0m
[38;2;52;211;153m . get_post_meta( $post->ID, "_slide_link_url", true ) . '';[0m
[38;2;212;212;216mSecondary vector:[0m
[38;2;212;212;216m[38;2;52;211;153m`_style`[38;2;212;212;216m / [38;2;52;211;153m`_corners`[38;2;212;212;216m meta on [38;2;52;211;153m`sliders`[38;2;212;212;216m CPT (lines 384–385) echoed unescaped into[0m
[38;2;212;212;216ma [38;2;52;211;153m`class`[38;2;212;212;216m attribute on the public front end (line 214).[0m
[38;2;63;63;70m--------------------------------------------------------------------------------[0m
[1;38;2;52;211;153m[03][0m [38;2;113;113;122m//[0m [1;38;2;250;250;250mproof of concept[0m
[38;2;63;63;70m--------------------------------------------------------------------------------[0m
[1;38;2;52;211;153m1. [0m[38;2;212;212;216mLog in as Editor. Open Slides -> Add New.[0m
[1;38;2;52;211;153m2. [0m[38;2;212;212;216mIn the Link URL metabox, enter:[0m
[38;2;212;212;216m https://x" onmouseover="alert(document.cookie)" data-x="[0m
[1;38;2;52;211;153m3. [0m[38;2;212;212;216mPublish slide.[0m
[1;38;2;52;211;153m4. [0m[38;2;212;212;216mAs Administrator, open /wp-admin/edit.php?post_type=slides.[0m
[38;2;212;212;216m Link column renders:[0m
[38;2;212;212;216m ...[0m
[1;38;2;52;211;153m5. [0m[38;2;212;212;216mHovering link executes payload in Administrator context.[0m
[38;2;63;63;70m--------------------------------------------------------------------------------[0m
[1;38;2;52;211;153m[04][0m [38;2;113;113;122m//[0m [1;38;2;250;250;250mremediation[0m
[38;2;63;63;70m--------------------------------------------------------------------------------[0m
[38;2;113;113;122m- Output:[0m [1;38;2;250;250;250mesc_url() on href, esc_html() on link text, esc_attr() on classes.[0m
[38;2;113;113;122m- Input:[0m [1;38;2;250;250;250msanitize_url() / esc_url_raw() on save instead of strip_tags().[0m
[38;2;63;63;70m================================================================================[0m