Skip to content

SEC: Weak Password Policy — no complexity requirements #189

Closed
AndriiPasternak31/trinity
#6

Description

@vybe

Pentest Finding 3.4.1 — Informational

Location: POST /api/setup/admin-password

Impact

The admin password setup only enforces a minimum length of 8 characters with no complexity requirements. Passwords like adminadmin (all lowercase, no numbers or special characters) are accepted. This makes administrative accounts vulnerable to dictionary and guessing attacks.

Steps to Reproduce

# Rejected (too short)
POST /api/setup/admin-password
{"password":"admin","confirm_password":"admin"}
# 400: "Password must be at least 8 characters"

# Accepted (no complexity)
POST /api/setup/admin-password
{"password":"adminadmin","confirm_password":"adminadmin"}
# 200: {"success":true}

Remediation

Implement a strong password policy requiring:

  • Minimum 12 characters
  • Mix of uppercase, lowercase, numbers, and special characters
  • Check against common password dictionaries

References

Source: UnderDefense Web Pentest Report, March 2026

Metadata

Metadata

Assignees

No one assigned

    Labels

    pentestpriority-p3securityseverity-info

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions