cross-posted from: https://jamie.moe/post/113630

There have been users spamming CSAM content in !lemmyshitpost@lemmy.world causing it to federate to other instances. If your instance is subscribed to this community, you should take action to rectify it immediately. I recommend performing a hard delete via command line on the server.

I deleted every image from the past 24 hours personally, using the following command: sudo find /srv/lemmy/example.com/volumes/pictrs/files -type f -ctime -1 -exec shred {} \;

Note: Your local jurisdiction may impose a duty to report or other obligations. Check with these, but always prioritize ensuring that the content does not continue to be served.

Update

Apparently the Lemmy Shitpost community is shut down as of now.

  • ludrol@bookwormstory.social
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    3
    ·
    1 year ago

    I checked and there shouldn’t be any images stored on the server when running lemmy 1.18.4. The post was made in high emotional distress and shouldn’t be taken at a face value. If the posts are bothering you I advise purging the posts in question. (I have already done that)

    • hitagi@ani.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      How did you check this? From my understanding, images from external servers are copied (and transcoded) over locally. At least in my server (running 0.18.4), they do.

      • redcalcium@lemmy.institute
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        It depends on how the image posted, the thumbnails might get federated. If the image is used in a post/comment body, usually the thumbnails are not federated.

          • Rentlar@lemmy.ca
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Let me try to figure this out. The first is a photo uploaded to lemmy.world, the second is a photo originally uploaded to lemmy.nz, both posts are in a federated version of lemmy.world’s shitpost community.

            This is just a theory, but perhaps images hosted on the same server as the federated community will directly link, whereas images uploaded somewhere other than the federated community will be copied into cache, presumably in case the original host shuts down unexpectedly? See if this is the case?

            • hitagi@ani.social
              link
              fedilink
              English
              arrow-up
              3
              ·
              1 year ago

              images hosted on the same server as the federated community will directly link

              https://ani.social/post/288601 - This image is uploaded from a user on the same instance as the federated community (lemmy.world) but the image is cached.

              images uploaded somewhere other than the federated community will be copied into cache

              https://ani.social/post/285354 - This image is uploaded from a user on a different instance (lemm.ee) from the federated community (lemmy.world) but the image is not cached.

              The behaviour is pretty weird. Hopefully we can disable image caching/copying-over-locally so we don’t have to deal with problematic images hosted by other instances.

    • Jamie@jamie.moeOP
      link
      fedilink
      English
      arrow-up
      14
      ·
      edit-2
      1 year ago

      I’m on 1.18.4, once I deleted the most recent images, the former CSAM posts(among others) became broken images. So yes, it was pulling from local disk cache. Then I took care of the posts themselves after the content was invalidated.

  • Dandroid@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    29
    ·
    edit-2
    1 year ago

    I got lucky. I am not subscribed to this community, and I am the only person on my instance. But what if I was subscribed and hadn’t seen this post? This is too much responsibility for me.

    I just shut down my instance until we can disable cached images. If that never happens, then I’m not bringing it back up.

    Shout-out to https://github.com/wescode/lemmy_migrate. I moved my subscriptions over in a minute or two, and now, other than not having my post history, it’s exactly the same.

  • enbee@compuverse.uk
    link
    fedilink
    English
    arrow-up
    34
    ·
    1 year ago

    big F in chat for those of you dealing with this. my #1 fear about setting upand instance.

  • CrimeDad@lemmy.crimedad.work
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    I’m not subscribed to that community, but I guess I’m glad Pictrs doesn’t work for me, since I am using the Yunohost version of Lemmy. The creators of the Yunohost package couldn’t get it to work. I haven’t really missed it honestly.

      • CrimeDad@lemmy.crimedad.work
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        It just means that you can’t upload pictures, including banners or avatars. However, when I want to create an image post, I just make the post on Pixelfed and then mention the Lemmy community I want to post to at the bottom of the post body. Supposedly there’s a way to reference a remote image for a banner or an avatar, but I haven’t figured that out yet.

  • drcobaltjedi@programming.dev
    link
    fedilink
    English
    arrow-up
    13
    ·
    1 year ago

    I was looking into self hosting. What can I do to avoid dealing with this? Can I not cache images? Would I get in legal trouble for being federated with an instance being spammed?

  • from software paypig@lemmygrad.ml
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    1 year ago

    As far as I know, images should not be federating to federated instances, right? Image proxying is supposed to be added to pictrs version 0.5.0 but it is still in alpha.

  • Oneobi@lemmy.world
    link
    fedilink
    English
    arrow-up
    54
    arrow-down
    5
    ·
    1 year ago

    Likely scum moves from reddit patriots to destroy or weaken the fediverse.

    I remember when Murdoch hired that Israeli tech company in Haifa to find weaknesses is TV smart cards and then leaked it to destroy their market by flooding counterfit smart cards.

    They are getting desperate along with those DDOS attacks.

    • OrbitJunkie@lemdro.id
      link
      fedilink
      English
      arrow-up
      18
      ·
      1 year ago

      Could be, but more likely it’s just the result of having self hosted services, you have individuals exposing their own small servers to the wilderness of internet.

      These trols also try constantly to post their crap to mainstream social media but they have it more difficult there. My guess is that they noticed lemmy is getting a big traction and has very poor media content control. Easy target.

      Moderating media content is a difficult task and for sure centralized social media have better filters and actual humans in place to review content. Sadly, only big tech companies can pay for such infrastructure to moderate media content.

      I don’t see an easy way for federated servers to cope with this.

      • maxprime@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        Yeah exactly. This is the main reason I decided not to attempt to self host a Lemmy instance. No way am I going to let anyone outside of my control have the ability to place a file of their choosing on my hardware. Big nope for me.

  • Ebby@lemmy.ssba.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    Could someone please ELI5 that script. I’m all for keeping things clean, but old enough to remember the days of console based trolling.

    • UnlimitedRumination [he/him]@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      1 year ago

      sudo

      As root

      find /srv/lemmy/example.com/volumes/pictrs/files

      Find files in /srv/lemmy... that:

      -type f

      Are plain files (not directories, symlinks, etc; includes images)

      -ctime -1

      And were created within an amount of time (probably last day, haven’t used this flag in a while)

      -exec rm {} \\;

      For each matching file found execute rm on it (delete it).

      • GBU_28@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        1 year ago

        I don’t think rm is gonna cut it if you have that shit on disk

  • owiseedoubleyou@lemmy.ml
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    1 year ago

    How desperate to destroy Lemmy must you be to spam CSAM on communities and potentially get innocent people into trouble?

    • heyoni@lemm.ee
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      2
      ·
      1 year ago

      Maybe you’re a dev on the Reddit team and own a lot of shares for what you know is about to go public?

  • Catasaur@lemmy.catasaur.xyz
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 year ago

    Self hoster here, im nuking all of pictrs. People are sick. Luckily I did not see anything, however I was subscribed to the community.

    • Did a shred on my entire pictrs volume (all images ever):

    sudo find /srv/lemmy/example.com/volumes/pictrs -type f -exec shred {} \;

    • Removed the pictrs config in lemmy.hjson

    • removed pictrs container from docker compose

    Anything else I should to protect my instance, besides shutting down completely?

    • Jamie@jamie.moeOP
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 year ago

      Not really. You could technically locate the images and determine precisely which ones they are from their filenames, but that means you actually have to view the images long enough to pull the URL. I had no desire to view them for even a moment, and just universally removed them.

      As mentioned in my edit above though, ensure you are in compliance with local regulations when dealing with the material in case you have to do any preservation for law enforcement or something.

        • Jamie@jamie.moeOP
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          From what I was informed, purging a post doesn’t remove the associated cached data. So I didn’t take any chances.