Skip to content

Security: Insecure SSL Configuration in Database Connection#883

Open
tuanaiseo wants to merge 1 commit into
XiaomiMiMo:mainfrom
tuanaiseo:contribai/fix/security/insecure-ssl-configuration-in-database-c
Open

Security: Insecure SSL Configuration in Database Connection#883
tuanaiseo wants to merge 1 commit into
XiaomiMiMo:mainfrom
tuanaiseo:contribai/fix/security/insecure-ssl-configuration-in-database-c

Conversation

@tuanaiseo

Copy link
Copy Markdown

Problem

The drizzle.config.ts in console/core sets rejectUnauthorized: false in the SSL configuration. This disables SSL certificate validation, making the application vulnerable to man-in-the-middle attacks when connecting to the MySQL database.

Severity: high
File: packages/console/core/drizzle.config.ts

Solution

Remove rejectUnauthorized: false or make it conditional for development only. Use proper CA certificates for production environments.

Changes

  • packages/console/core/drizzle.config.ts (modified)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

…tion

The drizzle.config.ts in console/core sets `rejectUnauthorized: false` in the SSL configuration. This disables SSL certificate validation, making the application vulnerable to man-in-the-middle attacks when connecting to the MySQL database.

Affected files: drizzle.config.ts

Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
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.

1 participant