Lucene search

K
wpvulndbTaurus OmarWPVDB-ID:1D9D5516-F1C3-4134-B6BF-7F2F890533C4
HistoryMar 29, 2022 - 12:00 a.m.

LayerSlider < 7.1.2 - Admin+ Stored Cross-Site Scripting

2022-03-2900:00:00
Taurus Omar
wpscan.com
28

0.001 Low

EPSS

Percentile

25.0%

The plugin does not sanitise and escape Project’s slug before outputting it back in various place, which could allow high privilege users such as admin to perform Cross-Site Scripting attacks even when the unfiltered_html is disallowed

PoC

Proof of Concept (PoC): ======================= 1.) The stored XSS is done in the template slug of any slider, a javascript payload is added to the SLUG input, which stores the malicious script executing the payload during the reopening of the template or when accessing different functions of the slider. 2.) The vulnerability also allows loading a configuration file (settings.json) with the malicious payload allowing it to be executed within the Slider edition. ## POC1: via (slug slider) 1.) Add new project & Put Name 2.) Create Blank Project 3.) Project Settings & Tab Publish 4.) Add malicious code in the SLUG: β€œ> 5.) Exit 6.) Save Project 7.) XSS will trigger when accessing the project again for example (there seem to be other place when its triggered as well, like in the Project’s settings) ## POC2 via (file,json) 1.) Add new post & Create Blank Project 2.) Import Projects 3.) Load file.json {β€œproperties”:{β€œsliderVersion”:β€œ7.x”,β€œtitle”:β€œVia Json”,β€œslug”:”">'>β€œ,β€œstatus”:true,β€œschedule_start”:β€β€œ,β€œschedule_end”:β€β€œ,β€œtype”:β€œresponsive”,β€œpopupFitWidth”:β€β€œ,β€œpopupFitHeight”:β€β€œ,β€œpopupPositionHorizontal”:β€œcenter”,β€œpopupPositionVertical”:β€œmiddle”,β€œpopupWidth”:β€œ640”,β€œpopupHeight”:β€œ360”,β€œpopupDistanceTop”:β€œ10”,β€œpopupDistanceRight”:β€œ10”,β€œpopupDistanceBottom”:β€œ10”,β€œpopupDistanceLeft”:β€œ10”,β€œpopupShowOnTimeout”:β€β€œ,β€œpopupShowOnIdle”:β€β€œ,β€œpopupShowOnScroll”:β€β€œ,β€œpopupShowOnClick”:β€β€œ,β€œpopupCloseOnTimeout”:β€β€œ,β€œpopupCloseOnScroll”:β€β€œ,β€œpopup_repeat”:true,β€œpopup_repeat_days”:β€β€œ,β€œpopupShowOnce”:true,β€œpopup_pages_custom”:β€β€œ,β€œpopup_pages_exclude”:β€β€œ,β€œpopup_roles_administrator”:true,β€œpopup_roles_editor”:true,β€œpopup_roles_author”:true,β€œpopup_roles_contributor”:true,β€œpopup_roles_subscriber”:true,β€œpopup_roles_customer”:true,β€œpopup_roles_visitor”:true,β€œpopupTransitionIn”:β€œfade”,β€œpopupDurationIn”:β€œ1000”,β€œpopupDelayIn”:β€œ200”,β€œpopupTransitionOut”:β€œfade”,β€œpopupDurationOut”:β€œ500”,β€œpopupResetOnClose”:β€œslide”,β€œpopupShowCloseButton”:true,β€œpopupCloseButtonStyle”:β€β€œ,β€œpopupOverlayClickToClose”:true,β€œpopupOverlayBackground”:β€œrgba(0,0,0,.85)”,β€œpopupOverlayTransitionIn”:β€œfade”,β€œpopupOverlayDurationIn”:β€œ400”,β€œpopupOverlayTransitionOut”:β€œfade”,β€œpopupOverlayDurationOut”:β€œ400”,β€œwidth”:1280,β€œheight”:720,β€œmaxwidth”:β€β€œ,β€œresponsiveunder”:β€β€œ,β€œfullSizeMode”:β€œnormal”,β€œfitScreenWidth”:true,β€œallowFullscreen”:true,β€œmaxRatio”:β€β€œ,β€œinsertMethod”:β€œprependTo”,β€œinsertSelector”:β€β€œ,β€œclipSlideTransition”:β€œdisabled”,β€œpreventSliderClip”:true,β€œhideunder”:β€β€œ,β€œhideover”:β€β€œ,β€œslideOnSwipe”:true,β€œoptimizeForMobile”:true,β€œfirstlayer”:β€œ1”,β€œautostart”:true,β€œstartinviewport”:true,β€œpauseonhover”:β€œdisabled”,β€œkeybnav”:true,β€œtouchnav”:true,β€œplayByScrollSpeed”:β€œ1”,β€œloops”:β€œ0”,β€œforceloopnum”:true,β€œskin”:β€œv6”,β€œsliderfadeinduration”:β€œ350”,β€œsliderclass”:β€β€œ,β€œsliderstyle”:β€œmargin-bottom: 0px;”,β€œbackgroundcolor”:β€β€œ,β€œglobalBGRepeat”:β€œno-repeat”,β€œglobalBGAttachment”:β€œscroll”,β€œglobalBGPosition”:β€œ50% 50%”,β€œglobalBGSize”:β€œauto”,β€œnavprevnext”:true,β€œnavstartstop”:true,β€œnavbuttons”:true,β€œhoverprevnext”:true,β€œcircletimer”:true,β€œthumb_nav”:β€œhover”,β€œthumb_container_width”:β€œ60%”,β€œthumb_width”:β€œ100”,β€œthumb_height”:β€œ60”,β€œthumb_active_opacity”:β€œ35”,β€œthumb_inactive_opacity”:β€œ100”,β€œautoplayvideos”:true,β€œrememberUnmuteState”:true,β€œautopauseslideshow”:β€œauto”,β€œyoutubepreview”:β€œmaxresdefault.jpg”,β€œslideBGSize”:β€œcover”,β€œslideBGPosition”:β€œ50% 50%”,β€œparallaxSensitivity”:β€œ10”,β€œparallaxCenterLayers”:β€œcenter”,β€œparallaxCenterDegree”:β€œ40”,β€œforceLayersOutDuration”:β€œ750”,β€œuseSrcset”:β€œinherit”,β€œenhancedLazyLoad”:β€œinherit”,β€œpreferBlendMode”:β€œdisabled”,β€œcreatedWith”:β€œ7.0.7”},β€œlayers”:[{β€œproperties”:{β€œpost_offset”:-1,β€œ3d_transitions”:β€β€œ,β€œ2d_transitions”:β€β€œ,β€œcustom_3d_transitions”:β€β€œ,β€œcustom_2d_transitions”:β€β€œ,β€œbgcolor”:β€β€œ,β€œbgposition”:β€œinherit”,β€œbgsize”:β€œinherit”,β€œslidedelay”:β€β€œ,β€œtimeshift”:0,β€œtransitionduration”:β€β€œ,β€œkenburnszoom”:β€œdisabled”,β€œkenburnsscale”:1.2,β€œkenburnsrotate”:β€β€œ,β€œglobalhover”:false,β€œparallaxtype”:β€œ2d”,β€œparallaxevent”:β€œcursor”,β€œparallaxaxis”:β€œboth”,β€œparallaxdistance”:10,β€œparallaxrotate”:10,β€œparallaxdurationmove”:1500,β€œparallaxdurationleave”:1200,β€œparallaxtransformorigin”:β€œ50% 50% 0”,β€œparallaxtransformperspective”:500,β€œlayer_link”:β€β€œ,β€œlinkId”:β€β€œ,β€œlinkName”:β€β€œ,β€œlinkType”:β€β€œ,β€œlayer_link_target”:”_self",β€œlayer_link_type”:β€œover”,β€œdeeplink”:β€œβ€,β€œoverflow”:false,β€œcustomProperties”:[],β€œpost_content”:false,β€œschedule_start”:β€œβ€,β€œschedule_end”:β€œβ€},β€œsublayers”:[],β€œmeta”:{β€œundoStackIndex”:-1},β€œhistory”:[]}]}

CPENameOperatorVersion
layersliderlt7.1.2

0.001 Low

EPSS

Percentile

25.0%

Related for WPVDB-ID:1D9D5516-F1C3-4134-B6BF-7F2F890533C4