Lucene search

K
rubygemsRubySecRUBY:AVO-2024-22191
HistoryJan 15, 2024 - 9:00 p.m.

avo vulnerable to stored cross-site scripting (XSS) in key_value field

2024-01-1521:00:00
RubySec
rubysec.com
4
vulnerability
cross-site scripting
avo v3.2.3
key_value field
javascript code
html code
github
poc
payload
sensitive information
malicious websites

AI Score

6.4

Confidence

High

Summary

A stored cross-site scripting (XSS) vulnerability was found in
the key_value field of Avo v3.2.3. This vulnerability could allow
an attacker to execute arbitrary JavaScript code in the victim’s browser.

Details

The value of the key_value is inserted directly into the HTML code.
In the current version of Avo (possibly also older versions), the
value is not properly sanitized before it is inserted into the HTML code.

This vulnerability can be exploited by an attacker to inject malicious
JavaScript code into the key_value field. When a victim views the page
containing the malicious code, the code will be executed in their browser.

In avo/fields/common/key_value_component.html.erb
the value is taken in lines 38 and49 and seems to be
interpreted directly as html in lines 44 and55.

Impact

This vulnerability could be used to steal sensitive information from
victims that could be used to hijack victims’ accounts or redirect
them to malicious websites.

AI Score

6.4

Confidence

High