-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS Security Patch Fix on files docker-compose.yml and config/application.rb #47
base: development
Are you sure you want to change the base?
CORS Security Patch Fix on files docker-compose.yml and config/application.rb #47
Conversation
Thanks @washyking for conducting tests and also being very diligent! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @epineto - the changes look good to me, well done. To make lasting contributions, please open upstream pull request with these changes against doubtfire-lsm/doubtfire-api, 8.0.x branch |
Hi @aNebula, sure, will do! Thanks. |
Hi @aNebula , PR submitted as requested: doubtfire-lms#452 Thanks, Epi |
Title: "Security Patch Fix: Addressing CORS Vulnerability for OnTrack Application"
Summary:
This PR addresses a Cross-Origin Resource Sharing (CORS) vulnerability in the OnTrack application caused by the use of the
Access-Control-Allow-Origin: *
header. The current configuration poses significant security risks by allowing unrestricted cross-origin access.Impacts:
Any website can interact with the API, potentially leading to data leakage or abuse.
Vulnerable to cross-origin attacks and other malicious activities.
Violates security and privacy standards.
Remediation:
Access-Control-Allow-Origin
:DF_ALLOWED_ORIGINS
environment variable for flexibility./doubtfire-api/docker-compose.yml
/doubtfire-api/config/application.rb
Configuration Updates:
Docker:
DF_ALLOWED_ORIGINS
variable must reflect the exact URLs where the OnTrack app will be accessed (e.g., production, staging, or development environments).Rails:
application.rb
:Files docker-compose.yml and config/application.rb have been updated