# sqlright **Repository Path**: lyb-coder/sqlright ## Basic Information - **Project Name**: sqlright - **Description**: sqlright 镜像 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-10-23 - **Last Updated**: 2022-10-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SQLRight: A General Platform to Test DBMS Logical Bugs ## Overview `SQLRight` combines the coverage-based guidance, validity-oriented mutations and oracles to detect logical bugs for DBMS systems. `SQLRight` first mutates existing queries cooperatively. It inserts a set of oracle-required statements, and applies our validity-oriented mutations to improve the validity rate. Then, it sends the query to the oracle to create functionally equivalent query counterparts. `SQLRight` feeds all generated queries to the DBMS, and collects the execution results and the coverage information. After that, `SQLRight` invokes the oracle to compare the results of different queries to identify logical bugs. At last, it inserts the coverage-improving queries into the queue for future mutations. For more details of `SQLRight`, plese check our [paper published on Usenix Security 2022](https://huhong789.github.io/papers/liang:sqlright.pdf). Currently supported DBMS: 1. SQLite3 2. PostgreSQL 3. MySQL The overview of `SQLRight` is illustrated by the diagram below.

The overview of SQLRight

## Use SQLRight - [Environment Setup](PREREQUISITE.md) - [Get Docker Images](INSTALL.md) - [Run Fuzzing](RUN.md) ## Add New Oracles - [Develop New Oracles](DEVELOPMENT.md) ## Authors - Yu Liang yuliang@psu.edu - Song Liu songliu@psu.edu - Hong Hu honghu@psu.edu ## Publications ```bib Detecting Logical Bugs of DBMS with Coverage-based Guidance @inproceedings{liang:sqlright, title = {{Detecting Logical Bugs of DBMS with Coverage-based Guidance}}, author = {Yu Liang and Song Liu and Hong Hu}, booktitle = {Proceedings of the 31st USENIX Security Symposium (USENIX 2022)}, month = {aug}, year = {2022}, address = {Boston, MA}, } ```