T09 · Insecure Skill Coding Practices
- Location
SKILL.md:184- Finding
Known Weak Default Administrator Credentials
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 184-189
Vulnerability Type: Hardcoded weak default credentials
Risk Level: MediumVulnerable code snippet:
markdown ## Default Credentials After `shopyo initialise`: - URL: http://localhost:5000 - Login: http://localhost:5000/auth/login - Email: `admin@domain.com` - Password: `pass`Technical Analysis
The documented initialization procedure creates or exposes an administrator account using the publicly known credentials
admin@domain.comandpass. The password is trivial, shared across initialized installations, and disclosed directly in the skill documentation.The documentation does not state that initialization generates unique credentials, forces a password change, disables the default account, or prevents the application from being exposed before credential rotation. Although the listed URL uses localhost, the account becomes exploitable if the application is bound to an externally accessible interface, deployed without changing the credentials, exposed through a reverse proxy, or made reachable through port forwarding.
Attack Path
- A user creates and initializes a Shopyo application with
shopyo initialise. - The initialized application retains the documented default administrator account.
- The application is made reachable by an untrusted party, intentionally or accidentally.
- An attacker visits
/auth/login. - The attacker authenticates with
admin@domain.comandpass. - The attacker gains whatever administrative capabilities the application assigns to that default account.
Impact Assessment
Successful exploitation provides authenticated administrator-level access within the affected Shopyo application. The precise capabilities depend on the generated application's authorization model, but may include access to administrative pages, application data, configuration functions, and privileged ...[truncated 237 chars]
- A user creates and initializes a Shopyo application with
- Remediation
View remediation
Remediation Suggestions
- Remove the fixed
admin@domain.com/passcredential pair from the initialization workflow. - Generate a cryptographically random, unique initial password for each installation and display it only once through an appropriate secure channel.
- Alternatively, require the operator to provide an administrator email and strong password interactively or through a protected secret-management mechanism.
- Force a password change during the administrator's first successful login.
- Prevent startup in production profiles when known default credentials are detected.
- Store passwords only as hashes produced by a modern password-hashing function such as Argon2id, scrypt, or bcrypt with appropriate parameters.
- Update the documentation to warn users not to expose the service before rotating bootstrap credentials.
- Consider disabling or expiring the bootstrap account automatically after initial setup.
- Add automated tests or deployment checks that reject weak and documented default passwords.
- Remove the fixed
