1
0
Fork 0
forked from mirrors/akkoma
akkoma/test/mix/tasks/pleroma
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
..
ecto Tag Mock-tests as "mocked" and run them seperately 2023-08-04 12:50:50 +01:00
app_test.exs Remove IO.inspects 2023-08-04 12:01:52 +01:00
config_test.exs fix yet another keyword equality check 2023-08-07 17:00:16 +01:00
count_statuses_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
database_test.exs Drop Chat tables 2024-02-11 05:15:08 +01:00
digest_test.exs Fix digest test 2022-06-29 20:45:05 +01:00
ecto_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
email_test.exs Merge branch 'develop' into refactor/deactivated_user_field 2021-01-18 14:58:21 -06:00
emoji_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
frontend_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
instance_test.exs Always insert Dedupe upload filter 2024-03-18 22:33:10 -01:00
refresh_counter_cache_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
relay_test.exs Don't persist local undone follow (#194) 2022-08-31 18:00:36 +00:00
robots_txt_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
uploads_test.exs Always insert Dedupe upload filter 2024-03-18 22:33:10 -01:00
user_test.exs Tag Mock-tests as "mocked" and run them seperately 2023-08-04 12:50:50 +01:00