|
1 | 1 | # API messages
|
2 |
| -import base64 |
3 | 2 |
|
4 | 3 | USER_DOES_NOT_EXIST_ERROR = "user does not exist"
|
5 | 4 | ARTICLE_DOES_NOT_EXIST_ERROR = "article does not exist"
|
|
30 | 29 | AUTHENTICATION_REQUIRED = "authentication required"
|
31 | 30 |
|
32 | 31 |
|
33 |
| -### Flags |
| 32 | +# Flags |
34 | 33 |
|
35 | 34 | def BrokenFunctionLevelAuthorization():
|
36 |
| - return base64.b16decode("666C61677B42464C345F495F614D5F5468335F61446D316E5F48337233217D").decode("utf-8") |
| 35 | + return "flag{BFL4_I_aM_Th3_aDm1n_H3r3!}" |
37 | 36 |
|
38 | 37 |
|
39 | 38 | def BrokenUserAuthentication():
|
40 |
| - return base64.b16decode("666C61677B6272306B336E5F755333725F34757468456E7431634174316F4E7D").decode("utf-8") |
| 39 | + return "flag{br0k3n_uS3r_4uthEnt1cAt1oN}" |
41 | 40 |
|
42 | 41 |
|
43 | 42 | def BOLA():
|
44 |
| - return base64.b16decode("666C61677B42306C4121212121217D").decode("utf-8") |
| 43 | + return "flag{B0lA!!!!!}" |
45 | 44 |
|
46 | 45 |
|
47 | 46 | def ImproperAssetsManagement():
|
48 |
| - return base64.b16decode("666C61677B496D7072307065525F4173733374735F4D616E4167336D336E747D").decode("utf-8") |
| 47 | + return "flag{Impr0peR_Ass3ts_ManAg3m3nt}" |
49 | 48 |
|
50 | 49 |
|
51 | 50 | def Injection():
|
52 |
| - return base64.b16decode("666C61677B316E6A65637431306E5F4170317D").decode("utf-8") |
| 51 | + return "flag{1nject10n_Ap1}" |
53 | 52 |
|
54 | 53 |
|
55 | 54 | def ExcessiveDataExposure():
|
56 |
| - return base64.b16decode("666C61677B3378633373733176335F646154615F587030737572337D").decode("utf-8") |
| 55 | + return "flag{3xc3ss1v3_daTa_Xp0sur3}" |
57 | 56 |
|
58 | 57 |
|
59 | 58 | def LackOf():
|
60 |
| - return base64.b16decode("666C61677B4C34634B5F30665F5233733075726333535F265F723474335F4C316D3174316E677D").decode( |
61 |
| - "utf-8") |
| 59 | + return "flag{L4cK_0f_R3s0urc3S_&_r4t3_L1m1t1ng}" |
62 | 60 |
|
63 | 61 |
|
64 | 62 | def MassAssignment():
|
65 |
| - return base64.b16decode("666C61677B4D3473535F41735331676E6D336E747D").decode("utf-8") |
| 63 | + return "flag{M4sS_AsS1gnm3nt}" |
66 | 64 |
|
67 | 65 |
|
68 | 66 | def InsufficientLogging():
|
69 |
| - return base64.b16decode("666C61677B496E735566463143336E545F4C306747316E477D").decode("utf-8") |
| 67 | + return "flag{InsUfF1C3nT_L0gG1nG}" |
70 | 68 |
|
71 | 69 |
|
72 |
| -def SecMiss(): # not in used embeded |
73 |
| - return base64.b16decode("666C61677B3565435F4D317363306E4631677D").decode("utf-8") |
| 70 | +def SecMiss(): # not in used in app (external flag) |
| 71 | + return "flag{5eC_M1sc0nF1g}" |
74 | 72 |
|
75 | 73 |
|
76 | 74 | # Description
|
|
0 commit comments