Better HN
topnewbestaskshowjobs
Log inSign up

reader_1000

671 karma · joined Jan 8, 2012 (14y ago) · 133 submissions

Submissions

comment 5y ago · link · parent

Previous submission is just 3 months ago and points to newer version of the paper. Obviously I should have searched by title before submitting. Thanks Dang

32.

Hints and Principles for Computer System Design [pdf](microsoft.com ↗)

5 points · by reader_1000 · 5y ago · 2 comments

comment 5y ago · link · parent

Ten years ago, while using ADSL, for some reason captcha images were not loading. I opened a case to ISP support and they called me back. The support guy did not believe it. He said "this is not an analog network, this is digital, you either have it or not". I said I know what the analog and digital mean and also I know this is a digital network since I am a computer engineer and I checked everything so this was a issue with connection. After a couple hours later, he called me back and said that problem was caused by modem and a driver update would fix it and it did. These were good old days, however, when we can reach someone on the phone and talk about problem. Nowadays everything is either automated response or some random person whose whole job to tell you that he/she cannot do anything about the situation.

comment 6y ago · link · parent

> The other issue (the bashrc example) is akin to a bonehead move like accidentally typing rm -rf somewhere important.

I think you've misunderstood the issue a little bit. Dangerous command is this: scp admin:boring-spreadsheet.ods .

Here, user do not do type anything wrong, however if an attacker somehow replaces the remote with a malicious ssh server which returns a .bashrc that contains dangerous content (such as aliases like alias ls=rm -rf *) then you are basically screwed. So this is a serious issue.

Other security error is quite interesting if I understood it correctly (scp some-local-file remote:'`touch you-lose`remote-file'). It is basically running the command in the remote server. If that is so, why would a file transfer protocol run a command in the remote server? If an attacker manages to put a file with name `rm -rf /` in the directory that one is going to transfer, it may damage the remote system. I think, this part of protocol really needs to be fixed.

comment 6y ago · link · parent

> Just for laughs, Java seems to have its own TZDB

Well, there is also Joda time and icu4j that have their own TZDB which caused me one very stressful day until we found this fact.

36.

Sort function C++ segmentation fault(stackoverflow.com ↗)

2 points · by reader_1000 · 6y ago · 1 comment

comment 6y ago · link · parent

I actually meant that pointer type is also important to understand the concept. I may not have stated it well. Yes, it does not store the type of the variable it points to but type of the pointer matters and it is significant because many operations depends on it.

comment 6y ago · link · parent

>> A pointer is a variable that contains the address of a variable.

Well, it is a little bit incomplete I think. A pointer contains both the address of a variable and a type. That is why pointer arithmetic works. Without type of pointer, p++ is not calculatable.

39.

The EMV Standard: Break, Fix, Verify(emvrace.github.io ↗)

2 points · by reader_1000 · 6y ago · discuss

40.

Install Linux from a running Windows system, without need for a live USB(github.com ↗)

195 points · by reader_1000 · 6y ago · 66 comments

comment 6y ago · link · parent

Yes, original intent was to flatten the curve. However, as more people got sick, we learned that covid may cause permament damages on patients. Therefore if there is a way to prevent people from getting the diease at all, I think that is path we should follow . If not possible, we should still slow down the spread of the disease until vaccination efforts start to give results or we have better medication.

comment 6y ago · link · parent

The way IBM handles this is pretty bad. No company, especially the ones selling a security product, should ignore security researchers reports and feedbacks

Also the bugs described in article are quite surprising since for a IBM-sized company, you expect them to have solid authentication/authorization framework which they use for all their products. Is this a acquired product? Authentication mechanism is very unusual. Why would anyone save a session id coming from the user? This is more than trusting user input, I think.

Also ../../etc/passwd attack is a kind of vulnerability that almost every automated vulnerabilty scanner scans.

Most people assume that authenticated pages do not need that much security precautions however as articles shows, when combined with authentication bypass vulnerabilities, you basically give keys of your systems to the attacker.

comment 6y ago · link · parent

I think that work is for improving quality and quantity of translations which is also good.

comment 6y ago · link · parent

When I tried Jitsi with my family friends, some of them struggled to use it since they don't know English. So I think changing the language can be easier for nonspeakers of English.

For example, language select box can be placed next to "Go" button (when creating meeting) and next to info button in the meeting. Also using "Accept-Language" HTTP header for choosing the language can be a good default. Another option is to add a language query parameter to the URL so that host can easily share meeting with a particular language.

