Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. GPT-6 Sol and Luna(openai.com)
    231comments
  2. Claude Opus 5.5(anthropic.com)
    548comments
  3. OpenAI GPT–6 Astra breaks Enigma message that has resisted solution since 2005(cryptocellar.org)
    312comments
  4. Claude Opus 5.5 Intelligence, Performance and Price Analysis (Max)(artificialanalysis.ai)
    34comments
  5. WordPress: Unauthenticated path traversal leading to conditional RCE(github.com/wordpress)
    33comments
  6. There's a high chance of devices being sold with GrapheneOS preinstalled in 2027(grapheneos.social)
    52comments
  7. OpenAI is well positioned to fast-follow Jev(arcturus-labs.com)
    138comments
  8. 16-bit Intel 8088 chip (c. 1985)(allpoetry.com)
    10comments
  9. Launch HN: Coverage Cat (YC S22) – Umbrella insurance via your personal agent(coveragecat.com)
    15comments
  10. Writing Rust code that's fast by asking agents to make the code faster(minimaxir.com)
    29comments
  11. Apple has added persistent 'ads' to iOS, and it's driving users crazy(techradar.com)
    335comments
  12. George Lucas Returns to Earth, Bearing Gifts(commonedge.org)
    2comments
  13. Show HN: AI·rete·RAG – a Rete rule engine decides, RAG explains why(ai-rete-rag.com)
    1comments
  14. Solitaire Alone Together(solitairealonetogether.com)
    22comments
  15. Show HN: Drop – A rootless Linux sandbox with gVisor support(droprun.sh)
    41comments
  16. Can gzip be a language model?(nathan.rs)
    130comments
  17. Unreal Agent(unreallabs.ai)
    1comments
  18. AMD's random number generator can't generate a 0?(flatassembler.net)
    161comments
  19. One Minute Park(oneminutepark.tv)
    5comments
  20. Truman World(trumanworld.live)
    29comments
  21. Show HN: InstinctFlash – Run 5B world-action models in real time on Jetson Thor(github.com/general-instinct)
    discuss
  22. Relativistic raytracing(publish.obsidian.md)
    5comments
  23. Training a model to identify AI-generated web content from structure alone(arxiv.org)
    2comments
  24. The Economics of Open-Weight Inference(ornn.com)
    22comments
  25. MUNI Heritage Weekend in San Francisco(lawrence.lu)
    26comments
  26. Side-stepping the Secretary Problem, unwittingly(evalapply.org)
    1comments
  27. I asked Meta’s Muse for its filesystem and it sent me 6.8GB(mouse.dev)
    122comments
  28. Meta’s Muse has a serious 0-day(arstechnica.com)
    39comments
  29. I said no and Apple said yes(dbushell.com)
    583comments
  30. MiMo v2.6(xiaomi.com)
    464comments

WordPress: Unauthenticated path traversal leading to conditional RCE

72 pointsby 2h agogithub.com
32 comments
2h agoHN ↗

pearcmd.php must exist, and register_argc_argv must be on, not common with hosting providers. But I am assuming the other themes and meeting conditions possibly affect a lot of WordPress sites.

1h agoHN ↗

As the article points out, one issue is that the official Docker container for PHP has this configuration.

However at least in principle all of the affected versions [0] could be automatically updated. Not sure if they have set it to auto-update as far back as 4.7 though.

[0] except 4.9.3 which has a bug in its automatic update mechanism.

1h agoHN ↗

pearcmd and register_argc_argv are just examples. get_page_template was unsanitized in some themes, that's the flaw, you could then combine it with one of a million unauthorized file upload in wordpress plugins to try and eval code. An attacker would like to use upload + this chain of requires (instead of just uploading a php) because of hardened configuration and the pwn can go unnoticed in the logs.

Also, with pearcmd (if you can get to that, there's no open_basedir) and containers a novice sysadmin will publish insecure sites.

2h agoHN ↗

These CVSS scores don't mean anything and it would be better for everyone if they stopped showing up in headlines. This is a somewhat situational Wordpress RCE that impacts only a couple themes.

1h agoHN ↗

This score specifically means that given some specific conditions, anyone can execute code over the network on a vulnerable WordPress setup. Is this not true?

1h agoHN ↗

I'm not saying that the vulnerability isn't severe or important to people running Wordpress, only that CVSS scores are literally a Ouija Board that can come out to whatever the user wants them to.

1h agoHN ↗

CVSS scores are literally a Ouija Board that can come out to whatever the user wants them to.

Not really. They are very good at describing the technical impact. Sometimes pre-condition is very rare and that reduces overall likelihood but for those few it applies, the impact still could be catastrophic. Who wants to risk it if whole business could go down?

1h agoHN ↗

So if I get a 9.8 that doesn't apply to my usage, what is the CVSS score doing for me?

1h agoHN ↗

Published CVSS is a base score that gives you a hint of how important the analysis of a vulnerability is to prioritise the patching or mitigation. What you see on websites is only ever the base spiciness so to speak. If you have for example wordpress only running in an isolated environment behind internal firewall rules you‘d downgrade it accordingly. It’s a imperfect metric but so far the best we have to signal priorities. It’s all described in its spec that no one seems to read and websites also communicate it badly.

1h agoHN ↗

Yes. It's amazing how supposedly security professionals only take the base score "as is" and never adjust.

Many GUI CVSS calculators exist just for this, it takes a minute to requalify a vuln and adjust its CVSS based on your specific environment.

This one for example is pretty basic but works well: https://www.first.org/cvss/calculator/4.0

These metrics enable the analyst to customize the CVSS score depending on the importance of the affected IT asset to a user’s organization, measured in terms of complementary/alternative security controls in place, Confidentiality, Integrity, and Availability. The metrics are the modified equivalent of base metrics and are assigned metric values based on the component placement in organization infrastructure.

1h agoHN ↗

You need to reason about both probability and impact, not one or the other. In your example, it just means that the probability is very low, perhaps even down to 0 in your specific case. But even at a low probability, the impact of the vulnerability remains very high so it helps you reason about it.

For example, you might react differently to these scores:

- <8/10: check that your systems are indeed secure

- 8.6/10: check that your systems are indeed secure and tell your junior analyst to train on creating a custom monitoring rule for that attack and follow-up with you

- 9.8/10: double-check that your systems are indeed secure, ensure that if you had a hole another security layer would have caught it (if not, that's a problem!), set up a honeypot to get some info on the assholes that have repeatedly attacked you lately and will undoubtedly try to 0-day you in the next few hours, etc.

1h agoHN ↗

Yeah give me a vuln and I can make it anything between a 2 and 8 quite easily. I routinely see 10s that are "Critical 10.0 CVE (but only if you're using X language with X setting changed from default, and the attacker can MiTM your traffic)"

1h agoHN ↗

My assumption is that any Wordpress setup whatsoever allows anyone to execute code remotely.

1h agoHN ↗

Indeed, it's a foothold into a network.

1h agoHN ↗

This is a somewhat situational Wordpress RCE that impacts only a couple themes. reply

That is dangerously incorrect, a whole lot of themes are vulnerable. The main pre-condition, "presence of a top-level directory named 'page-xxx' like 'page-templates' in the theme's directory" is actually an official recommendation in the WordPress documentation.

See here: https://developer.wordpress.org/themes/classic-themes/templa...

As discussed in Organizing Theme Files, WordPress can recognize page templates stored in the theme’s root folder or in a first-level subdirectory of the theme folder. *The page-templates/ folder is a common convention* for organizing global page templates, but it is not required. Page templates can also be stored in other first-level subdirectories, such as templates/ or page_templates/.

1h agoHN ↗

Yeah not sure why you’re being downvoted when the built in themes are vulnerable as is the default docker image pre php8.5 which a lot of people use as a base and I bet a lot of hosting providers use as well behind the scenes.

1h agoHN ↗

Not sure if it’s a couple. Devs routinely make heavily edited copies of the core themes so there will be many, many unpublished themes that use the “page-“ prefix for templates; it was (is?) a reasonably common convention.

(No particular disagreement with the rest of your comment though)

35m agoHN ↗

It's crazy how many users are standing by this take. Not only is a 9.8 CVSS critical, even if it doesn't affect your config, you should trash any dependency that has so many 9+CVSS vulns that you become numb to them.

When you use a dependency and a 9+CVSS vuln comes out, you read it and respect it. If you come to the conclusion that CVSS don't mean anything because there's just so many vulns, that's saying something of the dependency and your security posture.

Burn Wordpress with a flemmenwerfer, or build a hard virtualization layer around it, give it its own scoped certs, your Wordpress things will get hacked, especially if they use plugins.

1h agoHN ↗

hmm, this may be why i just saw an unexpected update to a very old theme.

39m agoHN ↗

It's not clear to me: do we need to both apply the patch _and_ check if our themes are vulnerable, or just apply the patch?

Edit: looking at the patch itself it looks like it fixes the root cause and so it shouldn't matter what themes are doing themselves. But possibly I'm reading it incorrectly.

1h agoHN ↗

Ironically, this 9 years old comment on the official documentation page of one of the affected functions perfectly describes both the nature and remediation of this major security flaw:

Paul Ryan 9 years ago

Note that locate_template() does not prevent directory traversal attacks, so if you’re passing a user-provided template name to the function, be sure to verify that it’s from one of the three appropriate locations (active theme directory, parent theme directory, or /wp-includes/theme-compat/ directory).

https://developer.wordpress.org/reference/functions/locate_t...

1h agoHN ↗

Ahahah I remember to have patched themes for clients by hand, years ago. A different time, where a core team would for whatever reason leave security holes around to be sure you need three frameworks around their pile of dung code.

59m agoHN ↗

These are the reason, why every easily reachable web server will be spammed with /something/something.php?somearg=someval. If I had to guess, which software on the web has been the most exploitable over all of the web's history, WP would surely be among the top candidates. Maybe right after MS Teams or Sharepoint or some stuff like that.

37m agoHN ↗

WP would surely be among the top candidates

And its closely related cousin, Joomla.

11m agoHN ↗

TBF, some of it is structural: if you're the most popular anything on the internet, you'll be the most attacked and the most exploited, and hence the most exploitable.

32m agoHN ↗

I am so happy that I asked Codex to rewrite our website as Hugo templates which allowed us to statically host it and get rid of Wordpress. So much stress gone!

11m agoHN ↗

To be clear, those are CVEs in the tooling, not in the generated static sites. Not great, but very different from this WordPress CVE

12m agoHN ↗

When I finally got approval to rewrite the company blog from Wordpress into something that was mostly static, it was the best week. I used PHP to do mobile/desktop and language selection, because PHP is pretty useful, and it can be pretty fast and secure if you only do simple things.

Never had to worry again about sequencing updates where the update changed the database schema and I had a cluster of 6 web servers. Never had to worry anymore about long ass load times because the web servers were in 3 colos and wordpress wouldn't play nice with local read only mysql replicas. No more worries about why pingbacks and comments keep showing up in the database even those those features were turned off; at least they weren't showing up in a moderation queue, but still.

17m agoHN ↗

WordPress really is a piece of garbage software, and if you've ever developed plugins for it it is soooo apparent.

The documentation is a perfect reflection of the absolute mess of spaghetti code that it is, half of the methods that you will use constantly when developing plugins are undocumented, even untyped. It's literally unusable.

I know WordPress is good thanks to its ecosystem, but really, really, do NOT use it.