Essential Badge
Authentication 01
Authentication 01
链接:https://pentesterlab.com/exercises/authe_01/course

可以注册一个新的用户,主要的思路是去看cookie

把cookie的值换了就行了

Authentication 02

一样的,只是cookie的值有了一层加密,看起来是md5,把admin的32位小写的md5值加入其中
21232f297a57a5a743894a0e4a801fc3

Authentication 03

注册之后,发现有个rack.session的值


尝试创建一个admin,提示已经存在

创建一个ADMIN,得到了cookie

这里主要是mysql根据用户名生成的cookie,其实是大小写不敏感的,这就造成可以变形来获取cookie的值。
Authentication 04

admin 后面加%20,然后得到了cookie

其实这是因为mysql的函数对于 admin 和 admin%20 是一样对待的。
Authentication 05


但是我访问主页的话,会直接跳转到登录页,但是这个登录页是302状态,那看看这个有什么可以利用的。
发现返回里面就有key了,太。。。
Authorization 01
In this exercise, you can log in with the following user: user1 with the password “pentesterlab”. Once you logged in and have a play around, try to access the information from user2.
给了一个账号,看看是否可以平行越权。


直接平行越权访问id=3的信息
Authorization 02
In this exercise, you can log in with the following user: user1 with the password “pentesterlab”. Once you logged in and have a play around, try to access the information from user2.
都变成了302跳转了,看看其他的情况,有一个编辑信息

在edit上修改id,就可以访问了
Authorisation 03
This exercise covers the exploitation of a vulnerability in the authorisation of a rails application.

直接在链接上加上1.js 可以有信息。加上1.json会变成JSON格式,里面有key
Authorization 04
The objective of this exercise is to find a way to register as a user with the admin privilege”…
user%5Busername%5D=aaa&user%5Bpassword%5D=bbb&user%5Badmin%5D=1&submit=%E6%8F%90%E4%BA%A4%E6%9F%A5%E8%AF%A2
ruby on rails 中的ORM mass assignment 的问题,直接多传一个参数 user[admin]=1就可以把自己设置成管理员
Authorization 05
The objective of this exercise is to find a way to become a user with the admin privilege”…
In this exercise, the developer fixed the previous bug. You cannot create a user with admin privileges… or at least not directly. Try to find a way to do the same thing.

还有一个更新的接口并没有做任何的限制

Authorization 06
The objective of this exercise is to find a way to get access to the organisation #1

猜组织id,然后增加到那个组里面去

Code Execution 01