12
返回列表 发新帖
楼主: Yong Huang

Oracle password

[复制链接]
论坛徽章:
8
2009新春纪念徽章
日期:2009-01-04 14:52:28祖国60周年纪念徽章
日期:2009-10-09 08:28:002010新春纪念徽章
日期:2010-03-01 11:07:24ITPUB9周年纪念徽章
日期:2010-10-08 09:32:25ITPUB十周年纪念徽章
日期:2011-11-01 16:23:262013年新春福章
日期:2013-02-25 14:51:24沸羊羊
日期:2015-03-04 14:51:522015年新春福章
日期:2015-03-06 11:57:31
11#
发表于 2009-5-23 09:18 | 只看该作者
是的,我说的就是Encrypted password,你说的one-way hash,应该也算是一种加密算法,而且是单向的,不可逆的。因此,即使入侵者获取了password的密文,他也是不可能得到password加密前的明文的,因此,我说是“解密ORACLE加密口令的可能性更是没有。”

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
12#
 楼主| 发表于 2009-5-23 10:28 | 只看该作者
> 我说的就是Encrypted password,你说的one-way hash,应该也算是一种加密算法

I'm not an expert at cryptography. But I think the terminology you use here is misleading. Indeed they're both cryptographic algorithms. My understanding is that encryption has its reverse function, decryption, but hash or hashing is one way, and cannot be reversed (except by brute force attack of course). So these are two completely different technologies.

I just searched on Wikipedia, and found an entry for an apparent oxymoron, one-way encryption:

http://en.wikipedia.org/wiki/One-way_encryption

where it says "One-way function, a function difficult to invert. Note that encryption is, by definition, reversible. Hence, the term one-way encryption is slightly incorrect in a sense"

That explains many people's loose terminology. When we talk about Oracle's passwords, we should not use the word encryption for that reason. Oracle's dbms_crypto package offers both encrypt and its reverse decrypt function/procedure, and hash function. Note there's no de-hash or reverse hash, because it makes no cryptographic sense.

Yong Huang

[ 本帖最后由 Yong Huang 于 2009-5-23 19:06 编辑 ]

使用道具 举报

回复
论坛徽章:
8
2009新春纪念徽章
日期:2009-01-04 14:52:28祖国60周年纪念徽章
日期:2009-10-09 08:28:002010新春纪念徽章
日期:2010-03-01 11:07:24ITPUB9周年纪念徽章
日期:2010-10-08 09:32:25ITPUB十周年纪念徽章
日期:2011-11-01 16:23:262013年新春福章
日期:2013-02-25 14:51:24沸羊羊
日期:2015-03-04 14:51:522015年新春福章
日期:2015-03-06 11:57:31
13#
发表于 2009-5-24 08:52 | 只看该作者
非常敬佩YONGHUANG版主严谨的治学精神,他说的也很有道理,本人对密码学并没深入研究,所说有关“加密”的问题也许并不精确。

使用道具 举报

回复
论坛徽章:
6
2010新春纪念徽章
日期:2010-03-01 11:06:222011新春纪念徽章
日期:2011-02-18 11:42:47ITPUB十周年纪念徽章
日期:2011-11-01 16:24:042014年新春福章
日期:2014-02-18 16:43:09马上有钱
日期:2014-02-18 16:43:09
14#
发表于 2009-5-31 11:12 | 只看该作者
暴力也没用,oracle有参数控制错误次数。超过次数帐户就lock了

使用道具 举报

回复
论坛徽章:
2
2009日食纪念
日期:2009-07-22 09:30:00ITPUB十周年纪念徽章
日期:2011-11-01 16:20:28
15#
发表于 2009-6-1 22:20 | 只看该作者
Yong Huang:

   你好!

   我近一段也在看ORACLE PASSWORD的问题,9i、10g和11g的加密算法好像都不太一样。ORACLE密码的生成是采用username+password对应的hash值,所以可以利用BBED修改用户的密码,包括SYS用户,好像ORACLE 10g中的密码是存放在系统表空间数据文件的block_id=90的位置(我是在AIX平台测试过)。
   附件是一些文档,我没有仔细研究过,不知道对你是否有用。

   9i的DES
   10G的128 AES
   11g是192AES

oraauthdg_pub.pdf

253.35 KB, 下载次数: 18

oracle_tns_3des_check.txt

9.13 KB, 下载次数: 23

oracle_tns_aes128_check.txt

7.97 KB, 下载次数: 17

oracle_tns_aes192_check.txt

7.29 KB, 下载次数: 20

thc-orakelsniffert.pdf

286.26 KB, 下载次数: 23

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
16#
 楼主| 发表于 2009-6-21 20:52 | 只看该作者
原帖由 yezhibin 于 2009-6-1 08:20 发表
   我近一段也在看ORACLE PASSWORD的问题,9i、10g和11g的加密算法好像都不太一样。ORACLE密码的生成是采用username+password对应的hash值,所以可以利用BBED修改用户的密码,包括SYS用户,好像ORACLE 10g中的密码是存放在系统表空间数据文件的block_id=90的位置(我是在AIX平台测试过)。
   附件是一些文档,我没有仔细研究过,不知道对你是否有用。
...


Thank you. I quickly went through the documents. They talked about how the password hash is generated in Oracle given a username. Algorithm difference between different Oracle versions seems to exist in TNS protocol only (see "Downgrading the Oracle Native Authentication"), not the algorithm in computing the hash.

My short article is about optimizing the way to feed the brute force program, not about the algorithm the brute force program uses. So I don't know much how the password hash is calculated. If you have any interesting finding, don't hesitate to post.

BTW, the posted articles could be just URL links in your message instead of attachments, unless they can't be found on the Internet.

Yong Huang

使用道具 举报

回复
论坛徽章:
0
17#
发表于 2009-7-16 16:34 | 只看该作者
谢谢了 ,在网 上找这些文件都很难,基本上都是死链接,google翻译到时挺强大,死链接竟然翻译出来了,不过连代码都翻译,郁闷,没想到能在这找到这些东西
谢谢

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表