<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Narut0x on Medium]]></title>
        <description><![CDATA[Stories by Narut0x on Medium]]></description>
        <link>https://medium.com/@Narut0x?source=rss-0d55e1dcc855------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9lyGcQbRlD5GvSxzhsO8_g.jpeg</url>
            <title>Stories by Narut0x on Medium</title>
            <link>https://medium.com/@Narut0x?source=rss-0d55e1dcc855------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:02:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Narut0x/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How a Storefront API Token Exposed Thousands of Private Customer Designs]]></title>
            <link>https://medium.com/@Narut0x/how-a-storefront-api-token-exposed-thousands-of-private-customer-designs-a1b820f43db7?source=rss-0d55e1dcc855------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1b820f43db7</guid>
            <category><![CDATA[api-token]]></category>
            <dc:creator><![CDATA[Narut0x]]></dc:creator>
            <pubDate>Tue, 29 Sep 2026 12:52:05 GMT</pubDate>
            <atom:updated>2026-09-29T13:12:02.881Z</atom:updated>
            <content:encoded><![CDATA[<h3>How a Storefront API Token Exposed Thousands of Private Customer Designs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*lhX54iM7DpyRvbkus4_p5Q.png" /></figure><p>I wasn’t looking for a vulnerability at first. I was going through the frontend JavaScript trying to understand how the application was talking to its backend, and there was a lot going on in the bundles, but I kept looking around the parts responsible for the storefront configuration and API communication. A search for things like Storefront, public, and API eventually pointed me to something interesting</p><p>The configuration wasn’t sitting in the page as a normal JSON object. Part of it was being pushed through the page’s streaming mechanism:</p><p>javascript</p><pre>streamController.enqueue(&quot;...&quot;)</pre><p>The values were escaped inside those chunks, so instead of manually digging through the HTML, I wrote a small decoder to pull them back out:</p><p>javascript</p><pre>const re =<br>  /streamController\.enqueue\(&quot;((?:\\.|[^&quot;\\])*)&quot;\)/g;</pre><pre>for (const match of html.matchAll(re)) {<br>  chunks.push(JSON.parse(`&quot;${match[1]}&quot;`));<br>}</pre><p>I joined the decoded chunks and searched through the result again, and this time the configuration started to become much clearer:</p><p>text</p><pre>PUBLIC_STORE_DOMAIN<br>PUBLIC_STOREFRONT_API_TOKEN<br>storeConfiguration</pre><p>That gave me the storefront domain, the Storefront API token, and the store configuration being used by the frontend. I still hadn’t found a vulnerability, I had just found the same API connection the storefront itself was using. So I took that connection and started with the simplest possible question: <strong>what can I actually read through it?</strong></p><h3>The First Request</h3><p>I started with a basic Storefront API query:</p><p>graphql</p><pre>{<br>  shop {<br>    name<br>  }<br>}</pre><p>It returned 200 OK, and the store identity matched what I had already seen in the configuration:</p><p>json</p><pre>{<br>  &quot;data&quot;: {<br>    &quot;shop&quot;: {<br>      &quot;name&quot;: &quot;[DOMAIN NAME]&quot;<br>    }<br>  }<br>}</pre><p>The connection worked, and now I wanted to understand the data model behind the storefront. Instead of guessing object names, I checked the custom metaobject definitions exposed by the API:</p><p>graphql</p><pre>{<br>  metaobjectDefinitions(first: 50) {<br>    nodes {<br>      type<br>      name<br>      fieldDefinitions {<br>        key<br>        name<br>        type<br>      }<br>    }<br>  }<br>}</pre><p>The response gave me a useful map of the application’s custom objects, and one type immediately stood out:</p><p>text</p><pre>[platform]_design</pre><p>I started small and requested only five objects:</p><p>graphql</p><pre>{<br>  metaobjects(<br>    first: 5<br>    type: &quot;[platform]_design&quot;<br>  ) {<br>    edges {<br>      node {<br>        id<br>        type<br>        handle<br>        fields {<br>          key<br>          value<br>        }<br>      }<br>    }<br>  }<br>}</pre><p>It returned real design objects, and that was the point where I stopped treating this as simple API discovery. There was an actual collection behind the type</p><h3>From 5 to 250</h3><p>I changed only one thing: first: 5 became first: 250. The API returned 250 objects and &quot;hasNextPage&quot;: true, so I followed the cursor and paginated through the collection. I stopped the script after 20 pages as a local safety limit, which gave me <strong>5,000 design objects</strong> — but 5,000 wasn&#39;t the total. The last response was still returning &quot;hasNextPage&quot;: true, so there were more objects beyond what I had collected. At that point, the number itself wasn&#39;t the interesting part anymore. The interesting part was what those objects contained</p><h3>Following the References</h3><p>The returned fields included captured parameters, source-image references, preview resources, and print-ready resources, so I picked one design and followed its references:</p><p>http</p><pre>GET /[platform]/designs/[DESIGN_ID].json</pre><p>The response returned the design data, including user-created text:</p><p>text</p><pre>Congrats<br>Class of 2024</pre><p>It also exposed references to the resources behind the design. Following an upload reference:</p><p>http</p><pre>/[platform]/uploads/[UPLOAD_ID]</pre><p>redirected to a CDN-hosted image, where the actual uploaded image was accessible. These weren’t ordinary public assets, they were <strong>customer-uploaded images used in their own designs</strong>. The same objects also exposed preview and print-ready resources, allowing the rendered designs to be reached directly, so from the tested data I could reach:</p><p>text</p><pre>Design JSON<br>→ Customer-uploaded image<br>→ CDN resource</pre><pre>Design metadata<br>→ Preview / print resource<br>→ Rendered design</pre><p>The exposure therefore wasn’t limited to IDs. It could include <strong>customer-created designs, uploaded images, design text, rendered resources, and internal metadata such as admin titles</strong></p><p>The report was classified as <strong>High severity</strong>, as was the report it was marked as a duplicate of</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/1*u_4QGAf7vSFwWZI4kVz08g.png" /></figure><p>What started as frontend research ended with a public data path into customer-created content that wasn’t supposed to be discoverable this way. <strong>The important part wasn’t the object I found. It was what that object allowed me to reach</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1b820f43db7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>