frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Gödel's Beavers, or the Limits of Knowledge

https://lcamtuf.substack.com/p/monkeys-typewriters-and-busy-beavers
1•weinzierl•59s ago•0 comments

Congress passes budget reconciliation bill with $10B for NASA – SpaceNews

https://spacenews.com/congress-passes-budget-reconciliation-bill-with-10-billion-for-nasa/
1•rbanffy•1m ago•0 comments

Trump's 'Big, Beautiful Bill' Will Make China Great Again

https://www.nytimes.com/2025/07/03/opinion/trump-bill-clean-energy-china.html
1•rbanffy•2m ago•0 comments

My Blog Is Overengineered to the Point People Think It's a Static Site (2022)

https://xeiaso.net/talks/how-my-website-works/
1•Wingy•4m ago•0 comments

Ask HN: Is there a market for agentic scraping tools?

1•mxfeinberg•6m ago•0 comments

Hanako-San

https://en.wikipedia.org/wiki/Hanako-san
1•areoform•6m ago•0 comments

Ask HN: What are fundamental books on systems, system thinking, reliability?

1•dondraper36•6m ago•0 comments

Stop Killing Games in EU passed 1.000.000 signatures

https://www.msn.com/en-us/news/technology/stop-killing-games-reaches-1-million-signatures-as-players-continue-fight-for-game-preservation/ar-AA1HXsyd
1•aureliusm•7m ago•0 comments

Jan – Local AI Assistant

https://github.com/menloresearch/jan
1•indigodaddy•7m ago•0 comments

Fixing the Web? – Carson Gross [video]

https://www.youtube.com/watch?v=9NDkOehZUGs
1•todsacerdoti•7m ago•0 comments

Cod Have Been Shrinking for Decades, Scientists Say They've Solved Mystery

https://www.smithsonianmag.com/smart-news/these-cod-have-been-shrinking-dramatically-for-decades-now-scientists-say-theyve-solved-the-mystery-180986920/
1•littlexsparkee•13m ago•1 comments

Show HN: I built an multi-devices AI usage analytics app for Claude Code

https://roiai.fyi
1•fuzzyrock•14m ago•0 comments

How to create repositories in Artifactory with curl

https://www.zufallsheld.de/2025/06/30/til-how-to-create-artifactory-repos/
1•zufallsheld•15m ago•0 comments

Writing Modular Prompts

https://blog.adnansiddiqi.me/writing-modular-prompts/
1•pknerd•17m ago•0 comments

Show HN: Centenary Day – toolkit for healthy living (routines, meals, tracking)

https://centenary.day
1•arnasstucinskas•17m ago•0 comments

AI 'thinks' like a human – after training on 160 psychology studies

https://www.nature.com/articles/d41586-025-02095-8
2•rbanffy•17m ago•0 comments

I got rid of all my Neovim plugins

https://yobibyte.github.io/vim.html
2•Bogdanp•24m ago•0 comments

Show HN: Flaget – small 5kB CLI argument parser for Node.js

2•biodiscus•25m ago•1 comments

Cursive writing could become a requirement for students in Pa

https://www.phillyvoice.com/cursive-writing-requirements-pennsylvania-new-jersey/
1•geox•26m ago•0 comments

Recreating Early Colour Outside Broadcast [video]

https://www.youtube.com/watch?v=CztsTpgFOnU
1•mhh__•26m ago•0 comments

LLM-d: Disaggregated Serving northstar

https://docs.google.com/document/d/1FNN5snmipaTxEA1FGEeSH7Z_kEqskouKD1XYhVyTHr8/edit?tab=t.0
2•samber•27m ago•0 comments

A new law in Sweden makes it illegal to buy custom adult content

https://www.euronews.com/next/2025/06/22/takes-away-our-safest-option-adult-creators-react-to-law-banning-online-sex-purchases-in-s
8•diggan•28m ago•2 comments

The Mother of All Demos

https://en.wikipedia.org/wiki/The_Mother_of_All_Demos
1•taubek•30m ago•0 comments

KDE Plasma 6.4 has landed in OpenBSD

https://undeadly.org/cgi?action=article;sid=20250705081711
4•bradley_taunt•33m ago•0 comments

Proposal: GUI-first, text-based mechanical CAD inspired by software engineering

1•thinkmachyx•37m ago•2 comments

Show HN: Baml_vcr -Record your LLM calls and play them back during tests

https://github.com/gr-b/baml_vcr
1•grbsh•37m ago•0 comments

Kioxia CD9P Showing the Power of New BiCS Flash at HPE Discover 2025

https://www.servethehome.com/kioxia-cd9p-showing-the-power-of-new-bics-flash-at-hpe-discover-2025/
1•rbanffy•38m ago•0 comments

Overview of new technologies applied to BiCS FLASH generation 8

https://www.kioxia.com/en-jp/rd/technology/topics/topics-66.html
2•rbanffy•38m ago•1 comments

Predicting average IMDB movie ratings using text embeddings of movie metadata

https://minimaxir.com/2025/06/movie-embeddings/
1•minimaxir•41m ago•0 comments

