Method and apparatus for providing query-level security in a database system
Abstract
One embodiment of the present invention provides a system that facilitates using query signatures to provide security for a database system. During operation, the database system receives a query. Next, the system parses the query to determine a signature for the query. This signature specifies a structure based on operators for the query and is independent of the value of literals in the query. The system then determines if the signature can be found in a signature cache which contains valid query signatures. If so, the system processes the query.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 13.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for using query signatures to detect structured query language (SQL) injection, comprising: initializing a signature cache, wherein initializing the signature cache involves: trapping database queries in a controlled environment, parsing the database queries to produce a set of valid signatures, wherein parsing the database queries involves retaining SQL keywords contained in each query, and removing field names and corresponding values in each query, to determine the signature for each query; wherein the signature for a query contains the text of SQL keywords and operands without any
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (13 of 13 total)
References Cited — Backward Prior Art (8)
Non-Patent Literature (5)
- ASP Alliance, http://www.aspalliance.com, Dec. 29, 2003.
- Chris Anley: "Advanced SQL Injection In SQL Server Applications" NGSSOFTWARE Insight Security Research (NISR) Publication, "Online! 2002, pp. 1-25, XP002336188 Retrieved from the Internet" URL:http://www.nextgenss.com/papers/advanced-sql-injection.pdf> 'retrieved on Jul. 14, 2005.
- Daniel Lutz: "Vertiedigung gegen SQL-Injection-Angriffe" Semesterarbeit Department Für Informatik Eidgenössische Technische Hochschule Zürich, CH Retrieved from the Internet URL:http://www.infsec.ethz.ch/people/psevinc/sqliadReport/pdf> 'retrieved on Jul. 14, 2005.
- PBDR, http://pbdr.com/vbtips/asp/ReplaceSQL.htm, Jun. 24, 2003 Waybackmachine, http://web.archive.org/web/20030624033542/http://www.pbdr.com/vbtips/asp/ReplaceSQL.htm.
- Publication: "Access control in a relational data base management system by query modification" by Stonebraker and Wong, Proc.ACM Ann. Conf. San Diego, Ca, Nov. 1974, pp. 180-187.