Edited
Oct 5, 2025 10:55 PM
Tags
pwnctfprogrammingweb
Intro
I decided to get back into more hardcore security research, and try to augment it with AI. After some research, I think learning CodeQL and then enhancing it with AI support might yield good results. Thus, this post will go over my learning process for it. These are just notes, and might not make sense, so feel free to reach out to me if you have questions that I might be able to answer.
Test Case
package services
import (
"Desires/utils"
"bytes"
"crypto/sha256"
"encoding/json"
"fmt"
"log"
"net/http"
"os"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/google/uuid"
"github.com/gofiber/fiber/v2"
"github.com/mholt/archiver/v3"
)import go
from Function f
select f, f.getQualifiedNamed()graph TD
A["Input: c *fiber.Ctx"] --> B["c.FormFile('archive')"]
B --> C["file, err := c.FormFile('archive')"]
C --> D["c.SaveFile(file, filepath.Join('./uploads', filename))"]