LibreTechni.ca
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 6 days ago

another CVE

lemmy.blahaj.zone

message-square
51
fedilink
37

another CVE

lemmy.blahaj.zone

not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 6 days ago
message-square
51
fedilink
  • dbx12@programming.dev
    link
    fedilink
    arrow-up
    55
    ·
    6 days ago

    I already found another one!

    echo $USER prints my current user name. Once I do USER=root it shows im running as root. And I wasn’t even asked for my sudo password! :O :O :O

    • not_IO@lemmy.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      21
      ·
      5 days ago

      alias whoami='echo root'

      • dbx12@programming.dev
        link
        fedilink
        arrow-up
        8
        ·
        5 days ago

        That seems like an adjacent vector, want to coop on the CVE?

    • goferking (he/him)@lemmy.sdf.org
      link
      fedilink
      arrow-up
      21
      ·
      5 days ago

      You joke but at work our security office mass reset passwords because they saw a list of users in the pwd file. Even after others pointed out it was just a list of usernames not their credentials AND that it couldn’t be the actual credentials as we’re an AD shop

      They would definitely fall for that 😭

      • dbx12@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        5 days ago

        Oh my xD

    • 🌞 Alexander Daychilde 🌞@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      5 days ago

      Huh. It is worth bearing in mind not to trust $USER before doing something based on it, though, if that thing is important.

      • dbx12@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        5 days ago

        The interesting thing is that bash allows writing this variable. I would’ve expected it to be readonly for obvious reasons.

        • poolcritter@pawb.social
          link
          fedilink
          arrow-up
          1
          ·
          5 days ago

          USER is just an environment variable in the environment block like any other; even if Bash didn’t allow changing it, any other program could.

    • some_guy@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 days ago

      Pwned again!

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
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 771 users / day
  • 2.47K users / week
  • 6.56K users / month
  • 14.7K users / 6 months
  • 1 local subscriber
  • 34.3K subscribers
  • 1.81K Posts
  • 41.1K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org