frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

How VictoriaLogs Stores Your Logs in a Columnar Layout

https://victoriametrics.com/blog/victorialogs-internals-columnar-storage-on-disk/index.html
2•eatonphil•3m ago•0 comments

The curious case of the disappearing Polish S

https://aresluna.org/the-curious-case-of-the-disappearing-polish-s/
1•colinprince•5m ago•0 comments

Three.js R185 Released

https://twitter.com/threejs/status/2070082345689067978
3•aurenvale•8m ago•0 comments

The MUMPS 76 Primer – anniversary edition

https://github.com/rochus-keller/MUMPS/blob/main/docs/MUMPS_Primer.adoc
2•Rochus•8m ago•1 comments

Trump Cut a Billion-Dollar Mining Deal. His Sons Stand to Profit

https://www.nytimes.com/2026/06/28/world/europe/trump-lutnick-sons-kazakhstan.html
3•tcp_handshaker•10m ago•0 comments

After the AI Hype – What's Real, and What's Next – Richard Campbell – 2026

https://www.youtube.com/watch?v=uWnUnMphmPM
1•tcp_handshaker•11m ago•0 comments

Academic-writing kit for Claude Code

https://github.com/josefslerka/study-kit
1•josefslerka•13m ago•0 comments

Show HN: Meta Ads vs. ASA vs. GAC for indie apps (2026 data)

https://launchshots.app/blog/meta-ads-app-install-2026
1•okutan•18m ago•0 comments

The Scaling of PEFT: Towards Million Personal Models of Trillion Parameters

https://arxiv.org/abs/2606.02437
1•Anon84•19m ago•0 comments

A way to exclude sensitive files issue still open for OpenAI Codex

https://github.com/openai/codex/issues/2847
3•pikseladam•22m ago•1 comments

Starbucks Is One of the Largest Banks

https://www.msn.com/en-us/money/companies/starbucks-is-secretly-one-of-the-world-s-largest-banks/...
2•ColinWright•24m ago•0 comments

Guy in his basement creates a drug to treat Alzheimer's disease using AI

https://twitter.com/DouglasYaoDY/status/2070904914050797582
11•binyu•26m ago•5 comments

NASA tests AI medic for astronauts too far from Earth to call a doctor

https://www.theregister.com/ai-and-ml/2026/06/27/nasa-tests-ai-medic-for-astronauts-too-far-from-...
3•LorenDB•26m ago•0 comments

Show HN: Sambee – browser-based file manager for SMB shares and local drives

https://sambee.net
2•helgek•27m ago•0 comments

Warp Point: A curated webring of video game websites

https://www.warppoint.games/
1•mysterydip•27m ago•0 comments

The crowd-funded Porsche 911

https://project996.fun
2•mhavelka77•29m ago•3 comments

Show HN: Parseflow – Extract data from any document. Entirely on your Mac

https://www.parseflow.io/
1•devtanna•35m ago•0 comments

Beyond symbolic algebra with quantum picturalism

https://www.frontiersin.org/journals/cognition/articles/10.3389/fcogn.2026.1790789/full
2•mathgenius•36m ago•0 comments

Denoising Voice Recordings On-Device

https://www.duration.ai/blog/denoising-voice-recordings-on-device
1•sudb•38m ago•0 comments

Ask HN: Are OTA updates for native iOS/Swift apps allowed?

1•jackappdev•40m ago•0 comments

Cypherpunk Library

https://www.cypherpunklibrary.com/collection
2•bookofjoe•41m ago•0 comments

Nearly Three-Quarters of Dutch Responses to EU Tobacco Rules Were AI-Generated

https://pointer.kro-ncrv.nl/meerderheid-nederlandse-inspraak-op-strengere-eu-tabakswet-afkomstig-...
4•stefanvdw1•45m ago•0 comments

Ask HN: If someone invested $100k now for your startup, how would you spend it?

4•aurenvale•50m ago•1 comments

Tldr.fail – buggy servers break PQ KEX compatibility in TLS

https://tldr.fail/
1•basilikum•52m ago•0 comments

Kids act would require age checks to get online

https://www.eff.org/deeplinks/2026/06/kids-act-would-require-age-checks-get-online
9•bilsbie•53m ago•3 comments

CORS Explained in Plain English

https://sanyamserver.online/posts/cors/
3•RickJWagner•53m ago•0 comments

More evidence of life on Mars but still no life (2025)

https://www.cbc.ca/radio/quirks/more-evidence-of-life-on-mars-but-still-no-life-1.7649645
16•pseudolus•54m ago•5 comments

From Prompts to Loops: Building Autonomous Coding Agents

https://animeshgaitonde.medium.com/from-prompts-to-loops-building-autonomous-coding-agents-6135bf...
1•animesh371g•56m ago•0 comments

Expect Claude Fable 5 to Be Turned Back on in a Matter of Days, Report Says

https://gizmodo.com/expect-claude-fable-5-to-be-turned-back-on-in-a-matter-of-days-report-says-20...
2•HiroProtagonist•57m ago•0 comments

Beyond Functional Programming: The Verse Programming Language (2022) [pdf]

https://simon.peytonjones.org/assets/pdfs/haskell-exchange-22.pdf
1•tosh•57m ago•0 comments
Open in hackernews

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

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

Comments

blueflow•1y 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•1y 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•1y ago
Imagine running

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

jeroenhd•1y 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•1y 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.

blueflow•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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?