Skip to content

Comments

Fix Information Disclosure#1580

Draft
Zachary-Squires wants to merge 17 commits intoOpenEnergyDashboard:developmentfrom
Zachary-Squires:issue-14
Draft

Fix Information Disclosure#1580
Zachary-Squires wants to merge 17 commits intoOpenEnergyDashboard:developmentfrom
Zachary-Squires:issue-14

Conversation

@Zachary-Squires
Copy link
Contributor

Description

Changes www and app.js to improve production security by preventing internal error details from being exposed to users. Error responses now return generic messages instead of stack traces or system information, while full details are still logged internally for debugging. The update also removes identifying headers and adds safeguards to properly handle unexpected failures, reducing the risk of sensitive information being disclosed.

Developed and implemented by:
Zachary Squires - https://github.com/Zachary-Squires

Fixes Pentest Issue #14

Type of change

(Check the ones that apply by placing an "x" instead of the space in the [ ] so it becomes [x])

  • Note merging this changes the database configuration.
  • This change requires a documentation update

Checklist

  • I have followed the OED pull request ideas
  • I have removed text in ( ) from the issue request
  • You acknowledge that every person contributing to this work has signed the OED Contributing License Agreement and each author is listed in the Description section.

Limitations

These changes mitigate information disclosure through application error handling but do not eliminate all potential exposure risks. Proper environment configuration and secure log management are still required to maintain production security.

Zachary-Squires and others added 17 commits November 11, 2025 13:24
Accidentally pushed with OED_PRODUCTION set to yes
Added:
1. Banners for the make sure to change this value notifications, also added a notification for the token secret.
2. Fixed spelling error.
3. Added spaces to comments.
4. A variable that checks what the installation type is at the start and is used for all checks.
Added comments in docker-compose.yml to alert users as to the fact passwords are only drawn from this file once. Added something to the .env file to show the code that the password has already been generated. Changed a redundant if statement to an else.
Changes to address feedback on 1/19, added/edited comments, changed changePass.js to changePostgresPass.js
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