Better HN
topnewbestaskshowjobs
Log inSign up

AlbertQQA

4 karma · joined Apr 14, 2017 (9y ago) · 2 submissions

Submissions

comment 9y ago · link · parent

All I'm seeing is a missing db_like which means a user can search for "%foo%bar%" instead of just "foo%bar". This is not a SQL-injection, nor a relevant issue.

The problem is in that function though. It is missing a condition for publication status. Titles of unpublished nodes should render for some users, but not all.

comment 9y ago · link · parent

> Took hardly any time to see the SQL injection.

You sure you saw it correctly? Concatenation of hardcoded variants (poor-mans query builder) doesn't make an injection.