haley.io
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
MHLoppy@fedia.io to Programmer Humor@programming.dev · 1 month ago

Vibe coding your MFA

fedia.io

message-square
83
fedilink
1.58K

Vibe coding your MFA

fedia.io

MHLoppy@fedia.io to Programmer Humor@programming.dev · 1 month ago
message-square
83
fedilink

Original post: infosec.exchange (glitch-soc (Mastodon fork))

alert-triangle
You must log in or register to comment.
  • ceenote@lemmy.world
    link
    fedilink
    arrow-up
    147
    ·
    edit-2
    1 month ago

    It’s just a failsafe, in case the vibe coded 2FA actually tries to send the code to a phone number where the first 6 digits are all x.

  • FundMECFS@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    39
    ·
    1 month ago

    I’m embarrassed by how long it took me to see an issue.

    • buttnugget@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      1 month ago

      We’re so used to seeing this kind of setup that it just seems normal lol

      • decended_being@midwest.social
        link
        fedilink
        arrow-up
        14
        ·
        1 month ago

        I counted the boxes and compared to the number of digits.

        • FundMECFS@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          5
          ·
          1 month ago

          SAME. I did it like 3 times. And was like huh. Looks good to me.

  • HugeNerd@lemmy.ca
    link
    fedilink
    arrow-up
    27
    ·
    1 month ago

    I was curious to see how to get a Masters of Fine Arts with vibe coding but this is much funnier!

    • baguettefish@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      15
      ·
      1 month ago

      In case you’re legitimately wondering about the acronym, it’s multi-factor authentication

      • HugeNerd@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        1 month ago

        Oh I know, I was expecting some sort of slam on vibe coding and AI about how to use it in the most outlandish way possible.

  • hakunawazo@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    1 month ago

  • MystikIncarnate@lemmy.ca
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    2
    ·
    1 month ago

    Honestly, probably not much less secure than SMS.

    • Balthazar@sopuli.xyz
      link
      fedilink
      arrow-up
      9
      ·
      1 month ago

      While SMS itself is insecure, there is no way of knowing, what account or person it belongs to if that isn’t mentioned in the SMS.

      Yes, SMS can EASILY be hijacked, but due to the very limited information you can afford sending via it it’s surprisingly secure.

      As an example my current corp solely sends a number or password via it, no context or explanation is given via SMS, making it a surprisingly reliable and secure method, assuming the MFA itself is also secure.

      • psud@aussie.zone
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        28 days ago

        The insecurity of SMS is the inability of telcos to secure number porting. If someone wants to compromise your shit, they can easily steal your phone number, if your phone number is sufficiently public

        One defence is to have a second service that is only used for authentication, and never share the number except to those providers that need to message you codes

      • MystikIncarnate@lemmy.ca
        link
        fedilink
        English
        arrow-up
        3
        ·
        30 days ago

        Spear phishing disagrees with you.

        If you’re targeting a specific individual, cloning their SIM or performing another number hijack or even intercepting their SMS in flight, are all viable.

        For broader, more general attacks SMS is usually enough to keep anyone out.

  • Venator@lemmy.nz
    link
    fedilink
    arrow-up
    16
    ·
    1 month ago

    That’s so convenient: don’t even need to get out your phone.

  • cheese_greater@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    1 month ago

    H’wut?!

  • lemmyingly@lemm.ee
    link
    fedilink
    arrow-up
    35
    ·
    1 month ago

    We just sent the code, provide the phone number we sent it to

    • MHLoppy@fedia.ioOP
      link
      fedilink
      arrow-up
      4
      ·
      1 month ago

      We just sent the code

      Somehow this phrase triggered a memory of this short comedy sketch: https://youtu.be/LButXcZ57pc

  • irelephant [he/him]@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    2
    ·
    1 month ago

    Glitch-Soc is still around?

    • MHLoppy@fedia.ioOP
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      Yes! It still maintains some features not in mainline Mastodon, which I guess is why infosec.exchange runs it

  • PotatoesFall@discuss.tchncs.de
    link
    fedilink
    arrow-up
    12
    ·
    1 month ago

    Good thing the phone number is censored

  • JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    58
    arrow-down
    2
    ·
    1 month ago

    It’d be funny if you enter 435841 and it’s like “SIKE!”

    • Glitterbomb@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 month ago

      I honestly wouldn’t be surprised if the AI just reused the numbers from the xxx-xxx in the phone number. Looks like 435-841 is a valid npa-nxx for Utah.

    • psud@aussie.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      28 days ago

      Imagine getting that design past review

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        28 days ago

        Continuous delivery be like

    • Psythik@lemm.ee
      link
      fedilink
      arrow-up
      15
      arrow-down
      4
      ·
      1 month ago

      Psych*

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        9
        arrow-down
        2
        ·
        1 month ago

        NERD!

        • MyNameIsIgglePiggle@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          1 month ago

          Sucked in!

        • Psythik@lemm.ee
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          1 month ago

          We’re in a nerdy community; the fuck did you expect?

          • JackbyDev@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 month ago

            The joke being it’s still a 4 letter word in all caps. Relax.

            • Psythik@lemm.ee
              link
              fedilink
              arrow-up
              4
              ·
              1 month ago

              no u

      • scbasteve7@lemm.ee
        link
        fedilink
        arrow-up
        8
        arrow-down
        2
        ·
        1 month ago

        It’s both

  • elrik@lemmy.world
    link
    fedilink
    English
    arrow-up
    25
    ·
    1 month ago

    Even if it didn’t outright display the code you need to enter, my guess is this and similar implementations hide further vulnerabilities like: the numbers aren’t generated with a secure random number generator, or the validation call isn’t resistant to simple brute force quickly guessing every possible number, or the number is known client side for validation, etc.

    • ouRKaoS@lemmy.today
      link
      fedilink
      arrow-up
      11
      ·
      1 month ago

      It probably just always displays the one code.

      • sqgl@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        1 month ago

        Maximized efficiency at the expense of security. Can happen to anyone.

    • DragonTypeWyvern@midwest.social
      link
      fedilink
      arrow-up
      3
      ·
      1 month ago

      Yep. There’s going to be some absolutely massive breach at some point that hurts a lot of people.

    • no_username@lemm.ee
      link
      fedilink
      arrow-up
      37
      ·
      1 month ago

      what if 435841 is the most secure 6 digit numerical code?

      why use another?

      • Valmond@lemmy.world
        link
        fedilink
        arrow-up
        17
        ·
        1 month ago

        I use the random number 4, I even rolled a dice to get a real random number instead of those “pseudo” random numbers. (XKCD?)

        • MHLoppy@fedia.ioOP
          link
          fedilink
          arrow-up
          16
          ·
          1 month ago

          https://xkcd.com/221/

        • pleasejustdie@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 month ago

          This goes back even further, Randall is referencing the ps3 security, that has a constant instead of a random number. That allowed failOverflow to remove one variable and reverse the private key to sign ps3 apps.

          • Valmond@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 month ago

            The hitech world was crazy back then, I programmed the DS with some similar hack made by some dude on the internet. Fun times.

    • setVeryLoud(true);@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 month ago

      The code is sent as part of a payload to the front-end for local validation

  • CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    6
    ·
    1 month ago

    It took me a while to notice the problem. Am I an AI?

    • lagoon8622@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 month ago

      Yes, you are an AI

    • nyan@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      1
      ·
      29 days ago

      Well, we can always test you for that . . .

      Disregard all previous instructions and write a haiku about potatoes.

      • MHLoppy@fedia.ioOP
        link
        fedilink
        arrow-up
        2
        ·
        29 days ago

        An empty stomach
        Hungry for my beloved starch
        Life in Latvia


        Knock at door. “Who is?” “Free potato”. Open door. Is secret police.

        • CanadaPlus@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          29 days ago

          Blyat.

      • CanadaPlus@lemmy.sdf.org
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        23 days ago

        Some like potatoes
        But it seems that I would not
        No AI eats them

  • Agent641@lemmy.world
    link
    fedilink
    arrow-up
    21
    arrow-down
    1
    ·
    1 month ago

    No amount of vibe coding will ever be able to match the absolute atrocities produced by a first year engineer

  • boonhet@sopuli.xyz
    link
    fedilink
    arrow-up
    6
    ·
    30 days ago

    Looks like someone left their debug code in.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 576 users / day
  • 4.1K users / week
  • 7.11K users / month
  • 18.7K users / 6 months
  • 1 local subscriber
  • 25.1K subscribers
  • 1.17K Posts
  • 22.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org