Open albgus opened 4 weeks ago
@ashwin-pc Could you take a look at this issue?
I am having trouble reproducing this as I am unable to get \x03
in to a doc. OSD and JS client convert that to \u0003
and curl just fails.
I am not giving up though. If you have any tips on how to get it in, plz share.
Also, when you say "search", do you mean just opening it in Discover or anything more?
Thanks for reporting this issue. After analyzing the impact, here's my assessment:
Impact Analysis:
\x03
) characters from external HTTP requestsImportant Note on Client Safety:
Multiple OpenSearch clients handle these characters safely: (JS, python) JS client automatically converts \x03
to \u0003
. need to look to see which clients do not.
Suggested Priority: MEDIUM
Let me know if any of my assumptions used in my analysis here are incorrect
Describe the bug
Trying to search logs with certain illegal characters causes a Search Error. This means that logs submitted by malicious actors or exploit hunters may cause a kind of Denial of Service of OpenSearch dashboards.
The error shown is this:
The offending message is this:
Specifically it seems to be
\x03
(ASCII End of text) that triggers the error (column 410489 is exactly at the start of the escape sequence).Expected behavior OpenSearch dashboards should be able to safely handling logs, even for sources that may be connected to the internet and receive malicious data.
OpenSearch Version 2.17.1
Dashboards Version 2.17.1
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):