Security fixes: XSS, bulk change access checks, error disclosure
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | layerindex/views: fix reflected XSS in recipes CSV exportlayerindex/ tests/ | +34 | 0 replies | |
| 2/4 | layerindex: restrict bulk changes to their ownerlayerindex/ layerindex/ tests/ | +78 | 0 replies | |
| 3/4 | layerindex/views: don't expose patch generation errors to userslayerindex/ tests/ | +19 | 0 replies | |
| 4/4 | tests: check that changing the profile email requires reactivationtests/ | +67 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [layerindex-web][PATCH 0/4] Security fixes: XSS, bulk change access checks, error disclosure
These fix security problems found with GitHub CodeQL and manual review. They were held back until layers.openembedded.org had been updated.
1: Reflected XSS in the recipe CSV export: an invalid "fields" value was
echoed back as text/html.
2: The bulk change edit, review and patch views had no login or owner
check, so anyone could view or edit another user's bulk change.
3: Patch generation errors (tracebacks, server paths, BitBake output)
were returned to the browser.
4: A test for the existing protection that an email change on the
profile page needs reactivation through the new address.
Tim Orling (4):
layerindex/views: fix reflected XSS in recipes CSV export
layerindex: restrict bulk changes to their owner layerindex/views: don't expose patch generation errors to users
tests: check that changing the profile email requires reactivation
layerindex/urls.py | 10 ++--- layerindex/views.py | 39 ++++++++++++++----- tests/test_bulkchange_access.py | 64 +++++++++++++++++++++++++++++++ tests/test_profile_email.py | 67 +++++++++++++++++++++++++++++++++ tests/test_recipes_csv.py | 33 ++++++++++++++++ 5 files changed, 198 insertions(+), 15 deletions(-) create mode 100644 tests/test_bulkchange_access.py create mode 100644 tests/test_profile_email.py create mode 100644 tests/test_recipes_csv.py
base-commit: 5b55c485d56be9a7314b329ca5d2466a72e7ac48
Signature · 1 line
2.56.0