Josue Arango
All projects

2026 · Application Security & DevSecOps

Application Security Labs: Injection, Secrets and DAST

Python · Playwright · Bandit · Argon2id · HashiCorp Vault · OWASP ZAP

A set of shorter labs, each with a vulnerable and a fixed version and automated proof of the fix: injection flaws, password storage and secrets management, and the limits of automated DAST against an OWASP standard. All run locally with fictitious data.

Technologies

PythonFlaskPlaywrightBanditArgon2idGitleaksTruffleHogHashiCorp VaultPostgreSQLOWASP ZAPOWASP Juice ShopOWASP ASVS 5.0

My role

Sole author of every lab.

Highlights

  • SQL injection, XSS and command injection fixed and proven by 11 of 11 automated tests, including Playwright in a real browser and Bandit on the code
  • Passwords migrated from unsalted MD5 to Argon2id on next login
  • Secrets hunted in git history with Gitleaks and TruffleHog, then moved to HashiCorp Vault, which issues database credentials that expire after 60 seconds
  • OWASP ZAP measured against four OWASP ASVS 5.0 requirements: the scanner caught 1, manual tests with two identities confirmed all 4, including an IDOR in OWASP Juice Shop
  • Triage of real SAST, SCA and DAST results: 20 raw entries consolidated into 14 defects, with duplicates linked, false positives closed and priorities set by context such as CISA's KEV list

Screenshots and diagrams

From a password in the code to HashiCorp Vault: the app asks for a temporary database user that Vault revokes after 60 seconds
From a password in the code to HashiCorp Vault: the app asks for a temporary database user that Vault revokes after 60 seconds
Four OWASP ASVS 5.0 requirements: ZAP's baseline scan saw 1 of 4, the manual tests confirmed all 4
Four OWASP ASVS 5.0 requirements: ZAP's baseline scan saw 1 of 4, the manual tests confirmed all 4
UNION-based SQL injection: the vulnerable version leaks users and hashes, the fixed one returns nothing
UNION-based SQL injection: the vulnerable version leaks users and hashes, the fixed one returns nothing
IDOR in OWASP Juice Shop: changing the basket id shows another user's basket, which the scanner does not report
IDOR in OWASP Juice Shop: changing the basket id shows another user's basket, which the scanner does not report