Skip to content

fix(security): avoid pass plaintext sensitive data to the frontend#16

Merged
PIKACHUIM merged 3 commits intoOpenListTeam:mainfrom
hcrgm:main
Jun 22, 2025
Merged

fix(security): avoid pass plaintext sensitive data to the frontend#16
PIKACHUIM merged 3 commits intoOpenListTeam:mainfrom
hcrgm:main

Conversation

@hcrgm
Copy link
Contributor

@hcrgm hcrgm commented Jun 14, 2025

  • pass sensitive data with URL hash instead of URL query
  • encode sensitive data by JSON then encode to base64
  • remove debug logs
  • remove sensitive data from browser history, tested in Chrome (not work in Firefox)
  • avoid return api keys to the frontend when server_use is "true" and error occurred in api request

@PIKACHUIM
Copy link
Member

Thank you for your PR. Since your last PR submission, there have been significant changes to this repo, and merging submissions may require a lot of work. If you can rebase your modifications to the latest version, merging will be accelerated. Here are some changes:

  1. The JS code part in the index file has been moved to token.js and login.js, and there are a lot of logical modifications, which may require you to carefully check
  2. We have added some other drivers, and if we change to # tag mode, we need to check everything carefully

Thank you again for your contribution

@PIKACHUIM
Copy link
Member

I have moved the JS code in the index.html file that you modified to public/static/test.js, and it may require you to rebase it

- pass sensitive data with URL hash instead of URL query
- encode sensitive data by JSON then encode to base64
- remove debug logs
- remove sensitive data from browser history, tested in Chrome (not work in Firefox)
- avoid return api keys to the frontend when server_use is "true" and error occurred in api request
@hcrgm
Copy link
Contributor Author

hcrgm commented Jun 20, 2025

I have moved the JS code in the index.html file that you modified to public/static/test.js, and it may require you to rebase it

I have merged the latest code. Currently tested with baiduyun_ob. It should be OK to merge now.

@PIKACHUIM PIKACHUIM merged commit d4c5b9b into OpenListTeam:main Jun 22, 2025
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.

2 participants