GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zig-utils/zig-injection: A high-performance, allocation-conscious libinjection-compatible SQLi and XSS detection library for Zig

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
include
include
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
THIRD_PARTY_NOTICES.md
THIRD_PARTY_NOTICES.md
 
 
build.zig
build.zig
 
 
build.zig.zon
build.zig.zon
 
 
deps.yaml
deps.yaml
 
 
package.json
package.json
 
 
pantry.lock
pantry.lock
 
 

Repository files navigation

zig-injection

zig-injection is a native Zig SQL injection and XSS detector targeting behavioral compatibility with libinjection 4. It is designed for bounded, allocation-free request inspection and exposes both idiomatic Zig and stable C interfaces.

The project is under active development. Compatibility is measured against a pinned upstream corpus; it is not inferred from API similarity.

Requirements

  • Zig 0.17-dev, resolved through Pantry
  • No Git submodules
pantry install
zig build test

Native API

Reusable state keeps inspection allocation-free:

const injection = @import("injection");

var state: injection.sqli.State = .{};
const result = injection.sqli.detect("1 UNION SELECT secret", &state);
if (result.is_sqli) {
    // result.reason and result.fingerprintBytes() are valid immediately.
}

Input remains caller-owned. Token offsets refer to byte positions in that input, and fixed-capacity exhaustion is reported through Result.truncated. The API is usable now, but full libinjection 4 compatibility is gated on the pinned differential corpus and the INJECT-04 folding/fingerprint work.

Roadmap

Implementation and compatibility work is tracked by the INJECT roadmap.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discussions on GitHub

For casual chit-chat with others using this package:

Join the zig-utils Discord Server

License

MIT. Upstream test fixtures retain their original notices and licenses.

About

A high-performance, allocation-conscious libinjection-compatible SQLi and XSS detection library for Zig

Topics

detectionlibinjectionsql-injectionsqlixsszig

Resources

Readme
MIT license

Security policy

Security policy
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.