Views
No views yet
1docker pull ghcr.io/iq2i/ai-code-review:latest
2
3# Review your codebase
4docker run --rm -v $(pwd):/workspace ghcr.io/iq2i/ai-code-review:latest /workspace/src1# Download the model
2wget https://huggingface.co/iq2i/ai-code-review/resolve/main/model-Q4_K_M.gguf
3
4# Run inference
5./llama-cli -m model-Q4_K_M.gguf -p "Review this code: ..."1from llama_cpp import Llama
2
3llm = Llama(model_path="model-Q4_K_M.gguf")
4output = llm("Review this code: ...", max_tokens=512)
5print(output)**SQL injection vulnerability**
User input is concatenated directly into a raw SQL query without parameterization or escaping.
Impact: An attacker can execute arbitrary SQL commands, potentially dumping the entire database, deleting data, or escalating privileges. For example: keyword=' OR '1'='1' -- would return all products.
Suggestion:
Use parameter binding: DB::select("SELECT * FROM products WHERE name LIKE ?", ['%' . $keyword . '%']) or better, use Eloquent: Product::where('name', 'like', '%' . $keyword . '%')->get()1@software{ai_code_review,
2 title = {AI Code Review Model},
3 author = {IQ2i Team},
4 year = {2025},
5 url = {https://github.com/iq2i/ai-code-review}
6}