由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - web services的安全性问题。
相关主题
怎么做能提供RESTful的安全性?访问有安全认证的Web Service,再转换成Json,怎么实现比较好?
请教JAX-RS大牛?web services和POST 到url有啥区别?
Twitter发帖AWS authentication 求推荐
有没有人觉得 oauth 是个 shit?angular搞cross domain必须用node吗?
node.js用哪个plugin来做log in, session time out之类的管理用户登录?现在怎么越来越多的公司用cookie了?这不是过时的技術吗?
请教 cross two website Authentication 问题求教个quickbooks Oauth的问题
头大得不行,请教c# active directory 问题Web Service的Basic Anthentication是怎么一回事?
这里人多,请问Java如何读取需要登录的网页的内容 (转载)https connection problem in C#
相关话题的讨论汇总
话题: token话题: your话题: server话题: user话题: authorize
进入Programming版参与讨论
1 (共1页)
c*********e
发帖数: 16335
1
比如用户userid=3,拿到token之后,用软件到达web services的url link,把另外一个
用户userid=8的记录给恶意更改了。
这个怎么防止?
x****d
发帖数: 1766
2
you are saying you only authenticate but not authorize? just add authorize
to your design.

【在 c*********e 的大作中提到】
: 比如用户userid=3,拿到token之后,用软件到达web services的url link,把另外一个
: 用户userid=8的记录给恶意更改了。
: 这个怎么防止?

p*****2
发帖数: 21240
3
貌似我以前常干这事
c*********e
发帖数: 16335
4
不是。
如果userid=3给了token,里面有他的role,是最低级别的user,那他能通过controller里
的某个method来POST/PUT他自己的记录;同时,他也可以通过这同一個method来POST/
PUT别人的记录。

【在 x****d 的大作中提到】
: you are saying you only authenticate but not authorize? just add authorize
: to your design.

x****d
发帖数: 1766
5
you need to authorize user to change individual records, but your design is
not doing that. Just change your design. your authorization is not strong
enough to meet your requirement.
g*****g
发帖数: 34805
6
After authentication, the user principal is available in the session, do a
simple comparison to make sure the user is operating his own data, that's
all.

【在 c*********e 的大作中提到】
: 不是。
: 如果userid=3给了token,里面有他的role,是最低级别的user,那他能通过controller里
: 的某个method来POST/PUT他自己的记录;同时,他也可以通过这同一個method来POST/
: PUT别人的记录。

c*********e
发帖数: 16335
7
make sense.

【在 g*****g 的大作中提到】
: After authentication, the user principal is available in the session, do a
: simple comparison to make sure the user is operating his own data, that's
: all.

c*********e
发帖数: 16335
8
你的token是随机数,还是有username,role?

【在 g*****g 的大作中提到】
: After authentication, the user principal is available in the session, do a
: simple comparison to make sure the user is operating his own data, that's
: all.

g*****g
发帖数: 34805
9
After authentication, server side returns a cookie, which contains a unique
token to identify the user, usually a hash value of a random number. You can
also add username as part of the token, but it must have a part that cannot
be guessed. Role usually is not in the token, it has to come from server
side.
You can check spring security to understand how a security framework works.

【在 c*********e 的大作中提到】
: 你的token是随机数,还是有username,role?
p*****w
发帖数: 429
10
可惜你给他解释了。。。

you need to authorize user to change individual records, but your design is
not doing that. Just change your design. your authorization is not strong
enough to meet your requirement.

【在 x****d 的大作中提到】
: you need to authorize user to change individual records, but your design is
: not doing that. Just change your design. your authorization is not strong
: enough to meet your requirement.

c*********e
发帖数: 16335
11
如果用OAuth的话,resource server和authorization server可以是一個server吗?
用的c#, iis.

unique
can
cannot

【在 g*****g 的大作中提到】
: After authentication, server side returns a cookie, which contains a unique
: token to identify the user, usually a hash value of a random number. You can
: also add username as part of the token, but it must have a part that cannot
: be guessed. Role usually is not in the token, it has to come from server
: side.
: You can check spring security to understand how a security framework works.

c*********e
发帖数: 16335
12
goodbug,设置OAuth要几天?我的web server,application server在一起,全是用的
iis. 这样行吗?同一個server,发出token,然后接到token,是不是不安全?

unique
can
cannot

【在 g*****g 的大作中提到】
: After authentication, server side returns a cookie, which contains a unique
: token to identify the user, usually a hash value of a random number. You can
: also add username as part of the token, but it must have a part that cannot
: be guessed. Role usually is not in the token, it has to come from server
: side.
: You can check spring security to understand how a security framework works.

g*****g
发帖数: 34805
13
对OAuth不熟,帮不了你。

【在 c*********e 的大作中提到】
: goodbug,设置OAuth要几天?我的web server,application server在一起,全是用的
: iis. 这样行吗?同一個server,发出token,然后接到token,是不是不安全?
:
: unique
: can
: cannot

1 (共1页)
进入Programming版参与讨论
相关主题
https connection problem in C#node.js用哪个plugin来做log in, session time out之类的管理用户登录?
URL rewrite and asp.net form authentication请教 cross two website Authentication 问题
批量下载mp3音频流文件最好用什么软件?头大得不行,请教c# active directory 问题
如何实现程序返回的验证码通过语音打到用户电话上这里人多,请问Java如何读取需要登录的网页的内容 (转载)
怎么做能提供RESTful的安全性?访问有安全认证的Web Service,再转换成Json,怎么实现比较好?
请教JAX-RS大牛?web services和POST 到url有啥区别?
Twitter发帖AWS authentication 求推荐
有没有人觉得 oauth 是个 shit?angular搞cross domain必须用node吗?
相关话题的讨论汇总
话题: token话题: your话题: server话题: user话题: authorize