• CosmicTurtle0@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    28
    ·
    4 days ago

    The default for net new buckets is actually very strict.

    But it’s that strictness that makes devs just to open it up to everyone and not learn proper IAM syntax.

    The unfortunate part is that AWS made rules and privileges so nuanced and detailed that it makes people want to make everything public and deal with it “later”.

    • drspod@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      4 days ago

      How do people end up finding them? Don’t they have random UUIDs in the URL? Or are they predictable?

      • Em Adespoton@lemmy.ca
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        4 days ago

        All you have to do is monitor the network traffic and then scan any AWS subdomains/IPs that pop up.

        [edit] this makes me think… it’s not really possible for a secure connection from all of VW’s vehicles to an S3 bucket, is it? Anyone can pull the key from any of the millions of vehicles making the connection. Then they can dump whatever they want into the bucket.

        • CosmicTurtle0@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          4
          ·
          4 days ago

          You could secure it using an IAM user with credentials but then those credentials would be available on all vehicles.

          If the vehicles had direct access to S3, maybe that’s why the bucket was public? But you could also just leave it available to the public.

          But if that was the design, you should sweep the bucket on a regular basis to make sure there aren’t any objects over x hours old or something like that.

      • CosmicTurtle0@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        4
        ·
        4 days ago

        Bucket names are often committed to GitHub. It used to be that bucket names could be published but ever since the blog post of the guy getting fucked by people polling his bucket due to an open source project typo made others realize that bucket names should probably be secrets.

        There are bots that will just monitor all public commits to github, gitlab, etc. for AWS credentials and other strings like that. And as soon as they are found they will start to abuse them.