Skip to content

Can user execute update/delete XSS in query? #199

Answered by sanikolaev
d47081 asked this question in Q&A
Discussion options

You must be logged in to vote

$index->search() doesn't use the /sql endpoint (https://manual.manticoresearch.com/Connecting_to_the_server/HTTP#/sql), so it's unlikely there can be an injection which would let you execute DELETE with a specific query. Even if search() used /sql, /sql can only run searches, you'd have to use /sql?mode=raw for everything else (https://manual.manticoresearch.com/Connecting_to_the_server/HTTP#/sql?mode=raw

You can read more about the sql() php method here https://github.com/manticoresoftware/manticoresearch-php/blob/abef209233f2acf03a9e1d3f2ba313cbf85ee0a9/docs/sql.md#sql

as understand, access permissions like in MySQL not implemented in manticore?

Correct.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@d47081
Comment options

Answer selected by d47081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants