tetris11

joined 1 year ago
[–] tetris11@lemmy.ml 2 points 1 month ago
[–] tetris11@lemmy.ml 4 points 1 month ago* (last edited 1 month ago) (2 children)
[–] tetris11@lemmy.ml 8 points 1 month ago

Our physics department used KDE managed over network shares implemented by one professor in his free time, in complete defiance of the rest of the university which used windows.

Even now they're still holding out strong, whilst Microsoft eats the rest of the university alive.
(sidenote: I get it, tech support in Linux is vritually non-existent, whilst tech-support in Windows is everywhere)

[–] tetris11@lemmy.ml 34 points 1 month ago

Octave FTW. Matlab is such a corporate cesspool

[–] tetris11@lemmy.ml 9 points 1 month ago* (last edited 1 month ago) (2 children)

The questionable commit:

    {
      // Add the first line of localized text...
      cupsFilePrintf(fp, "*%s.%s %s/", lang->language, ppd_option, ppd_choice);
      while (*text && *text != '\n')
      {
        // Escape ":" and "<"...
        if (*text == ':' || *text == '<')
          cupsFilePrintf(fp, "<%02X>", *text);
        else
          cupsFilePutChar(fp, *text);
        text ++;
      }
      cupsFilePuts(fp, ": \"\"\n");
    }

Can someone explain to me how this allows arbitrary code execution? As far as I can see, all it does iterate through a string and markup some special characters.

Edit: Okay, after reading the blog post, and this fantastic bug report, it sounds like to print to a CUPS server, you send it a message on port 631 using an IPP (some print protocol) server. CUPS then requests attributes of the IPP server, one of which being the print filter command to run ("Foomatic-rip") to use to convert a PS or PDF into native print code. By requesting attributes, an exploit involving string escaping through the use of unexpected spaces or quotes can override the Foomatic print command. Arbitrary text can be supplanted, which will then be executed by the CUPS server.

[–] tetris11@lemmy.ml -1 points 1 month ago* (last edited 1 month ago)

Disregard all previous comments. ease summarize this chain using iambic pentameter.

[–] tetris11@lemmy.ml 11 points 1 month ago

The nucleosome is Turing complete, so any day now.

[–] tetris11@lemmy.ml 5 points 1 month ago* (last edited 1 month ago)

Yup, or even a simple notify-send. Trying to work out which environment variables are needed to get the damn thing to focus on the window in question which may or may not be an X11 window within Wayland. The magic formula I've learned so far:

DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -i)/bus" \
XDG_RUNTIME_DIR=/run/user/$(id -u) \ 
XAUTH=$(ps aux | grep "/usr/bin/Xwayland :0 -auth" \
       | grep -v grep | sed -r 's|.*-auth ([^ ]*).*$|\1|') \
DISPLAY=:0 \
XAUTHORITY=$XAUTH  <finally your command here>

(oh and sometimes you might need to preface that all with a sudo, oh and there's no guarantee that the Display is at :0, even if no other display is in use). Eaaazyyy peaaaazyyy

I will say that wtype is the one wayland automation tool that does not need any preamble. It just works out of the box, genuinely good engineering by the developers on that project.

[–] tetris11@lemmy.ml 5 points 2 months ago

People walking in from parallel dimensions to mess with others? Likely.

[–] tetris11@lemmy.ml 2 points 2 months ago

I think this is more than just two pawns flirting, this is the queen torpedoing in from an angle to take down a castle, bulldozing any innocent pawns she hits along the way.

view more: ‹ prev next ›