Skip to content

Security fixes: XSS, bulk change access checks, error disclosure

Tim Orling yocto-patches 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4layerindex/views: fix reflected XSS in recipes CSV exportlayerindex/views.py tests/test_recipes_csv.py+34 -10 replies
2/4layerindex: restrict bulk changes to their ownerlayerindex/urls.py layerindex/views.py tests/test_bulkchange_access.py+78 -80 replies
3/4layerindex/views: don't expose patch generation errors to userslayerindex/views.py tests/test_bulkchange_access.py+19 -60 replies
4/4tests: check that changing the profile email requires reactivationtests/test_profile_email.py+67 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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