News for hackers. Stuff that matters.

aboutruby

Re:CVE-2019-5418 – File Content Disclosure on Rails on Friday March 22, 2019 @06:48AM (#19461222)
It's actually in ActionPack / Railties but I've raised the issue:

https://github.com/rails/rails/issues/35702

Re:CVE-2019-5418 – File Content Disclosure on Rails on Thursday March 21, 2019 @11:19PM (#19459367)
You could get the origin IP and bypass Cloudflare, there are many many ways to do this.
Re:Repl.it GFX: Native graphics development in the browser on Thursday March 21, 2019 @09:44PM (#19458998)
Quite impressive, you can basically run anything on a VNC, this could even be used for automated browser testing and many other things! Congrats!
Re:CVE-2019-5418 – File Content Disclosure on Rails on Thursday March 21, 2019 @07:49PM (#19458466)
Good call, I went through the top results on Google and edited the answers/posted a comment to signal this vulnerability.

Also as others pointed out, this is a pretty rare use of `render` (but any application large enough might have it).

Re:CVE-2019-5418 – File Content Disclosure on Rails on Thursday March 21, 2019 @05:28PM (#19457527)
This was fixed in 6.0.0.beta3, 5.2.2.1, 5.1.6.2, 5.0.7.2, 4.2.11.1 one week ago.

https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6...

The two HN posts didn't get many upvotes though: https://hn.algolia.com/?query=https:%2F%2Fweblog.rubyonrails...

Admittedly there is probably a lot of applications out there running outdated versions.

edit: Kind of surprising this gets upvoted while we rarely see things from exploit-db / fulldisclosure

Re:Why I turned down my Y Combinator interview on Thursday March 21, 2019 @11:53AM (#19453797)
I don't think other companies are going to buy into the new companies's products if those are not good. It's one thing to be able to reach to YC companies/founders, another to convince them to use your product.
Re:Cloudflare Registrar on Thursday March 21, 2019 @11:48AM (#19453734)
Quite a large list of TLDs, would be more helpful if somehow sorted by popularity too and showing which ones are not available.

https://www.cloudflare.com/tld-policies/

This is a link to a thread (created by the parent commenter) with 15 comments on a post about DuckDuckGo.

Link is from 2016 obviously.

Re:In Defense of YAML on Thursday March 21, 2019 @09:44AM (#19452215)
I wish there was a .safe_yaml or something that would just use YAML.safe_load, would get rids of most of the YAML issues for me.
Re:A Pwn2Own Exploit Chain on Thursday March 21, 2019 @08:54AM (#19451711)
> for macOS 10.13.3

macOS 10.13, High Sierra, June 5, 2017

macOS 10.14, Mojave, June 4, 2018

10.13.3 released January 23, 2018, with another little update February 19, 2018

10.13.4 released March 29, 2018

https://en.wikipedia.org/wiki/MacOS_High_Sierra

Not sure how much of this applies to other released macOS versions.

Quite impressive as it goes all the way to load a kernel extension.

(Title should be "Pwn2Own 2018: Safari + macOS")

Also ~50% macOS users are on High Sierra. Not sure about point releases.

That's interesting, I don't use vim snippets but seems like there is a few of them (mainly snipMate/UltiSnips)

https://vi.stackexchange.com/questions/7466/what-is-the-diff...

And there is a community-maintained repository of snippets: https://github.com/honza/vim-snippets

Re:Commento: Open-Source Disqus Alternative on Wednesday March 20, 2019 @12:36PM (#19443888)
And mine is about Reddit too :) (which follows the markdown spec pretty well actually)
Re:Commento: Open-Source Disqus Alternative on Wednesday March 20, 2019 @12:35PM (#19443873)
You are a life saver! Now they just need to fix the reputation for new users but that's a lot more complex.
Won't you mind sharing your childhood photos then? Things you wrote, things you said, things you did? That were captured without your permission?
Being anonymous or more likely pseudo-anonymous is very undervalued. I think there is already a trend but in the future people are likely to have many pseudo-anonymous identities and one public one with as few data possible and as curated as possible.
Re:LLVM 8.0.0 Release on Wednesday March 20, 2019 @09:52AM (#19442139)
Re:LLVM 8.0.0 Release on Wednesday March 20, 2019 @09:50AM (#19442130)
The other post has no comments yet and the link is: https://lists.llvm.org/pipermail/llvm-announce/2019-March/00...
Re:Rails on OCaml on Wednesday March 20, 2019 @08:12AM (#19441264)
On a related note, Stripe may open source their ruby type checker at some point, sorbet: https://sorbet.run

If you are interested you can email [email protected] (it's been almost a year with no releases though).

Re:Commento: Open-Source Disqus Alternative on Wednesday March 20, 2019 @08:07AM (#19441230)
`this` is for inline code,

```

this

```

is for code blocks.

https://github.com/adam-p/markdown-here/wiki/Markdown-Cheats...

Re:Commento: Open-Source Disqus Alternative on Wednesday March 20, 2019 @07:29AM (#19440989)
Reddit supports ``` BTW. You are thinking of StackOverflow probably (which is very annoying). Extra bonus points to sites like Github for supporting ```language-name, e.g. ```js / ```ruby / etc.
> On Android phones, you’ve always been able to install any search engine or browser you want, irrespective of what came pre-installed on the phone when you bought it.

cough cough cough, that google search bar in the home screen by default is pretty Google Search specific.

Re:Ask HN: Does anybody use Git history (Git log) as a CV? on Tuesday March 19, 2019 @08:41PM (#19437734)
Happens often, but you surely use your Github account to communicate in public projects, maybe even contribute.

To me, one good PR is worth a lot more than a small unused/demo project.

Re:What Working at Stripe Has Been Like on Tuesday March 19, 2019 @06:05PM (#19436550)
Thanks a lot!
Re:Ask HN: What non-coding ways are people using GitHub? on Tuesday March 19, 2019 @03:43PM (#19434883)
Being able to have geojson is gist is amazing, you can quickly show any data-related maps.

And I don't use it, but Jupyter notebooks are supported too.

Also they are people using it to version laws/texts in general.

And bonus: you can use it to store arbitrary data even though it's not recommended/could be against ToS.

Re:Ask HN: Does anybody use Git history (Git log) as a CV? on Tuesday March 19, 2019 @03:40PM (#19434853)
- Is there something on your Github?

- Looking at the first few repos, does the code looks good? Is it copy/pasted, generated, a template, or your own code? Can I understand quickly what it does (README/docs)? Is there tests? Bonus for having external contributors/stars/forks/some collaboration going on.

- Looking at how you interact with other open source projects (e.g. issues/pull requests/contributions). Do you provide valuable information? Can you communicate clearly what was the issue/what you are solving/how?

In my case it's mainly to weed out all the bootcamp-generated Github accounts, the "testing languages/frameworks" accounts with no meaningful code and the people trying to game the system (contribution graph, etc.).

Obviously not everybody has a public/active Github project, but it's better not to mention it if it's not good.

Re:Ask HN: How did you adapt to a rapidly-growing startup? on Tuesday March 19, 2019 @03:35PM (#19434783)
Have you talked with your manager and/or the CEO? Usually the hierarchy is quite informal. I would schedule a 1-on-1 over coffee in a different place than the office.

Older »