• MyFeetOwnMySoul@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    11 months ago

    How does this exploit work? I understand that inputs were not sanitized, but what did the injected code do?

    • powerofm@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      My guess would be the response text is passed through a rudimentary templating engine that looks for { and }. Somehow it must be processing the whole chat history. The templater fails at the unexpected braces in the code block and then just gives up (probably a try-catch ignores the error and sends the message anyway).