akkoma/lib/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 Merge branch 'ecto-rollback-in-test-env' into 'develop' 2021-02-26 16:47:53 +00:00
search meilisearch: Move published date to lower priority 2023-08-11 11:07:14 -04:00
activity.ex giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00
app.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
benchmark.ex Use finch everywhere (#33) 2022-07-04 16:30:38 +00:00
config.ex argon2 password hashing (#406) 2022-12-30 02:46:58 +00:00
count_statuses.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
database.ex Support elixir1.15 2023-08-03 17:44:09 +01:00
diagnostics.ex Mix format 2023-04-14 17:56:34 +01:00
digest.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
docs.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
ecto.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
email.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
emoji.ex Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
frontend.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
instance.ex Always insert Dedupe upload filter 2024-03-18 22:33:10 -01:00
notification_settings.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
openapi_spec.ex OpenAPI spec task: Load pleroma application to get version info 2021-02-09 22:10:09 +03:00
refresh_counter_cache.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
relay.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
robots_txt.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
search.ex giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00
uploads.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
user.ex Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00