当前位置: 首页 > 网络学院 > 设计教程 > 设计理念 > CGI剖析:第一部分

设计理念
图形简介:第一部分
图形简介:第二部分
图形简介:第三部分
图形简介:第四部分
网站规划101
通过网络赚取客户的信任
网站配色:第一部分
网站配色:第二部分
CGI剖析:第一部分
CGI剖析:第二部分
CGI剖析:第三部分
下拉表单:第一部分
下拉表单:第二部分
下拉表单:第三部分
网站设计公司:第一部分
网站设计公司:第二部分
Web 标准
HTML 元素
样式表
Web 易读性

设计理念 中的 CGI剖析:第一部分


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 1579 ::
收藏到网摘: n/a

CGI.JPGWell, as you might expect, for all its dynamism, CGI was not a holy grail. In fact, there are a lot of sysadmins out there who would be ecstatic if CGI were outlawed. CGI simply causes too many problems.

就像你想象的那样,对于所有的动态主义来说,CGI并不是一个圣盘。事实上,如果CGI能够被人们所抛弃,很多系统管理员会感到非常高兴的。原因很简单,CGI包含了太多的漏洞。

  • CGI introduces security holes. Lincoln Stein writes the following eloquent warning on the problem:

    CGI
    的安全漏洞。Lincoln Stein指出了下面这些意味深长的问题:

Unfortunately, there's a lot to worry about [when running a web server with CGI]. The moment you install a Web server at your site, you've opened a window into your local network that the entire Internet can peer through. Most visitors are content to window shop, but a few will try to peek at things you don't intend for public consumption. Others, not content with looking without touching, will attempt to force the window open and crawl in.

不幸的是,当服务器在运行CGI时,会让人感到忧虑。当你在你的网站上安装网络服务时,你就打开了一个位于本地网络内部的窗口,整个互联网都可以看到这些操作。大多数访问者都亲睐于这些窗口购物,但是有少部分人会偷窥那些你不打算提供的公共消费项目。其他人则不喜欢只能看而无法触及的这种消费方式,他们将试图强制将窗口打开并慢慢地摸索。

It's a maxim in system security circles that buggy software opens up security holes. It's a maxim in software development circles that large, complex programs contain bugs. Unfortunately, Web servers are large, complex programs that can (and in some cases have been proven to) contain security holes.

存在最多的系统安全隐患主要是由于很多带有漏洞的软件存在安全漏洞。在软件发展的过程当中,很多大型、复杂的程序包含漏洞。不幸的是,很多案例已经证明,网络服务器也是包含安全漏洞的大型、复杂的程序。

Furthermore, the open architecture of Web servers allows arbitrary CGI scripts to be executed on the server's side of the connection in response to remote requests. Any CGI script installed at your site may contain bugs, and every such bug is a potential security hole.

此外,网络服务器的开放式结构允许任意的CGI脚本程序在所连接服务器端执行,一对远程请求作出回应。所有安装在网站上的CGI脚本程序都有可能包含漏洞,每个漏洞都是一个潜在的安全漏洞。

It is one thing to allow any freak on the Internet access to your web server, when the communication is controlled through the boundaries defined by HTTP and implemented by web browsers. It is another thing to allow a stranger access to an unlimited amount of applications housed on the same server through a renegade CGI script.

有一点值得注意:当所有的通信手段通过由HTTP协议定义以及由网络浏览器执行的边界所控制的时候,它就会允许任意的事物通过互联网访问你的网络服务器;还有一点也值得注意:就是允许一个陌生人通过遗弃的CGI脚本程序来访问问于相同服务器端的所有应用程序。

In the WWW Security FAQ, Stein identifies four overlapping types of risk:

在万维网安全问答中,斯坦指出了四种不安全的搭接类型:

    • Private or confidential documents stored in the Web site's document tree may fall into the hands of unauthorized individuals.

      在网站的文档树种存储的私有以及秘密的文档可能会落入未授权的个人手中。

    • Private or confidential information sent by the remote user to the server (such as credit card information) might be intercepted.

      由远程用户发送到服务器的私有以及秘密的文档(如:信用卡信息)可能会被中途截获。

    • Information about the Web server's host machine might leak through, giving outsiders access to data that can potentially allow them to break into the host.

      通过为外人提供的数据可以潜在地为他们提供进入服务器主机的捷径,这就可以导致服务器主机的信息被窃取。

    • Bugs can allow outsiders to execute commands on the server's host machine, allowing them to modify and/or damage the system. This includes "denial of service" attacks, in which the attackers pummel the machine with so many requests that it is rendered effectively useless.

      漏洞会使外人执行服务器主机上的指令,从而使他们对服务器系统进行篡改和破坏。其中包括“服务禁止”攻击,在这类攻击中,攻击者可以通过向服务器递交很多的无价值信息的请求来进行攻击。

I recommend checking out the following CGI Security sites if you are interested in getting more detailed information.

如果你希望获取更多的详细信息,我建议你通过CGI安全网站来检验你站点中的CGI程序是否安全:

Latro, a tool for identifying insecure Perl CGI installations, by Tom Christiansen
Latro
,由 汤姆·克里斯汀森 开发的用于鉴别不安全的Perl CGI安装程序的工具。

评论 (0) All

登陆 | 还没注册?