Also if it would be great if some improvements can be made for low bandwitdh since there are people with slow connections and limited data plans. (On the other hand, there is already an option to lower video quality).

Other than that, kudos to Jitsi team for their great efforts and this great project.

comment 6y ago · link · parent

The Data Model Resource Book [1] is a good resource how to design database. It is a kind of reference book

[1] https://www.wiley.com/en-us/The+Data+Model+Resource+Book%2C+...

46.

We abused Slack's TURN servers to gain access to internal services(rtcsec.com ↗)

381 points · by reader_1000 · 6y ago · 78 comments

comment 6y ago · link · parent

Hint: copy-pasters*

* from internet or from old codebases of one’s company

comment 6y ago · link · parent

In real life, you will always start with simple working implementation and go with it. Then if things are slow, you profile your code with a good profiler while running for some kind of real life scenario and spot the slow parts (also keep in mind that profiling may affect the program's behaviour). After that you may want to consider alternatives with less asymptotic complexity iff that's the part causing slowness.

Once I was asked to look for one project to see that if there is any room for improvement to speed up the program. After I profiled the program with the test data, I saw that program was severely affected by a "size" method call on a lock-free concurrent list. Since the data structure is lock free, size method is not a constant time operation and calling it in a large list takes too much time. It was just there to print some kind of statistics, I changed the code so that it is called only necessary not every time some operation occurs. This immediately made program 2-3 times faster.

There were also some parts I changed with some algorithms with less algorithmic complexith to make it faster. Overall, I made the program 6x faster. So sometimes you need to use fancy algorithms, sometimes you just need to change one line of code after profiling.

49.

New action to disrupt world’s largest online criminal network(blogs.microsoft.com ↗)

2 points · by reader_1000 · 6y ago · discuss

comment 6y ago · link · parent

Exposing an application server to the internet is not a good idea. It is always better to have a simple proxy that has absolute minimum set of software installed on it and let it to handle the requests coming from internet and forward them to the application server. With this kind of deployment, your attack surface will be much less and you will be protected from the bugs described in the article.

comment 6y ago · link · parent

It seems that it does not send "x-client-data" header in private mode, but it sends it when browsing regular mode.

comment 6y ago · link · parent

Original title was too long, so edited it a litte bit. The original was: A Systematic Review and Meta-Analysis of Psychological Research on Conspiracy Beliefs: Field Characteristics, Measurement Instruments, and Associations With Personality Traits

53.

Psychological Research on Conspiracy Beliefs: Associations W. Personality Traits(frontiersin.org ↗)

1 points · by reader_1000 · 6y ago · 1 comment

54.

Reversing a real-world 249 bytes backdoor(anee.me ↗)

57 points · by reader_1000 · 6y ago · 6 comments

55.

Fortinet SSL VPN vulnerability from May 2019 being exploited in wild(opensecurity.global ↗)

3 points · by reader_1000 · 7y ago · discuss

comment 7y ago · link · parent

Ideally, languages will add built-in support to facilitate this pattern without the associated verbosity. But until then, people will continue to use inheritance just because of how much less verbose it is.

Well, you can somehow achieve a part of it in Python with implementing magic __getattribute__ method:

  class CustomArrayList (object):
    def __init__(self):
        self.list = ArrayList()
    def add(self, item):
        if item == 666:
           raise
        self.list.add(item)

    def __getattribute__(self, key):
      """For rest of the methods use them as they are.
      """
        try:
            attr = object.__getattribute__(self, key)
        except AttributeError:
            attr = object.__getattribute__(self.list, key)
        return attr
However, most probably no one will like you if you use this method :)

comment 7y ago · link · parent

Unrelated to cert problem: Yes, clicking on the link installs the plugin, but it is suprising to see that firefox claims that it is the news.ycombinator.com, not storage.googleapis.com, that wants to install plugin. Could it be a security issue since if an attacker somehow manages the post/inject a link for a malicious plugin in a credible site, firefox will claim that plugin is from that site?

comment 7y ago · link · parent

Even with sane organization, things get messy quickly. I use everything.exe [1] on windows. It is much better than Windows search.

[1] https://www.voidtools.com/downloads/

59.

Where Are the Startups? Loss of Dynamism Is Impeding Growth(nytimes.com ↗)

2 points · by reader_1000 · 8y ago · discuss

12345