Security

共 234 篇文章。

Why you should not hide version.bind?

• Security

This article has suggested a way of hiding version.bind string. From a security perceive, this is an overkill and can usually be harmful:

  • While it’s true that you can hide version.bind, the fact that version.bind is can be queried reveals that you are running BIND. It makes little sense to fake a version.
  • The need of hiding information, which is unnecessarily hidden like this, means that the system administrator is neglecting security.
  • Therefore, FOREACH(version.bind is queriable and is hidden) HACKEM :-)

Security can NOT be built on what others are not aware of.

参与评论

3 security advisories, and FreeBSD 5.4-RELEASE has been tagged

• Security

Today, Colin has committed three security fixes that addresses three medium-risk security issues in FreeBSD kernel. That results in p11, p12 and p13 of FreeBSD 5.3-RELEASE, and has been committed to RELENG_5_4 as well so we will get that in the final release build.

Ken Smith has announced the tagging (with a mini heads-up in developers@), and then committed the naming (5.4-RELEASE) to the RELENG_5_4 tree. After that, RELENG_5_4 was tagged as RELENG_5_4_0_RELEASE, which is the last step of the release engineering that is related to the src/tree.

Please note that, this is not the final step of the final release. FreeBSD is very careful about the quality (not only as opposed to the kernel with colorful history of its security record, which is released under GPL and often release from time to time, haha, you know which is that) of a release, therefore, tagging does not mean that “we made it”, that is just a stage. Please be patient to wait for the PGP signed 5.4-RELEASE announcement BEFORE you download isos, even they were found on any sites.

阅读全文… ( 本文约 200 字,阅读大致需要 1 分钟 )

Using ssh-agent(1) to ease usage of SSH key authentication

• Security

Many SSH clients supports “key agent” or “authentication agent”, which holds private key for you, and ease the authentication process.

By default, OpenSSH does not enable this. You can easily use ssh-agent(1) to accomplish the mission.

ssh-agent startx

The above command will start X session with ssh-agent. This means that you can add private key to the agent.

ssh-add ~/.ssh/id_dsa

Add your own ssh key.

Then ssh authentications will be accomplished automatically. Note that you may need to use ssh -A in certain configurations.

参与评论

An vulnerability, a threat, and you lose root, that's Linux.

• Security

Every quarter we got the same news: Linux did it again!

Yes, they DID it again. Many sites became victim during the last scan of awstats vulnerability, the most famous ones are www.phpbb.com, and moto.debian.org.tw, etc. You can Google the cracker organization and find more.

Why Linux is again and again vulnerable to these hack attempts? Why other systems doesn’t have such serious security issues even when an exploit is published? The answer is apparant: Linux did worst ever, among all Operating Systems, even when you include Windows. Imagine, a kernel which can permit normal users to gain root privilege.

阅读全文… ( 本文约 246 字,阅读大致需要 2 分钟 )

When to validate whether program is accepting potentially malicious input?

• Security

What is a privilege elevation? It meant that someone who (maliciouslly) obtain higher privilege through some method that is not predicated by programmer.

In order to prevent it, we should avoid giving unnecessary privileges, and validate all input. However, in a imperfect world, just validating everything is not enough, since there are too many things that can not be validated easily.

On most Unix systems, we have a “set uid” bit that can allow subsequent process to run under other credentials. This, however, opens an window that we can potentially allow malicious code to be injected into the system, to obtain higher privileges.

阅读全文… ( 本文约 320 字,阅读大致需要 1 分钟 )