SiYuan: Direct SQL Query API accessible to Reader-level users enables unauthorized database access
Summary
SiYuan: Direct SQL Query API accessible to Reader-level users enables unauthorized database access
Original description
The description as published by the source.
SiYuan is a personal knowledge management system. Prior to version 3.6.0, the /api/query/sql lets a user run sql directly, but it only checks basic auth, not admin rights, any logged-in user, even readers, can run any sql query on the database. This issue has been patched in version 3.6.0.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov