frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Perfect Code, No Secrets

https://funnelstory.ai/blog/engineering/perfect-code-no-secrets
1•preetamjinka•1m ago•0 comments

I built a Telegram bot for crypto arbitrage alerts 20 exchanges flexible signals

1•quatro•3m ago•0 comments

Amplification of epidemic spread by individuals exposed to misinformation

https://www.nature.com/articles/s44260-025-00038-y
1•rbanffy•5m ago•0 comments

Pgline – PostgreSQL node.js driver written in TypeScript

https://github.com/stanNthe5/pgline
1•theThree•5m ago•0 comments

LightLab: Controlling Light Sources in Images with Diffusion Models

https://nadmag.github.io/LightLab/
1•billconan•6m ago•0 comments

Robin: A multi-agent system for automating scientific discovery

https://arxiv.org/abs/2505.13400
1•nopinsight•9m ago•0 comments

Show HN: I Launched an Agency Framer Template Celebrating with a Discount

https://www.framer.com/marketplace/templates/kierkegaard/
1•brownieman1325•9m ago•0 comments

Show HN: A browser-based tone generator built with the Web Audio API

https://maketonesonline.com/
2•eddguzzo•9m ago•0 comments

Struggling with what to do with engineering intern

1•pootietangus•10m ago•0 comments

Show HN: prompt-kit, UI components and blocks for building AI apps

https://www.prompt-kit.com/
1•ibelick•10m ago•0 comments

French police launch prison hunt for mini Chinese-made phones

https://www.bbc.com/news/articles/cnv11qvq397o
2•rntn•11m ago•2 comments

Finding Your Next Amusement Park Ride with APIs

https://www.raymondcamden.com/2025/05/15/finding-your-next-amusement-park-ride-with-apis
1•gnabgib•11m ago•0 comments

An Open File Format for storing the information from a forge such as issues, pu

https://f3.forgefriends.org/
1•todsacerdoti•15m ago•0 comments

Verify and find human-made content

https://nonbot.org
1•saikatsg•17m ago•0 comments

Spring AI 1.0 GA Released

https://spring.io/blog/2025/05/20/spring-ai-1-0-GA-released/
1•kreig•17m ago•0 comments

Universal Intelligence v1.0 is out AI made simple

https://github.com/blueraai/universal-intelligence
1•bluera•17m ago•1 comments

Show HN: LLM Inference Requirements Profiler

https://www.open-scheduler.com/
2•benjonr•17m ago•0 comments

Tell HN: Got a dev project? Have my premium .dev domain

1•pavlov•17m ago•0 comments

Show HN: A Lichess-inspired online chess app I built as a junior dev

https://chess-pearl-xi.vercel.app/
1•bberkay•18m ago•0 comments

Installing Consumer-Owned Antennas and Satellite Dishes

https://www.fcc.gov/consumers/guides/installing-consumer-owned-antennas-and-satellite-dishes
1•toomuchtodo•20m ago•3 comments

Show HN: Secria – Private, Secure Email Built for the Quantum Era

2•adrianmav•20m ago•0 comments

Show HN: I built an app that turns code or Swagger into interactive API docs

https://www.docpilot.dev/
1•AnindoNeel•20m ago•0 comments

A Genetic Clue to Why Men Are Taller Than Women

https://www.nytimes.com/2025/05/19/health/height-men-women-genes.html
2•marojejian•23m ago•1 comments

Teachable Machine

https://teachablemachine.withgoogle.com/
7•tosh•23m ago•0 comments

Show HN: Chatsh – A Conversational CLI Blending Terminal Ops with Real-Time Chat

https://github.com/ponyo877/chatsh
2•ponyo877•23m ago•0 comments

Hypervisor as a Library

https://seiya.me/blog/hypervisor-as-a-library
1•mfrw•25m ago•0 comments

I created a browser extension for web developers and they are loving it

3•zicsus•26m ago•0 comments

Ask HN: How far are we from the days that banks are fully operated by AI Agents?

2•johndavid9991•28m ago•2 comments

Ask HN: How to solve the customer onboarding bottleneck?

1•bewal416•28m ago•1 comments

27000 Dragons and 10'000 Lights: GPU-Driven Clustered Forward Renderer

https://logdahl.net/p/gpu-driven
15•logdahl•33m ago•2 comments
Open in hackernews

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

https://hackerone.com/reports/3133379
10•oblivionsage•4h ago

Comments

blueflow•4h 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•2h 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•1h ago
Imagine running

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