# 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.