AI winter is well on its way (2018)

https://blog.piekniewski.info/2018/05/28/ai-winter-is-well-on-its-way/
6•darkhorse13•45m ago•0 comments
Open in hackernews

CRLF Injection in `–proxy-header` allows extra HTTP headers (CWE-93)

https://hackerone.com/reports/3133379
11•oblivionsage•1mo ago

Comments

blueflow•1mo ago
Check the man-page first. You need to know how a program is supposed to behave before you can know that an observed behavior is off-spec and warrants a bug.
robertlagrant•1mo ago
I don't understand the "This is not supposed to happen". Can someone explain?

To me this is the same as

  --proxy-header "X-Test: hello" --proxy-header "X-Evil: owned"
flotzam•1mo ago
Imagine running

  curl --proxy-header "X-Test: $UNTRUSTED_USER_INPUT"
wang_li•1mo ago
That is not a bug in curl, at most it's a bug in whatever gathered $UNTRUSTED_USER_INPUT.
flotzam•1mo ago
People still expect an API to reject illegal values. Calling the parameter --proxy-header (singular) could lead someone to assume that multiline strings are illegal values, even if there's a note in the docs somewhere saying otherwise.
blueflow•1mo ago
Then the people assuming random things without doing research are to blame, not curl.
flotzam•1mo ago
Apportioning blame doesn't get rid of bugs; misuse resistant APIs do.
blueflow•1mo ago
Reading docs ("research") is essential part of engineering.

Lets ask the question reversed: How did people know in the first place what kind of string they need to give to --proxy-header?

flotzam•1mo ago
> Reading docs ("research") is essential part of engineering.

Sure, but so is safety engineering. Making mechanisms more obvious to use correctly or fail safe if used incorrectly improves outcomes when flawed human beings use them. It also makes them more pleasant to use in general.

Besides, look at the man page in question. It's talking about this in terms of encoding niceties and doesn't even spell out the possibility of deliberate, let alone malicious multiline values:

"curl makes sure that each header you add/replace is sent with the proper end-of-line marker, you should thus not add that as a part of the header content: do not add newlines or carriage returns, they only mess things up for you."

That's inducing a wrong/incomplete mental model of how this parameter works.

blueflow•1mo ago
> doesn't even spell out the possibility of deliberate, ... multiline values

It does for me, as any kind of extra newlines results in a multi-line string.

> ... malicious ...

Like Daniel said, garbage in, garbage out. If you pass user inputs to curl, one should check what curl does with these values and take proper care.

robertlagrant•1mo ago
> do not add newlines or carriage returns, they only mess things up for you

I disagree, but I would say that curl might as well add this as a validation check than a documentation warning.

blueflow•1mo ago
This is explained in the ticket:

  One of the reasons we still allow that is that this "feature" was used quite deliberately by users in the past and I have hesitated to change that for the risk that it will break some users use cases.
robertlagrant•1mo ago
Yes, I'm not sure if I agree with this or not. Those users don't have to upgrade. But obviously I'm not maintaining a key tool for the world. It's just my opinion.
soraminazuki•1mo ago
One shouldn't construct shell commands from untrusted user input in the first place unless they know exactly what they're doing and is aware of all the pitfalls. It's the worst possible tool to be using if the aim is to avoid security issues with minimal effort. Debating about this particular curl quirk distracts from the bigger issue IMO.
robertlagrant•1mo ago
> That is not a bug in curl, at most it's a bug in whatever gathered $UNTRUSTED_USER_INPUT.

But that could just contain the bad header only, could it not?

jeroenhd•1mo ago
I suppose it kind of depends. I agree with the curl team here that this is a case of garbage in/garbage out, but I can imagine this going wrong with a binary protocol like HTTP2 on the front and a text protocol like HTTP 1.1 behind a reverse proxy. The \r\n will make it to the proxy as a separate header, but will be turned into two headers on the upstream.

That said, this would be a (reverse) proxy vulnerability, not one in curl.

ale42•1mo ago
I'm not sure where is the security issue here. As already noted, one can just put several --proxy-header arguments, so the functionality is equivalent.

The only way this would do something unexpected (and not necessarily dangerous besides breaking the service) would be if the curl command would be used in a scenario like: (1) curl is used by some script to access some API or other URL, (2) a user can configure the script to give a specific value to an header, let's say an authentication token or similar, but the user can't directly alter the curl command (e.g. because they can only change URL and TOKEN with a web interface). Here the user would be able to add an header IF the script is not properly sanitizing the input (so the supposed security issue IMHO would be in the script), but if adding an additional header breaks security, the underlying system has a problem too...

In a very far-stretched scenario, one can possibly add two CRLFs and have the rest of the header (if any) considered by the server as data. IF the request is a POST/PUT/... request, and IF the server returns (or allows later access to) the data, and IF the attacker manipulating the supposedly-restricted single-header can see the output of the call (or retrieve the saved data), then we'd have an information disclosure issue. Would it disclose anything sensitive? Not sure, unless there's an auth token or something AFTER the header. And again, I'd rather incriminate the curl caller for not sanitizing the input if this happens.