You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Account Takeover (ATO) is a significant threat in the cybersecurity landscape, involving unauthorized access to users' accounts through various attack vectors.
1. Attacker have to login with their account and go to the **Change password** feature.
87
70
2. Start the Burp Suite and Intercept the request
88
71
3. Send it to the repeater tab and edit the parameters : User ID/email
72
+
89
73
```powershell
90
74
POST /api/changepass
91
75
[...]
@@ -110,55 +94,60 @@ Try to determine if the token expire or if it's always the same, in some cases t
110
94
111
95
### Leaking Password Reset Token
112
96
113
-
1. Trigger a password reset request using the API/UI for a specific email e.g: [email protected]
97
+
1. Trigger a password reset request using the API/UI for a specific email e.g: <[email protected]>
114
98
2. Inspect the server response and check for `resetToken`
115
99
3. Then use the token in an URL like `https://example.com/v3/user/password/reset?resetToken=[THE_RESET_TOKEN]&email=[THE_MAIL]`
116
100
117
-
### Password Reset Via Username Collision
101
+
### Password Reset via Username Collision
118
102
119
103
1. Register on the system with a username identical to the victim's username, but with white spaces inserted before and/or after the username. e.g: `"admin "`
120
104
2. Request a password reset with your malicious username.
121
105
3. Use the token sent to your email and reset the victim password.
122
106
4. Connect to the victim account with the new password.
[Unisub - is a tool that can suggest potential unicode characters that may be converted to a given character](https://github.com/tomnomnom/hacks/tree/master/unisub).
136
119
137
120
[Unicode pentester cheatsheet](https://gosecure.github.io/unicode-pentester-cheatsheet/) can be used to find list of suitable unicode characters based on platform.
138
121
122
+
## Account Takeover via Web Vulneralities
139
123
140
-
## Account Takeover Via Cross Site Scripting
124
+
### Account Takeover via Cross Site Scripting
141
125
142
126
1. Find an XSS inside the application or a subdomain if the cookies are scoped to the parent domain : `*.domain.com`
143
127
2. Leak the current **sessions cookie**
144
128
3. Authenticate as the user using the cookie
145
129
146
-
147
-
## Account Takeover Via HTTP Request Smuggling
130
+
### Account Takeover via HTTP Request Smuggling
148
131
149
132
Refer to **HTTP Request Smuggling** vulnerability page.
133
+
150
134
1. Use **smuggler** to detect the type of HTTP Request Smuggling (CL, TE, CL.TE)
GET http://something.burpcollaborator.net HTTP/1.1
172
161
X: X
173
162
```
174
-
163
+
175
164
Hackerone reports exploiting this bug
176
-
* https://hackerone.com/reports/737140
177
-
* https://hackerone.com/reports/771666
178
165
166
+
* <https://hackerone.com/reports/737140>
167
+
* <https://hackerone.com/reports/771666>
179
168
180
-
## Account Takeover via CSRF
169
+
### Account Takeover via CSRF
181
170
182
171
1. Create a payload for the CSRF, e.g: "HTML form with auto submit for a password change"
183
172
2. Send the payload
184
173
174
+
### Account Takeover via JWT
185
175
186
-
## Account Takeover via JWT
187
-
188
-
JSON Web Token might be used to authenticate an user.
176
+
JSON Web Token might be used to authenticate an user.
189
177
190
178
* Edit the JWT with another User ID / Email
191
-
* Check for weak JWT signature
192
-
193
-
194
-
## 2FA Bypasses
195
-
196
-
### Response Manipulation
197
-
198
-
In response if `"success":false`
199
-
Change it to `"success":true`
200
-
201
-
202
-
### Status Code Manipulation
203
-
204
-
If Status Code is **4xx**
205
-
Try to change it to **200 OK** and see if it bypass restrictions
206
-
207
-
208
-
### 2FA Code Leakage in Response
209
-
210
-
Check the response of the 2FA Code Triggering Request to see if the code is leaked.
211
-
212
-
213
-
### JS File Analysis
214
-
215
-
Rare but some JS Files may contain info about the 2FA Code, worth giving a shot
216
-
217
-
218
-
### 2FA Code Reusability
219
-
220
-
Same code can be reused
221
-
222
-
223
-
### Lack of Brute-Force Protection
224
-
225
-
Possible to brute-force any length 2FA Code
226
-
227
-
228
-
### Missing 2FA Code Integrity Validation
229
-
230
-
Code for any user acc can be used to bypass the 2FA
231
-
232
-
233
-
### CSRF on 2FA Disabling
234
-
235
-
No CSRF Protection on disabling 2FA, also there is no auth confirmation
236
-
237
-
238
-
### Password Reset Disable 2FA
239
-
240
-
2FA gets disabled on password change/email change
241
-
242
-
243
-
### Backup Code Abuse
244
-
245
-
Bypassing 2FA by abusing the Backup code feature
246
-
Use the above mentioned techniques to bypass Backup Code to remove/reset 2FA restrictions
247
-
248
-
249
-
### Clickjacking on 2FA Disabling Page
250
-
251
-
Iframing the 2FA Disabling page and social engineering victim to disable the 2FA
252
-
253
-
254
-
### Enabling 2FA doesn't expire Previously active Sessions
255
-
256
-
If the session is already hijacked and there is a session timeout vuln
257
-
258
-
259
-
### Bypass 2FA by Force Browsing
260
-
261
-
If the application redirects to `/my-account` url upon login while 2Fa is disabled, try replacing `/2fa/verify` with `/my-account` while 2FA is enabled to bypass verification.
262
-
263
-
264
-
### Bypass 2FA with null or 000000
265
-
Enter the code **000000** or **null** to bypass 2FA protection.
> Multi-Factor Authentication (MFA) is a security measure that requires users to provide two or more verification factors to gain access to a system, application, or network. It combines something the user knows (like a password), something they have (like a phone or security token), and/or something they are (biometric verification). This layered approach enhances security by making unauthorized access more difficult, even if a password is compromised.
4
+
> MFA Bypasses are techniques attackers use to circumvent MFA protections. These methods can include exploiting weaknesses in MFA implementations, intercepting authentication tokens, leveraging social engineering to manipulate users or support staff, or exploiting session-based vulnerabilities.
*[Clickjacking on 2FA Disabling Page](#clickjacking-on-2fa-disabling-page)
19
+
*[Enabling 2FA doesn't expire Previously active Sessions](#enabling-2fa-doesnt-expire-previously-active-sessions)
20
+
*[Bypass 2FA by Force Browsing](#bypass-2fa-by-force-browsing)
21
+
*[Bypass 2FA with null or 000000](#bypass-2fa-with-null-or-000000)
22
+
*[Bypass 2FA with array](#bypass-2fa-with-array)
23
+
24
+
## 2FA Bypasses
25
+
26
+
### Response Manipulation
27
+
28
+
In response if `"success":false`
29
+
Change it to `"success":true`
30
+
31
+
### Status Code Manipulation
32
+
33
+
If Status Code is **4xx**
34
+
Try to change it to **200 OK** and see if it bypass restrictions
35
+
36
+
### 2FA Code Leakage in Response
37
+
38
+
Check the response of the 2FA Code Triggering Request to see if the code is leaked.
39
+
40
+
### JS File Analysis
41
+
42
+
Rare but some JS Files may contain info about the 2FA Code, worth giving a shot
43
+
44
+
### 2FA Code Reusability
45
+
46
+
Same code can be reused
47
+
48
+
### Lack of Brute-Force Protection
49
+
50
+
Possible to brute-force any length 2FA Code
51
+
52
+
### Missing 2FA Code Integrity Validation
53
+
54
+
Code for any user acc can be used to bypass the 2FA
55
+
56
+
### CSRF on 2FA Disabling
57
+
58
+
No CSRF Protection on disabling 2FA, also there is no auth confirmation
59
+
60
+
### Password Reset Disable 2FA
61
+
62
+
2FA gets disabled on password change/email change
63
+
64
+
### Backup Code Abuse
65
+
66
+
Bypassing 2FA by abusing the Backup code feature
67
+
Use the above mentioned techniques to bypass Backup Code to remove/reset 2FA restrictions
68
+
69
+
### Clickjacking on 2FA Disabling Page
70
+
71
+
Iframing the 2FA Disabling page and social engineering victim to disable the 2FA
72
+
73
+
### Enabling 2FA doesn't expire Previously active Sessions
74
+
75
+
If the session is already hijacked and there is a session timeout vuln
76
+
77
+
### Bypass 2FA by Force Browsing
78
+
79
+
If the application redirects to `/my-account` url upon login while 2Fa is disabled, try replacing `/2fa/verify` with `/my-account` while 2FA is enabled to bypass verification.
80
+
81
+
### Bypass 2FA with null or 000000
82
+
83
+
Enter the code **000000** or **null** to bypass 2FA protection.
0 commit comments