Skip to content
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

fix: don't send invalid URLs back to the user #16687

Conversation

dpgaspar
Copy link
Member

SUMMARY

Avoid sending a bogus URL back to the user, these can apparently cause a reflect XSS issue, yet the only possible victim is the attacker himself.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dpgaspar dpgaspar changed the title fix: don't send bogus URLs back to the user fix: don't send invalid URLs back to the user Sep 13, 2021
@codecov
Copy link

codecov bot commented Sep 13, 2021

Codecov Report

Merging #16687 (fdb84f8) into master (1cc7263) will decrease coverage by 0.07%.
The diff coverage is 91.66%.

❗ Current head fdb84f8 differs from pull request most recent head a181044. Consider uploading reports for the commit a181044 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16687      +/-   ##
==========================================
- Coverage   76.93%   76.85%   -0.08%     
==========================================
  Files        1005     1005              
  Lines       54049    54056       +7     
  Branches     7339     7339              
==========================================
- Hits        41581    41547      -34     
- Misses      12228    12269      +41     
  Partials      240      240              
Flag Coverage Δ
hive 81.23% <91.66%> (-0.04%) ⬇️
mysql 81.66% <91.66%> (+0.04%) ⬆️
postgres 81.68% <91.66%> (-0.04%) ⬇️
presto ?
python 82.08% <91.66%> (-0.15%) ⬇️
sqlite 81.33% <91.66%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/connectors/sqla/models.py 88.28% <75.00%> (-1.43%) ⬇️
superset/config.py 91.39% <100.00%> (+0.02%) ⬆️
superset/utils/feature_flag_manager.py 96.29% <100.00%> (+1.05%) ⬆️
superset/views/redirects.py 88.37% <100.00%> (ø)
superset/db_engine_specs/presto.py 84.51% <0.00%> (-5.86%) ⬇️
superset/models/core.py 89.14% <0.00%> (-0.26%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1cc7263...a181044. Read the comment docs.

@dpgaspar dpgaspar merged commit 5ac8ac0 into apache:master Sep 14, 2021
@dpgaspar dpgaspar deleted the danielgaspar/ch25032/prevent-sending-url-back-to-the-user-on-the branch September 14, 2021 10:29
@villebro villebro added the v1.3 label Sep 22, 2021
villebro pushed a commit that referenced this pull request Sep 22, 2021
* fix: don't send bogus URLs back to the user

* lint, remove f string

(cherry picked from commit 5ac8ac0)
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
* fix: don't send bogus URLs back to the user

* lint, remove f string
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
* fix: don't send bogus URLs back to the user

* lint, remove f string
@mistercrunch mistercrunch added 🍒 1.3.1 🍒 1.3.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.4.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels preset-io size/XS v1.3 🍒 1.3.1 🍒 1.3.2 🚢 1.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants