Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Claude Opus 5.5(anthropic.com)
    341comments
  2. OpenAI GPT–6 Astra breaks Enigma message that has resisted solution since 2005(cryptocellar.org)
    277comments
  3. Claude Opus 5.5 Intelligence, Performance and Price Analysis(artificialanalysis.ai)
    4comments
  4. 16-bit Intel 8088 chip(allpoetry.com)
    5comments
  5. WordPress: Unauthenticated path traversal leading to conditional RCE(github.com/wordpress)
    11comments
  6. Launch HN: Coverage Cat (YC S22) – Umbrella insurance via your personal agent(coveragecat.com)
    discuss
  7. OpenAI is well positioned to fast-follow Jev(arcturus-labs.com)
    106comments
  8. Writing Rust code that's fast by asking agents to make the code faster(minimaxir.com)
    18comments
  9. Apple has added persistent 'ads' to iOS, and it's driving users crazy(techradar.com)
    267comments
  10. Show HN: AI·rete·RAG – a Rete rule engine decides, RAG explains why(ai-rete-rag.com)
    discuss
  11. Show HN: Drop – A rootless Linux sandbox with gVisor support(droprun.sh)
    32comments
  12. Solitaire Alone Together(solitairealonetogether.com)
    16comments
  13. Can gzip be a language model?(nathan.rs)
    124comments
  14. AMD's random number generator can't generate a 0?(flatassembler.net)
    153comments
  15. There's a high chance of devices being sold with GrapheneOS preinstalled in 2027(grapheneos.social)
    2comments
  16. MiMo v2.6(xiaomi.com)
    462comments
  17. Spymarks, not Watermarks(brand.io)
    155comments
  18. Show HN: InstinctFlash – Run 5B world-action models in real time on Jetson Thor(github.com/general-instinct)
    discuss
  19. One Minute Park(oneminutepark.tv)
    discuss
  20. Teleoperated Humans(jefftk.com)
    34comments
  21. Aging may be a program, not a breakdown(quantamagazine.org)
    40comments
  22. Meta’s Muse has a serious 0-day(arstechnica.com)
    31comments
  23. I asked Meta’s Muse for its filesystem and it sent me 6.8GB(mouse.dev)
    99comments
  24. Relativistic raytracing(publish.obsidian.md)
    1comments
  25. MUNI Heritage Weekend in San Francisco(lawrence.lu)
    20comments
  26. The Economics of Open-Weight Inference(ornn.com)
    7comments
  27. Xbox continues its “reset” with dramatic restructuring(arstechnica.com)
    34comments
  28. Transformers Explained Visually(poloclub.github.io)
    84comments
  29. Vacate a drone restriction that criminalized recording immigration agents(eff.org)
    10comments
  30. I said no and Apple said yes(dbushell.com)
    527comments

WordPress: Unauthenticated path traversal leading to conditional RCE

25 pointsby 57m agogithub.com
11 comments
33m 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.

14m 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.

11m 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.

29m 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.

17m 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?

11m 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.

17m 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/.

10m 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)

20m agoHN ↗

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

13m 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...

5m 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.