Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
mudkip@lemdro.id to Programmer Humor@programming.devEnglish · 1 day ago

Apple forgot to disable production source maps on the App Store web app

files.catbox.moe

message-square
49
fedilink
  • cross-posted to:
  • [email protected]
494

Apple forgot to disable production source maps on the App Store web app

files.catbox.moe

mudkip@lemdro.id to Programmer Humor@programming.devEnglish · 1 day ago
message-square
49
fedilink
  • cross-posted to:
  • [email protected]
alert-triangle
You must log in or register to comment.
  • Jankatarch@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 hour ago

    Incompetent-source!

  • mmmac@lemmy.zip
    link
    fedilink
    arrow-up
    20
    ·
    16 hours ago

    Our international teams kept enabling sourcemaps and I just had devops lock the directory to vpn access only 🤷

    I know sourcemaps aren’t the end of the world as it’s all client side code that lives on the clients computer but it just feels dirty

  • Mr. Satan@lemmy.zip
    link
    fedilink
    arrow-up
    72
    ·
    20 hours ago

    Security through obscurity is not security. I see no reason why source maps should be unavailable.

    • mack@lemmy.sdf.org
      link
      fedilink
      arrow-up
      0
      ·
      2 hours ago

      depends.

      if we’re talking about a personal website nobody will care. if you are a multibillion company and there’s the risk that literally anyone can create a 1:1 clone of your services… yeah that’s a bit of a trouble

      • Mr. Satan@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        2 hours ago

        Omitting source maps doesn’t prevent that.

    • entwine@programming.dev
      link
      fedilink
      arrow-up
      59
      ·
      16 hours ago

      Because source maps show how shitty your organization’s code and overall engineering practices are.

      • Phoenixz@lemmy.ca
        link
        fedilink
        arrow-up
        35
        ·
        15 hours ago

        Ding ding ding

        Open source code is usually quite nice and well done because money pressure is way less of an issue and everyone knows people will be looking at your code

        • ulterno@programming.dev
          link
          fedilink
          English
          arrow-up
          9
          ·
          8 hours ago

          If you look at the casual code that I have shamelessly made public on my GitLab, that might change your mind on that.

        • Lifter@discuss.tchncs.de
          link
          fedilink
          arrow-up
          9
          arrow-down
          1
          ·
          13 hours ago

          That’s probably also why development is usually really slow and most maintainers can’t keep up/give up.

          • SleeplessCityLights@programming.dev
            link
            fedilink
            arrow-up
            11
            ·
            9 hours ago

            Nope, it is simply because they are overwhelmed. Either it’s too much work to do after your day job or just too much work for one person.

  • NotMyOldRedditName@lemmy.world
    link
    fedilink
    arrow-up
    43
    arrow-down
    1
    ·
    23 hours ago

    And now the source code is part of copilot

  • dogs0n@sh.itjust.works
    link
    fedilink
    arrow-up
    47
    ·
    1 day ago

    SVELTE 🥹 (im very happy to see svelte)

    Also I’m scared that this person may be risking their github account by posting this, I dunno if it’s legal to “distribute” apples website code yourself. If not, best hope they dont ban your whole account.

    • 87Six@lemmy.zip
      link
      fedilink
      arrow-up
      8
      ·
      10 hours ago

      I mean… They kinda distributed it themselves /s

    • northernlights@lemmy.today
      link
      fedilink
      arrow-up
      9
      ·
      23 hours ago

      Or even sue them

    • mudkip@lemdro.idOP
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 day ago

      we love svelte

  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    113
    ·
    edit-2
    1 day ago

    Depending on the exact level of stupidity clinging to the judge on that day, some jurisdictions might consider this “hacking.”

    One case from the states that was luckily dismissed: https://uk.pcmag.com/security/136282/missouri-gov-goes-after-reporter-who-found-shockingly-bad-flaw-in-state-website https://www.vice.com/en/article/this-is-the-hacking-investigation-into-journalist-who-clicked-view-source-on-government-website/

  • kibiz0r@midwest.social
    link
    fedilink
    English
    arrow-up
    34
    ·
    1 day ago

    You’re supposed to disable source maps in prod?

    Asking for a friend

    • dreadbeef@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      30
      ·
      21 hours ago

      if you think your source code is that precious and unique and special, go ahead and worry about it haha

    • dogs0n@sh.itjust.works
      link
      fedilink
      arrow-up
      17
      arrow-down
      3
      ·
      1 day ago

      Just to save on wasted bandwidth for the client (and your server) is why I would disable them.

      • dreamkeeper@literature.cafe
        link
        fedilink
        arrow-up
        6
        ·
        8 hours ago

        I work for a large software corp and we generally keep them in prod because it makes debugging prod issues much easier. The browser only downloads them when the dev tools are open.

      • brian@programming.dev
        link
        fedilink
        arrow-up
        33
        ·
        1 day ago

        they’re different files generally, the only client that will automatically request them is a debugger.

        you turn them off because you don’t want to expose your full source code. if you would be ok making your webpage git repo public then making sourcemaps available is fine.

  • QuazarOmega@lemy.lol
    link
    fedilink
    arrow-up
    70
    ·
    1 day ago

    Copyrighted content

    archived them

    on GitHub

    Idk man 🧐
    Run the countdown to when it’s taken down

    • bluemellophone@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      7 hours ago

      Yep, it’s got a DMCA takedown now

    • refalo@programming.dev
      link
      fedilink
      arrow-up
      18
      ·
      edit-2
      23 hours ago

      There’s lots of content sitting just below the surface on github. Any time you make a PR on a repo, even if it gets closed or “deleted” by the repo owner, the actual link to the file itself stays there forever if you save it. Github’s own dmca repo even has warez links on it, sitting there for years.

      • QuazarOmega@lemy.lol
        link
        fedilink
        arrow-up
        4
        ·
        16 hours ago

        Oh that’s cool, I had no idea! Though does that apply to content removed for DMCAs?

        • refalo@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          11 hours ago

          Usually entire repos are disabled in that case. I’ve never tried to access hidden content on a DMCA-removed repo, but I assume it would not work.

    • nihilomaster@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 day ago

      You could argue that since it’s publicly available and this repo only archives it that… I don’t know man Copyright law is confusing.

      • rtxn@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        21 hours ago

        I think you can get some kind of exemption for archival purposes. I know that the Internet Archive has one. But I also know that ultimately Microsoft is responsible for the data hosted on Github, and Microsoft’s interest is to not even risk getting sued.

  • chazwhiz@lemmy.world
    link
    fedilink
    English
    arrow-up
    87
    ·
    1 day ago

    Isn’t that just effectively un-minified? It’s just the client side code in the first place?

    • TeamAssimilation@infosec.pub
      link
      fedilink
      arrow-up
      71
      ·
      1 day ago

      Comments and full-length names make the source way more accessible.

      • RagingRobot@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        6 hours ago

        Yeah but even then they should be writing secure code anyways so it doesn’t matter if someone reads it. It’s just ui code. It’s always readable

    • locuester@lemmy.zip
      link
      fedilink
      English
      arrow-up
      38
      arrow-down
      1
      ·
      1 day ago

      Nah it’s more complete with comments and all. Here’s a link to a random svelte file:

      https://github.com/rxliuli/apps.apple.com/blob/main/src/components/pages/SearchResultsPage.svelte

      • Rusty@lemmy.ca
        link
        fedilink
        English
        arrow-up
        5
        ·
        7 hours ago

        It’s already down.

        • locuester@lemmy.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          5 hours ago

          This is why you self host a private Gitea instance and have it auto mirror all of your github repos.

          I forked it, and my instance automatically grabbed me a forever copy.

      • boonhet@sopuli.xyz
        link
        fedilink
        arrow-up
        8
        ·
        12 hours ago

        Huh, I hate doing front end but I feel like in this team I’d manage. Shit even has comments.

    • CodingCarpenter@lemmy.ml
      link
      fedilink
      arrow-up
      16
      arrow-down
      3
      ·
      1 day ago

      Once the code is minified it’s basically unreadable by humans it’s useless this is far more readily available to anybody who may be curious about the work being done

      • Bane_Killgrind@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        7
        ·
        1 day ago

        Learning resource yeah.

  • Trailblazing Braille Taser@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    17
    ·
    1 day ago

    Is this interesting for some reason?

    • panda_abyss@lemmy.ca
      link
      fedilink
      arrow-up
      32
      ·
      1 day ago

      It’s how the web worked before minifiers, so kinda but not really.

      You just have comments and original variable/function names.

      I’m sure someone will argue this helps scrapers or hackers, but really it’s not that big of a deal.

      • dreamkeeper@literature.cafe
        link
        fedilink
        arrow-up
        2
        ·
        7 hours ago

        Anyone capable of doing damage already knows how to format and read minified code anyway. I do it in prod all the time when I want to test something with an override, which causes the source map to become invalid.

      • Axolotl_cpp@feddit.it
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        1 day ago

        It help users that make websites styles!

        Eg. I have a discord style for fixing their bullshit

  • gravitas_deficiency@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    26
    ·
    1 day ago

    Yo gimme a repo link, you can’t blueball us like that

    • QuazarOmega@lemy.lol
      link
      fedilink
      arrow-up
      24
      ·
      1 day ago

      Here it is https://github.com/rxliuli/apps.apple.com

      • CannonFodder@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        8 hours ago

  • silt_haddock@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    1 day ago

    I’m gonna download this to my iPhone, just in case.

    Try and stop me, Tim Apple!

  • oopsallnaps@piefed.ca
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 day ago

    iirc Apple music’s web ui also has sourcemaps, but I’m not subbed to apple music anymore to check. Its neat, but not really a huge blunder, nor takedown worthy.

  • 5opn0o30@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    25
    ·
    1 day ago

    Who cares. Comments could be interesting but AI can do this pretty well on most JS these days.

    • shameless@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      1 day ago

      AI is still shit when it comes to obfuscated code. This is before it’s all been obfuscated and become unreadable.

      I’ve tried using AI to handle obfuscated scripts and it makes way too many assumptions as to what the code is trying to achieve.

    • Riskable@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      5
      ·
      1 day ago

      My thoughts, exactly: Why is this a big deal? Imagine the positive press it would be if Apple came out and said, “We did that on purpose. More companies should be this open!”

      The security impact of this: Zero (clients are already given the code)

      The reputational impact: Could be great! Or could be bad if they play this the wrong way.

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: [email protected]

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.

  • 735 users / day
  • 4.89K users / week
  • 8.92K users / month
  • 19.4K users / 6 months
  • 1 local subscriber
  • 27.2K subscribers
  • 1.91K Posts
  • 66.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org