Engineering Lab

Eduvos ITDTA4 / 2026

Two request guards at the web boundary

Study two web-boundary guards: request-method rejection and SQL-pattern filtering, with clear limits on what a WAF rule can protect.

ModSecurity configurationWAFRequest validation

RETAINED CONFIGURATION / NEW EXPLANATORY DIAGRAM

  1. 01

    HTTP request

    Method, URI, headers and argument fields

  2. 02

    Phase 1 / method guard

    The retained TRACE rule denies matching requests with HTTP 403.

  3. 03

    Phase 2 / pattern guard

    A case-insensitive rule checks selected SQL-like markers and denies matches with HTTP 403.

  4. 04

    Remaining rules / upstream

    The rest of the rule set, gateway and services were not recovered.

Two configuration rules are evidence of request guards, not a verified secure microservices deployment. Regex filtering alone does not establish comprehensive SQL-injection protection.

ENGINEERING PERSPECTIVE

Inside the work

Study a narrow web boundary control and its limits. Request filtering complements, but cannot replace, secure query construction and application-level authorization.

ModSecurity configuration
Two retained deny/status:403/log rules target TRACE and SQL-like markers.
Request fields / phases
Phase 1 examines the method; phase 2 inspects selected request arguments, names, headers and URI.
STEP 1 / 3

Inspect the method

The phase-1 rule rejects TRACE requests.

Source-derived walkthrough

How it works

One phase1 rule rejects TRACE. A second phase2 rule examines arguments, argument names, headers and URI for a case-insensitive set of SQL-like markers; both use deny,status:403,log.

Results & recovery

  • One 412-byte configuration file with two explicit rules was recovered.
  • The original rule IDs and phases establish the narrow request-filtering flow shown above.

Technical limitations

No Docker Compose, Flask/auth services, PostgreSQL schema, TLS setup, container-hardening configuration or original end-to-end test evidence was found. No complete secure stack or runtime WAF test is claimed. Pattern matching alone is not robust SQL-injection prevention.

What I would improve now

Recover the full lab source and permission evidence, validate rules in a disposable local WAF and retain false-positive/regression tests. Enforce parameterised database queries independently of request filtering.

NEXT IN THE ARCHIVEDesigning boundaries between services