<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: omar nasser</title>
    <description>The latest articles on DEV Community by omar nasser (@omar_nasser_e31d039aadf08).</description>
    <link>https://dev.to/omar_nasser_e31d039aadf08</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3606740%2F9193bfe8-1b56-4a61-bded-1a2f55c82e91.jpg</url>
      <title>DEV Community: omar nasser</title>
      <link>https://dev.to/omar_nasser_e31d039aadf08</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omar_nasser_e31d039aadf08"/>
    <language>en</language>
    <item>
      <title>Hunting Hidden GraphQL Mutations How I Found AddWorkspaceWhitelistDomains Using JavaScript Analysis</title>
      <dc:creator>omar nasser</dc:creator>
      <pubDate>Wed, 12 Nov 2025 01:25:00 +0000</pubDate>
      <link>https://dev.to/omar_nasser_e31d039aadf08/hunting-hidden-graphql-mutations-how-i-found-addworkspacewhitelistdomains-using-javascript-analysis-4991</link>
      <guid>https://dev.to/omar_nasser_e31d039aadf08/hunting-hidden-graphql-mutations-how-i-found-addworkspacewhitelistdomains-using-javascript-analysis-4991</guid>
      <description>&lt;p&gt;( صل علي النبي)&lt;/p&gt;

&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;During a recent penetration test, I encountered an application with restricted functionality due to plan limitations. However, by analyzing the JavaScript files, I discovered hidden GraphQL mutations that revealed undocumented API behavior. This blog explains how I uncovered and tested one of them — AddWorkspaceWhitelistDomains.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fofo57wog5sxam7t5r4re.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fofo57wog5sxam7t5r4re.png" alt=" " width="800" height="142"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h1&gt;
  
  
  Methodology
&lt;/h1&gt;

&lt;h3&gt;
  
  
  Step 1 – Searching JavaScript for GraphQL operations
&lt;/h3&gt;

&lt;p&gt;I searched through the application’s &lt;code&gt;.js&lt;/code&gt; files for &lt;code&gt;mutation&lt;/code&gt; and &lt;code&gt;query&lt;/code&gt; keywords to locate GraphQL operations used by the UI.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2 – Using Wayback Machine &amp;amp; VirusTotal &amp;amp; Burp Suite search
&lt;/h3&gt;

&lt;p&gt;I used the Wayback Machine and VirusTotal to recover archived or cached versions of the JS files that were no longer accessible.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3 – Aggregating and analyzing files
&lt;/h3&gt;

&lt;p&gt;I combined all &lt;code&gt;.js&lt;/code&gt; files into one for easier searching, then extracted all the GraphQL queries and mutations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4 – Finding the key mutation
&lt;/h3&gt;

&lt;p&gt;After analysis, I identified &lt;code&gt;mutation AddWorkspaceWhitelistDomains&lt;/code&gt;, which appeared to handle domain whitelisting.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5 – Testing via Burp Suite
&lt;/h3&gt;

&lt;p&gt;Using Burp Suite, I intercepted and replayed the request to analyze its behavior and confirm the functionality.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fycx15i0i92azdd04itk4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fycx15i0i92azdd04itk4.png" alt=" " width="800" height="345"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Outcome&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I successfully identified and tested the hidden mutation &lt;code&gt;AddWorkspaceWhitelistDomains&lt;/code&gt;. The behavior was confirmed and later reported responsibly to the program.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Alhamdulillah (الحمد لله)&lt;/strong&gt; — another successful finding through persistence and code review.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0u043ahoydgascj3qdw1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0u043ahoydgascj3qdw1.png" alt=" " width="232" height="793"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>security</category>
      <category>testing</category>
      <category>bugbounty</category>
    </item>
  </channel>
</rss>
