carlos@cesaints: ~/projects/business-logic-review.md — zsh

Command: cat projects/business-logic-review.md

projects/business-logic-review.md · 807 B

A security review of business logic in my own system

I led a review of my own code, focused on authorization, operation integrity and data protection. The method combines testable hypotheses, independent review and regression tests in a local environment. This case presents the process and its limitations.

Role
Author of the process and owner of the decisions
Period
Aug 2026 – Sep 2026
What I did

Me: Threat model, review design, architecture decisions and final approval.

Private project, described without identifying the client, product or company.

Diagram

From hypothesis to regression

The local review raises hypotheses, checks them against evidence and submits fixes to independent evaluation. Regression tests preserve the expected behavior.

Context

I reviewed my own code between August and September 2026. The investigation ran locally with synthetic data. This presentation describes broad areas of the work; detailed reports remain private.

How I ran the review

I separated hypotheses from confirmed observations, requested independent evaluation and linked fixes to regression tests. Decisions prioritized access rules, operation consistency and data minimization.

Incomplete reviews were recorded as unavailable. Approval of a stage depended on evidence for that scope and did not replace validation of other stages.

Limits

The cited records are from September 2026 and were not re-run during this editorial review. A review of my own code is not a security certification and does not demonstrate the absence of vulnerabilities.

Constraints

  • Review restricted to my own code and a local environment with synthetic data.
  • Hypotheses need evidence before they guide a fix.
  • Tests must preserve their assertions and the review scope.

Security report

Scope and authorization

My own system, reviewed locally with synthetic data and no testing against production.

Threat model

  • Protection of accounts, personal data and access rules.
  • Integrity of repeated operations and state transitions.
  • Untrusted inputs in a web application.

Method

  1. Security and business-logic review against explicit criteria.
  2. Independent refutation of hypotheses and classification of available evidence.
  3. Fixes accompanied by review and regression tests.

Flaw classes found and fixed

CWEFlaw classReproduced effect
CWE-362Operation consistencyReview of guarantees under concurrent execution.
CWE-269Authorization boundariesReview of the relationship between identity and permissions.
CWE-359Data minimizationReview of the information returned by the application.
CWE-20Input validationReview of contracts at system boundaries.

Fixes

  • Consolidate critical rules at reviewable points in the application.
  • Use consistency guarantees appropriate to each operation.
  • Restrict data and permissions to what is necessary.

Validation

  • Regression tests linked to hypotheses confirmed in the original review.
  • Local concurrency and authorization checks with synthetic data.
  • Automated checks incorporated into the delivery process.

Stack and why

PostgreSQL
Consistency and isolation checks in a local environment.
Vitest
Regression and integration tests.
Playwright
Web-flow checks.
GitHub Actions
Automated delivery checks.

Results

  • Project reports record fixes accompanied by regression tests.

    audited private repositoryProject review reports(Project documentation (not re-run during this editorial review), Sep 2026)
  • The audited repository contains dependency and regression checks in CI.

    audited private repositoryWorkflow structure(Previous audit of the private repository, Sep 2026)

Evidence

  • audited private repositoryAudited private repository(Previous audit of the private repository, Sep 2026)