akkoma/test/pleroma/web/pleroma_api/controllers
Oneric 0ec62acb9d Always insert Dedupe upload filter
This actually was already intended before to eradict all future
path-traversal-style exploits and to fix issues with some
characters like akkoma#610 in 0b2ec0ccee. However, Dedupe and
AnonymizeFilename got mixed up. The latter only anonymises the name
in Content-Disposition headers GET parameters (with link_name),
_not_ the upload path.

Even without Dedupe, the upload path is prefixed by an UUID,
so it _should_ already be hard to guess for attackers. But now
we actually can be sure no path shenanigangs occur, uploads
reliably work and save some disk space.

While this makes the final path predictable, this prediction is
not exploitable. Insertion of a back-reference to the upload
itself requires pulling off a successfull preimage attack against
SHA-256, which is deemed infeasible for the foreseeable futures.

Dedupe was already included in the default list in config.exs
since 28cfb2c37a, but this will get overridde by whatever the
config generated by the "pleroma.instance gen" task chose.

Upload+delete tests running in parallel using Dedupe might be flaky, but
this was already true before and needs its own commit to fix eventually.
2024-03-18 22:33:10 -01:00
..
account_controller_test.exs Support elixir1.15 2023-08-03 17:44:09 +01:00
app_controller_test.exs Support elixir1.15 2023-08-03 17:44:09 +01:00
backup_controller_test.exs Support elixir1.15 2023-08-03 17:44:09 +01:00
conversation_controller_test.exs Support elixir1.15 2023-08-03 17:44:09 +01:00
emoji_file_controller_test.exs Tag Mock-tests as "mocked" and run them seperately 2023-08-04 12:50:50 +01:00
emoji_pack_controller_test.exs Tag Mock-tests as "mocked" and run them seperately 2023-08-04 12:50:50 +01:00
emoji_reaction_controller_test.exs Support elixir1.15 2023-08-03 17:44:09 +01:00
instances_controller_test.exs Support elixir1.15 2023-08-03 17:44:09 +01:00
mascot_controller_test.exs Always insert Dedupe upload filter 2024-03-18 22:33:10 -01:00
notification_controller_test.exs Support elixir1.15 2023-08-03 17:44:09 +01:00
report_controller_test.exs Support elixir1.15 2023-08-03 17:44:09 +01:00
two_factor_authentication_controller_test.exs Support elixir1.15 2023-08-03 17:44:09 +01:00
user_import_controller_test.exs Tag Mock-tests as "mocked" and run them seperately 2023-08-04 12:50:50 +01:00