frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Quantifying the Swiss Marriage Tax

https://gendx.dev/blog/2026/03/02/swiss-marriage-tax.html
1•birdculture•59s ago•0 comments

Migrating 11,000 JavaScript files to TypeScript over 7 years at Patreon

https://www.patreon.com/posts/seven-years-to-typescript-152144830
1•satvikpendem•1m ago•0 comments

Engineering over Enforcement (2023)

https://www.contraption.co/engineering-over-enforcement/
1•mooreds•3m ago•0 comments

The jellyfish knows how to survive uncertain times

https://herbertlui.net/the-jellyfish-knows-how-to-survive-uncertain-times/
1•herbertl•4m ago•0 comments

Obama is right about aliens

https://www.doomsdayscenario.co/p/obama-is-right-about-aliens
1•mooreds•7m ago•0 comments

Life in the Endless Scroll: What We're Losing

https://www.medscape.com/viewarticle/life-endless-scroll-what-were-losing-2026a10005od
1•wjb3•7m ago•0 comments

Zen of AI Coding

https://nonstructured.com/zen-of-ai-coding/
1•vinhnx•7m ago•0 comments

Intent-Based Access Control (IBAC) – FGA for AI Agent Permissions

https://ibac.dev
1•ERROR_0x06•8m ago•0 comments

Moving to 199-day validity for public TLS certificates

https://knowledge.digicert.com/alerts/public-tls-certificates-199-day-validity
1•thread_id•11m ago•0 comments

The Wealth of Wall Street with Oren Cass [video]

https://www.youtube.com/watch?v=SL2aA8cgIB8
1•mooreds•13m ago•0 comments

Eurosky.social accounts – launching early February

https://www.eurosky.tech/register
2•doener•13m ago•0 comments

Spain says we have the necessary resources to contain US trade embargo

https://www.marketscreener.com/news/spanish-government-on-trump-threat-to-cut-trade-we-have-the-n...
2•rguiscard•13m ago•1 comments

Four Decades of Inquiry into the Genetic Bases of Specific Reading Disability

https://pubs.asha.org/doi/epdf/10.1044/2025_JSLHR-25-00050
1•wjb3•14m ago•0 comments

Show HN: Finqual – Free SEC-based API for fundamentals, insider and 13F data

https://finqual.app/
1•myztika•15m ago•0 comments

Reverse engineering "Hello World" in QuickBASIC 3.0

https://marnetto.net/2026/03/01/brun-hello-world
1•avadodin•15m ago•0 comments

Ask HN: Are you running a free product (pre-revenue)?

1•LeanVibe•15m ago•0 comments

Interactive Fiction Theory and Criticism

https://the-rosebush.com/
1•agnishom•15m ago•0 comments

The evolution of background job frameworks in Ruby

https://riverqueue.com/blog/ruby-queue-history
2•thunderbong•15m ago•0 comments

Tunesia authoritative nameservers for .tn are down

https://www.google.com/
2•NoahZuniga•16m ago•1 comments

"We have made the decision to permanently shut down Highguard."

https://twitter.com/PlayHighguard/status/2028923492125819287
1•minimaxir•16m ago•0 comments

The missing piece for AI coding agents

https://www.buildbuddy.io/blog/remote-bazel-with-agents/
2•jshchnz•16m ago•0 comments

After 8 years on WordPress, I migrated to AstroJS Starlight. Here's the how-to

https://pawelcislo.com/posts/migrating-from-wordpress-to-astrojs-starlight/
1•pyxelr•18m ago•0 comments

Key takeaways from the 2026 State of Software Delivery

https://circleci.com/blog/five-takeaways-2026-software-delivery-report/
1•Illniyar•18m ago•0 comments

Graduate from Single-Session Coding: My Full Agentic Coding Workflow

https://medium.com/@btraut/assemble-your-agent-team-fbfb6b8904b2
1•btraut•18m ago•0 comments

Ketamine may fight chronic fatigue, study suggests

https://medicalxpress.com/news/2026-02-ketamine-chronic-fatigue.html
3•PaulHoule•18m ago•0 comments

Replicating Empirical AI Safety Research

https://secondlookresearch.com/
1•salkahfi•18m ago•0 comments

Closing the Loop – Optimizing the Agentic SDLC

https://medium.com/@btraut/closing-the-loop-3286bb886605
1•btraut•19m ago•0 comments

Yard Kitchen – 3D interactive Jamaican cookbook with AI cooking assistants

https://yard-kitchen.vercel.app
1•amdr_automate•20m ago•1 comments

Why the Open Web Matters: A Claude Code Agent's Case for Open Infrastructure

https://blog.unratified.org/2026-03-03-in-defense-of-the-open-web/
1•9wzYQbTYsAIc•20m ago•0 comments

Military Leaders Say Iran War Is So Trump Can Bring About "Armageddon"

https://newrepublic.com/post/207270/military-leaders-iran-war-donald-trump-jesus-armageddon
6•Teever•21m ago•0 comments
Open in hackernews

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

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

Comments

blueflow•9mo 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•9mo 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•9mo ago
Imagine running

  curl --proxy-header "X-Test: $UNTRUSTED_USER_INPUT"
wang_li•9mo ago
That is not a bug in curl, at most it's a bug in whatever gathered $UNTRUSTED_USER_INPUT.
flotzam•9mo 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•9mo ago
Then the people assuming random things without doing research are to blame, not curl.
flotzam•9mo ago
Apportioning blame doesn't get rid of bugs; misuse resistant APIs do.
blueflow•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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.