漏洞描述
YesWiki 4.6.0 before 4.7.0 and 5.0.0-alpha1 before 5.0.0-alpha4 places field names from the public `searchfields`/`query` parameters of the Bazar entries search API inside backtick-quoted SQL identifiers escaped only with mysqli_real_escape_string, which does not escape backticks. An unauthenticated attacker can break out of the identifier and inject subqueries to read arbitrary data such as user password hashes. The template injects a backtick OR-TRUE fragment as a field name: on vulnerable builds the WHERE clause becomes always-true and the API returns entries, while patched builds (which double the backtick) treat it as a missing column and return an error.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。