Replying to @⁨BevsDad@lemmy.ca⁩

This always struck me as a rather silly idea, to be honest.

Now we’ve come full circle. I have a vendor who is insisting that I use node.js and pull their code from their NPM repository from the same… For frontend code. Just, have the entire contents of your (their) node_modules folder exposed to the public internet at all times. Isn’t this just Javascript with extra steps?

Replying to @⁨__siru__@discuss.tchncs.de⁩

Yeah but if it’s just pure HTML you got an ugly-ass website that’s annoying to use. There’s been many JavaScript and css vulnerabilities over the years of course. But yes there was and still is plain HTML issues

Client side:

  • I vaguely remember some base64 embedded encoding malware.
  • I do believe there was some issues with early HTML, if you had malformed tags, that could bypass checks and balances.
  • Svg, Images, audio, fonts, and video can definitely contain malware. Before you say fonts are a css thing, <font> was a real tag
  • IFrames were the worst:
    • They had too much power in the past and could hijack the page and browser.
    • There was no content security policy back then so they could inject JavaScript into the main page as well.
    • Also they can cover the whole screen and present a normal login screen, and hijack all inputs going through it. Think of it like you’re on dodgey-site.com and it has a full page IFrame to bank.com. This was a common hack back in the day which inspired an entire http header to help prevent this.
  • Anchor tags can link to something dodgey of course.
  • Embedded PDFs were a huge issue.
  • ActiveX and other web applets was just fucked. They were so bad they caused malware constantly. This is where unsolicited toolbars came from.
  • Adobe Flash had many many vulnerabilities over the years.
  • Canvas bugs are still a thing today.

Server side, you could execute SQL injection and path traversal just via URL before the page even loads. Malware and other issues can be embedded in text inputs. HTML can be uploaded to the server and in some cases replayed on the page affecting other users (comment sections were infamous for this).

So yeah; a plain HTML page with no JavaScript or css isn’t necessarily safe

Replying to @⁨magnolia_mayhem@lemmy.world⁩

Oh yeah, everyone loves black text on white background, with each div placed sequentially in a vertical stack :) really gives it that vintage mid 90’s dial up internet “the website failed to load CSS” look

There’s nothing wrong with CSS. Arguably it’s been overcomplicated way beyond it’s original scope, but it works as designed to make your sites look good

Replying to @⁨__siru__@discuss.tchncs.de⁩

I build custom websites that run primarily on css and html. Light JS for applications, and some simple PHP to tie everything together. I am unaware of any flaw or exploit that would disable my sites. I don’t recall any html vulnerabilities. Unless there’s e-commerce involved, that’s nothing I can think of that would be exploitable on either side for html or css. These are both hard coded into the browser so I’m not even sure what an exploit would accomplish other than changing values on the client side. But it’s been a long week…

Edit Looks like zarobi below remembered some exploits. Totally forgot about iframes and the weird image data exploits.

Replying to @⁨The_Decryptor@aussie.zone⁩

In lua you will typically lua_pcall() the entry function written in Lua, but it will often call back into your C functions to do various tasks. Now if your C functions do anything with the lua stack, that might cause OOM, but now your lua_pcall() will catch that - or any sort of error catching inside Lua itself - and you’ll be looking at an accidental recovery situation.

At least that was how things looked like when I last poked around Lua a few months ago.

So as far as I know, it’s actually not trivial to make Lua safely abort on OOM, and it’s not the default behavior. I also don’t think there are lua_push* function alternatives available using the default C API that don’t longjmp in a likely often unsafe manner out of your C code if you use them and you hit OOM.

Summed up, I would expect many Lua integrations to have the same problem.

Replying to an earlier post

If only it were that easy, if you do that, the managers will be grateful certainly, but they will also endlessly demand more proof and validation that the system is now completely safe from certain doom until they feel comfortable, which is never. In a lot of cases it’s simply easier to convince them that the system was never vulnerable to certain doom in the first place, because you were of course already 5 steps ahead of this even in the planning stages, and for some reason they have an easier time accepting that, as long as they still have every reason to believe you are a brilliant tech god who would never personally fall victim to such a common vulnerability. I suppose it’s really less about the reality of the situation and more about what kind of corporate image you are cultivating and maintaining for yourself.

Replying to @⁨SaharaMaleikuhm@feddit.org⁩

I am… well sorta. My team has to deal with the cleanup and repercussions at least. Let’s just say this week was not fun. At all.

In addition to the eMudhra certs and the php issue, there were also issues with python, Oracle, Java, and node.js. The certs and php were definitely the highest profile. They shut down incoming traffic to university web servers for the php one. The certs would have been more of a problem if we had extremely short expiration times

Replying to an earlier post

Yeah, so here’s the thing. People keep trying to bash on PHP as if anything software isn’t manmade and comes baked with flaws that can be exploited. It’s the single reason why cybersecurity products are never going to stop being used because no matter what, it’s based on something somebody made.

It’s going to be flawed or be exploitable by some means. Yesterday it was Log4J, now it’s PHP, tomorrow it will be something else. It will never end. Companies deliberately also use this to force you to upgrade because they’ve abandoned “legacy” products that still work but which they no longer choose to maintain because they want more money and need to stifle you for it somehow.

Replying to @⁨darthsundhaft@piefed.social⁩

rihht? opencloud posted a really tacky “nextcloud is dealing with this. checkout open cloud. written in go.”

dude… do we need to drop a link to the golang cves? they had a critical bug this year.

ruby? critical regex rce this week.

nodejs? same.

php made the news because of the embargo break making it go viral and everyone loving to hate on php. But people in glass houses should be careful throwing stones.

Replying to @⁨treverflume@lemmy.ml⁩

Rust itself doesnt get mant CVEs and its been quiet so thats nice.

its worth noting its a bit different than languages I listed and lower-level. Those languages are also runtimes that provide a large set of features that run with your code.

That means while you could write websites in Rust, reall it is what you might consider writing PHP in if you started in 2026 not an alternative. Its more closely like MUSL(did get a recent big security release 🙄) or glibc.

Replying to an earlier post

The companies with well-resourced dev teams would have been able to deal with it. But for every one of those there’s 50 companies with no dev team who are sending frantic emails to the guy who quit 3 years ago asking if he’s available for some urgent work. And another 50 that are not sending any emails because they’re oblivious and will get pwned in a few months.

A lot of PHP apps are old, unmaintained or run by people with no idea. That’s kinda it’s niche.

Replying to @⁨rimu@piefed.social⁩

Not entirely accurate. I happen to be my company’s 1 man IT army, and I got it all plugged within 4 hours (php2shell, CA certificates, which I only had to rotate, etc). It was bad, but the noise was even worse. If IT departments are proactive and do their jobs, the actual problems should be little to none.

Then I did the same in my proxmox, everything is just fine.