Critical SQL injection (MySQL)GET /api/invoice?id
1 Found
The id parameter is placed straight into a SQL query. Two requests that differ only in a true or false condition return different invoices, and a delay injected into the query slowed the response by the same amount, three times in a row.
GET /api/invoice?id=1042'+AND+'1'='1 -> 200, invoice #1042 (2,318 bytes) GET /api/invoice?id=1042'+AND+'1'='2 -> 200, empty result (41 bytes) GET /api/invoice?id=1042'+AND+SLEEP(4)-- -> 200 after 4.02 s (baseline 0.11 s)
2 Risk
An attacker can read any table the application database user can read, such as customers, orders and password hashes, and may be able to change data.
3 Fix
- Pass user input to the database as a bound parameter, never by building the SQL string.
- Check that id is a whole number before using it.
- Retest the finding to confirm the fix.
$id = $request->query('id');
$invoice = DB::select("SELECT * FROM invoices WHERE id = $id");
$id = $request->integer('id');
$invoice = DB::select('SELECT * FROM invoices WHERE id = ?', [$id]);
High Reflected cross-site scripting (XSS)GET /search?q
1 Found
The search term is written into the page without escaping. A harmless marker script sent in q ran in a real browser, so this finding is Proven.
GET /search?q=%3Cscript%3Ests_9f3a()%3C%2Fscript%3E -> 200, response contains: <h2>Results for <script>sts_9f3a()</script></h2> -> headless browser: sts_9f3a() executed
2 Risk
A link with a crafted search term runs the attacker's script in a signed-in customer's browser, which can steal their session or act on their behalf.
3 Fix
- Escape output by default: use the template engine's escaped echo.
- In JavaScript, set text with textContent instead of innerHTML.
- Add a Content-Security-Policy as a second line of defence.
<h2>Results for {!! $q !!}</h2>
<h2>Results for {{ $q }}</h2>
High Exposed environment file (.env)GET /.env
1 Found
The application's .env file is publicly downloadable. It contains APP_KEY and DB_PASSWORD entries. SecuriTest records only the names of the secrets it sees, never their values.
GET /.env -> 200 text/plain (1,204 bytes) keys seen: APP_KEY, DB_PASSWORD, MAIL_PASSWORD (values not stored)
2 Risk
Anyone can read the database password and the key that signs sessions, which can lead to a full takeover of the site and its data.
3 Fix
- Serve only the public/ folder as the web root, or block dotfiles in the web server.
- Rotate every secret in the file: database password, APP_KEY and mail password.
- Retest the finding to confirm the file is gone.
root /var/www/shop;
root /var/www/shop/public;
location ~ /\.(?!well-known) {
deny all;
}
Medium Outdated jQuery 1.12.4 with known CVEs/js/vendor/jquery.min.js
1 Found
The site loads jQuery 1.12.4, which has known cross-site scripting vulnerabilities (CVE-2020-11022, CVE-2020-11023). Neither is on the CISA known-exploited list.
GET /js/vendor/jquery.min.js -> 200 banner: /*! jQuery v1.12.4 | (c) jQuery Foundation */ matched: CVE-2020-11022 (CVSS 6.1), CVE-2020-11023 (CVSS 6.1)
2 Risk
Pages that pass untrusted HTML to jQuery methods can be exploited for XSS.
3 Fix
- Update jQuery to 3.7.1 or later and test the pages that use it.
# package.json: "jquery": "1.12.4"
npm install jquery@^3.7.1
Medium Missing security headers (CSP, HSTS)https://shop.example.com/
1 Found
Responses have no Content-Security-Policy and no Strict-Transport-Security header, and X-Frame-Options is not set.
GET / -> 200 Content-Security-Policy: (missing) Strict-Transport-Security: (missing) X-Frame-Options: (missing)
2 Risk
Without these headers, an XSS bug is easier to exploit, the first visit can be downgraded to plain HTTP, and the site can be framed for clickjacking.
3 Fix
- Add the headers in the web server so every response gets them.
- Start Content-Security-Policy in report-only mode, fix what it reports, then enforce it.
server {
listen 443 ssl;
server_name shop.example.com;
server {
listen 443 ssl;
server_name shop.example.com;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header Content-Security-Policy "default-src 'self'; frame-ancestors 'self'" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
Low Session cookie without Secure and SameSiteSet-Cookie: shop_session
1 Found
The session cookie is sent without the Secure and SameSite attributes.
Set-Cookie: shop_session=eyJpdiI6...; path=/; httponly
2 Risk
The cookie can travel over plain HTTP and is sent on cross-site requests, which helps cross-site request forgery.
3 Fix
- Mark the session cookie Secure and SameSite=Lax in the session settings.
'secure' => env('SESSION_SECURE_COOKIE'),
'same_site' => null,
'secure' => true, 'same_site' => 'lax',
Medium Directory listing enabledGET /uploads/
1 Found
The /uploads/ folder listed every uploaded file. After the fix, a one-click retest found the listing gone, so the finding is marked Fixed.
Retest on 2 Dec 2026, 14:02 GET /uploads/ -> 403 Forbidden (was 200 "Index of /uploads")
2 Risk
Visitors could browse and download files that were never linked, such as invoices and exports.
3 Fix
- Turn off auto-indexing for the folder (done).
location /uploads/ {
autoindex on;
}
location /uploads/ {
autoindex off;
}
Every finding links to a one-click retest of the same URL and parameter, and the full report downloads as PDF, Word, Excel or CSV, with a PCI DSS v4.0.1 compliance section.
Get this report for your own site.
Create a free account, verify your domain, and run your first quick check today. Full scans start at $3 a month.