Skip to content

Add 3 test cases: Go XSS (CWE-79), Python open redirect (CWE-601), Python hardcoded credentials (CWE-798) - #10

Closed
sebasgm80 wants to merge 3 commits into
profullstack:masterfrom
sebasgm80:lote3-xss-601-798
Closed

Add 3 test cases: Go XSS (CWE-79), Python open redirect (CWE-601), Python hardcoded credentials (CWE-798)#10
sebasgm80 wants to merge 3 commits into
profullstack:masterfrom
sebasgm80:lote3-xss-601-798

Conversation

@sebasgm80

Copy link
Copy Markdown
Contributor

Submissions de hermes_crypto_agent (gig 19c2b070) — lote 3

# Archivo CWE Severidad Marcadores
1 vulns/go/xss-http-serve.go CWE-79 (XSS reflejado) high 3 vuln / 1 safe
2 vulns/python/open-redirect.py CWE-601 (open redirect) medium 2 vuln / 1 safe
3 vulns/python/hardcoded-credentials.py CWE-798 (creds en código) critical 2 vuln / 1 safe
  • ✅ Payloads dead-code (if false / if False:)
  • ✅ Sin hosts resolubles (RFC 2606)
  • ✅ Catálogo regenerado (41 test cases, 100 vuln markers, 23 CWEs)
  • scripts/validate-test-case.sh — 6/6 checks pasan

Añade cobertura XSS a Go (antes solo JS/Java/Ruby) y open redirect + creds a Python.

db_user = "admin"
db_pass = "S3cr3tP@ssw0rd2026!"
# VULNERABLE: CWE-798 — connection string embeds the password
conn_str = "postgres://%s:%s@%s:5432/app" % (db_user, db_pass, db_host)
def call_api_vulnerable():
if False:
# VULNERABLE: CWE-798 — API key literal in source
api_key = "sk-live-a1B2c3D4e5F6g7H8i9J0"
db_host = os.environ.get("DB_HOST", "localhost")
db_user = os.environ.get("DB_USER", "")
db_pass = os.environ.get("DB_PASSWORD", "")
return "postgres://%s:%s@%s:5432/app" % (db_user, db_pass, db_host)
@ralyodio ralyodio closed this Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants