News for hackers. Stuff that matters.
Re:Apple agrees to settle potential class action suit by U.S... by inopinatus on Thursday August 26, 2021 @11:40PM (#28324056)
I once saw this implemented as a regex. Unfortunately the regex was refer*er.

“Tests pass, ship it”

Re:Apple agrees to settle potential class action suit by U.S... by exikyut on Thursday August 26, 2021 @11:46PM (#28324094)
The tests clearly did not include spinning up an HTTP server and actually using the correctly-spelled header (as per correct English), then.
Re:Apple agrees to settle potential class action suit by U.S... by dqv on Thursday August 26, 2021 @11:47PM (#28324098)
I don't know enough about overflows, but that could theoretically be exploited, right? referrrrrrrrrrrrrrrrrrrrrrrrrrrer
Re:Apple agrees to settle potential class action suit by U.S... by zeusk on Thursday August 26, 2021 @11:56PM (#28324135)
inb4 refeer (should've used referr?er)
Re:Apple agrees to settle potential class action suit by U.S... by xmprt on Friday August 27, 2021 @01:32AM (#28324594)
I also feel like this is a buffer overflow waiting to happen. If somehow someone makes the header length way longer than expected (eg. referrrrrrrrrrrrrrer).
Re:Apple agrees to settle potential class action suit by U.S... by jsjohnst on Friday August 27, 2021 @08:55AM (#28327192)
? is 0 or 1 instances of the preceding character, so referrrrrrrrrrrrrrer wouldn’t match /referr?er/, only referer or referrer.

Proof: https://regex101.com/r/s56ebD/1

Re:Apple agrees to settle potential class action suit by U.S... by xmprt on Friday August 27, 2021 @03:40PM (#28332143)
I'm replying to the grandparent comment. I said "Also" meaning I was adding onto your comment.