YesWiki SQL injection in Bazar entries search
yeswiki
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| YesWiki yeswiki |
|
|
| YesWiki yeswiki |
|
|
Original description
YesWiki 4.6.0 before 4.7.0 and 5.0.0-alpha1 before 5.0.0-alpha4 contains an unauthenticated SQL injection vulnerability in SearchManager::prepareSearchRequest(). Field names from the query and searchfields parameters of the public Bazar entries search API are placed in a backtick-quoted alias escaped only with mysqli_real_escape_string. Attackers can supply a backtick to inject subqueries, reading data such as user password hashes or exhausting database threads with SLEEP().