<?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: Rahul Khanal</title>
    <description>The latest articles on DEV Community by Rahul Khanal (@khanalrahul).</description>
    <link>https://dev.to/khanalrahul</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4284325%2Fe30f3bb7-b3bc-49d9-9328-0301ce2d706b.jpg</url>
      <title>DEV Community: Rahul Khanal</title>
      <link>https://dev.to/khanalrahul</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/khanalrahul"/>
    <language>en</language>
    <item>
      <title>CVE vs CVSS, and how to prioritise 500 vulnerability scan findings</title>
      <dc:creator>Rahul Khanal</dc:creator>
      <pubDate>Sat, 05 Dec 2026 09:01:11 +0000</pubDate>
      <link>https://dev.to/khanalrahul/cve-vs-cvss-and-how-to-prioritise-500-vulnerability-scan-findings-12j1</link>
      <guid>https://dev.to/khanalrahul/cve-vs-cvss-and-how-to-prioritise-500-vulnerability-scan-findings-12j1</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; a &lt;strong&gt;CVE&lt;/strong&gt; is an ID for one publicly known vulnerability, such as CVE-2021-44228. A &lt;strong&gt;CVSS&lt;/strong&gt; score rates how severe a vulnerability is on a scale of 0 to 10. Neither tells you what to fix first. For a long scan report, start with what is known to be exploited (CISA KEV), then what is likely to be exploited (EPSS), then what is exposed or important in your own environment, and use CVSS last to break ties.&lt;/p&gt;

&lt;h2&gt;
  
  
  CVE: the name
&lt;/h2&gt;

&lt;p&gt;The CVE Program gives each publicly disclosed vulnerability a unique identifier in the form &lt;code&gt;CVE-YEAR-NUMBER&lt;/code&gt;. CVE Numbering Authorities (CNAs), mostly vendors and security organisations, assign the IDs, and MITRE runs the program. A CVE entry is a short description and references. It doesn't tell you how bad the vulnerability is or whether you are affected.&lt;/p&gt;

&lt;h2&gt;
  
  
  CVSS: the severity score
&lt;/h2&gt;

&lt;p&gt;The Common Vulnerability Scoring System, maintained by FIRST, turns a vulnerability's characteristics into a number. The characteristics include attack vector, complexity, privileges needed, user interaction and impact on confidentiality, integrity and availability. The ratings are:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;th&gt;Rating&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0.0&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0.1 - 3.9&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4.0 - 6.9&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7.0 - 8.9&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9.0 - 10.0&lt;/td&gt;
&lt;td&gt;Critical&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;CVSS 3.1 is still the most common version in scanners. CVSS 4.0 was released in November 2023 and adds clearer threat and environmental metrics. The number you usually see is the &lt;em&gt;base&lt;/em&gt; score: the severity of the flaw itself, in the worst case, with no knowledge of your network. That is the main limit of CVSS. Severity is not risk.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "fix all criticals first" fails
&lt;/h2&gt;

&lt;p&gt;A typical OpenVAS or Nessus scan of a few dozen servers returns hundreds of findings, and a large share are High or Critical. Most vulnerabilities with high scores are never exploited, while some Medium ones are exploited widely. Sorting by CVSS alone keeps a team busy without cutting much real risk.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical order for 500 findings
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Clean the list.&lt;/strong&gt; Remove duplicates, confirm what is real (version-only detections are often false positives, for example on backported Linux packages) and group findings by &lt;em&gt;fix&lt;/em&gt;. One kernel or OpenSSL update often closes dozens of findings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Known exploited first.&lt;/strong&gt; Check every CVE against the &lt;a href="https://www.cisa.gov/known-exploited-vulnerabilities-catalog" rel="noopener noreferrer"&gt;CISA Known Exploited Vulnerabilities catalog&lt;/a&gt;. If a CVE is in KEV and you have it, it goes to the top, whatever its CVSS score.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Likely to be exploited next.&lt;/strong&gt; &lt;a href="https://www.first.org/epss/" rel="noopener noreferrer"&gt;EPSS&lt;/a&gt;, also from FIRST, estimates the probability that a CVE will be exploited in the next 30 days. A high EPSS score with a lower CVSS score often deserves attention before a 9.8 that nobody is targeting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exposure.&lt;/strong&gt; Internet-facing systems (VPN gateways, web servers, mail, remote access) come before internal ones. Ask whether an attacker can actually reach the vulnerable service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Asset value.&lt;/strong&gt; Domain controllers, identity systems, backups, firewalls and systems holding customer data rank above test machines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Then CVSS&lt;/strong&gt;, to order what is left.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set deadlines by tier&lt;/strong&gt; and track them. For example: KEV and internet-facing within days, high-risk internal within a few weeks, the rest in the normal patch cycle. Choose numbers your team can meet, and record exceptions with an owner and a review date.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  When you can't patch
&lt;/h2&gt;

&lt;p&gt;Some systems can't be patched quickly. Typical reasons are vendor appliances, legacy applications and change freezes. Then reduce exposure instead: restrict the service to the networks that need it, turn off the vulnerable feature, add a WAF or IPS rule, and watch the logs for exploitation attempts. Write down the compensating control. An auditor will ask for it, and so will your future self.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is CVSS a measure of risk?
&lt;/h3&gt;

&lt;p&gt;No. The base score rates the technical severity of a flaw. Risk also depends on whether it is being exploited, whether the system is exposed and how important the asset is.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the difference between CVE and CWE?
&lt;/h3&gt;

&lt;p&gt;A CVE is one specific vulnerability in one product. A CWE is a type of weakness, such as CWE-79 (cross-site scripting), that many CVEs belong to.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does "known exploited" mean in practice?
&lt;/h3&gt;

&lt;p&gt;CISA has reliable evidence that attackers used the vulnerability in real attacks, and there is a clear fix or mitigation. For prioritising, that is the strongest signal you can get for free.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://raahul.com.np/blog/cve-vs-cvss-prioritise-vulnerability-findings/" rel="noopener noreferrer"&gt;raahul.com.np&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>vulnerabilities</category>
      <category>devops</category>
    </item>
    <item>
      <title>Group Policy processing order (LSDOU) explained: which GPO wins and why</title>
      <dc:creator>Rahul Khanal</dc:creator>
      <pubDate>Sat, 05 Dec 2026 09:01:00 +0000</pubDate>
      <link>https://dev.to/khanalrahul/group-policy-processing-order-lsdou-explained-which-gpo-wins-and-why-9f3</link>
      <guid>https://dev.to/khanalrahul/group-policy-processing-order-lsdou-explained-which-gpo-wins-and-why-9f3</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Group Policy applies in the order Local, Site, Domain, then OUs from the top of the tree down (LSDOU). When two GPOs set the same setting, the one applied last wins, so the OU closest to the object usually wins. Two things change that: &lt;em&gt;Enforced&lt;/em&gt; links, which win from higher up and can't be blocked, and &lt;em&gt;Block Inheritance&lt;/em&gt; on an OU, which stops non-enforced GPOs from above.&lt;/p&gt;

&lt;h2&gt;
  
  
  The basic order
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Local&lt;/strong&gt; Group Policy on the machine itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Site&lt;/strong&gt; GPOs linked to the Active Directory site the computer is in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Domain&lt;/strong&gt; GPOs linked at the domain root, such as the Default Domain Policy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OU&lt;/strong&gt; GPOs, from the parent OU down to the OU that holds the user or computer object.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each level can override the one before it. If the domain sets the screen-lock timeout to 15 minutes and the &lt;code&gt;Finance&lt;/code&gt; OU sets it to 5, a computer in &lt;code&gt;Finance&lt;/code&gt; gets 5.&lt;/p&gt;

&lt;p&gt;Computer settings follow the computer object's location, and user settings follow the user object's location. A user in the &lt;code&gt;Sales&lt;/code&gt; OU who logs on to a machine in the &lt;code&gt;Lab&lt;/code&gt; OU gets user settings from &lt;code&gt;Sales&lt;/code&gt; and computer settings from &lt;code&gt;Lab&lt;/code&gt;, unless loopback is configured (see below).&lt;/p&gt;

&lt;h2&gt;
  
  
  Link order inside one container
&lt;/h2&gt;

&lt;p&gt;When several GPOs are linked to the same OU, the Group Policy Management Console (GPMC) lists them with a &lt;em&gt;Link Order&lt;/em&gt;. Link order 1 has the &lt;strong&gt;highest&lt;/strong&gt; precedence: it is applied last and wins conflicts. People often get this backwards.&lt;/p&gt;

&lt;h2&gt;
  
  
  Enforced and Block Inheritance
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Block Inheritance&lt;/strong&gt; on an OU stops GPOs linked above it (site, domain, parent OUs) from applying to that OU.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enforced&lt;/strong&gt; on a GPO link means the GPO's settings can't be overridden by lower links and still apply through Block Inheritance. If two enforced links conflict, the one higher in the tree wins.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use both sparingly. Every Enforced or Block Inheritance flag is an exception that the next administrator has to discover the hard way. Password and account lockout policy for domain accounts is a special case: it comes from the domain-level policy, or from fine-grained password policies, not from OU-linked GPOs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Filtering: which objects a GPO applies to at all
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Security filtering.&lt;/strong&gt; The object needs both &lt;em&gt;Read&lt;/em&gt; and &lt;em&gt;Apply group policy&lt;/em&gt; permissions on the GPO. The default is Authenticated Users. If you replace that with a specific group for a user-settings GPO, keep Read for Authenticated Users or Domain Computers. Since the MS16-072 update, computers read user GPOs in the computer's security context, and without that Read permission the GPO silently fails to apply.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WMI filtering&lt;/strong&gt; applies a GPO only when a query on the machine is true, for example only on laptops or one Windows version. WMI filters are slow, so keep them few and simple.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Item-level targeting&lt;/strong&gt; works inside Group Policy Preferences only, per item.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Loopback processing
&lt;/h2&gt;

&lt;p&gt;Loopback makes user settings follow the &lt;em&gt;computer's&lt;/em&gt; OU. It is used for kiosks, terminal servers and labs, where the machine should decide the user experience.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Merge:&lt;/strong&gt; the user's normal user settings apply first, then the user settings from the computer's GPOs. On conflicts, the computer side wins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replace:&lt;/strong&gt; only the user settings from the computer's GPOs apply.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When it applies
&lt;/h2&gt;

&lt;p&gt;Computer settings apply at startup, and user settings apply at logon. After that, both refresh in the background every 90 minutes, with a random offset of up to 30 minutes so that thousands of clients don't hit the domain controllers at once. Domain controllers refresh every 5 minutes. Some settings, such as software installation and folder redirection, only apply at startup or logon.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check what actually applied
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;&lt;span class="n"&gt;gpupdate&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;force&lt;/span&gt;                 # &lt;span class="n"&gt;refresh&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt;
&lt;span class="n"&gt;gpresult&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;                     # &lt;span class="n"&gt;summary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;applied&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;filtered&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="nc"&gt;GPOs&lt;/span&gt;
&lt;span class="n"&gt;gpresult&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="no"&gt;C&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;\&lt;span class="n"&gt;temp&lt;/span&gt;\&lt;span class="n"&gt;gp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;     # &lt;span class="n"&gt;full&lt;/span&gt; &lt;span class="no"&gt;HTML&lt;/span&gt; &lt;span class="n"&gt;report&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;winning&lt;/span&gt; &lt;span class="no"&gt;GPO&lt;/span&gt; &lt;span class="n"&gt;per&lt;/span&gt; &lt;span class="n"&gt;setting&lt;/span&gt;
&lt;span class="n"&gt;gpresult&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;scope&lt;/span&gt; &lt;span class="n"&gt;computer&lt;/span&gt;     # &lt;span class="n"&gt;computer&lt;/span&gt; &lt;span class="n"&gt;side&lt;/span&gt; &lt;span class="n"&gt;only&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;run&lt;/span&gt; &lt;span class="n"&gt;as&lt;/span&gt; &lt;span class="n"&gt;administrator&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In GPMC, &lt;em&gt;Group Policy Results&lt;/em&gt; shows what applied to a real user on a real machine. &lt;em&gt;Group Policy Modeling&lt;/em&gt; simulates a move before you make it. When a setting "doesn't work", the cause is usually one of three: the object is in a different OU than you think, security filtering excludes it, or a GPO with higher precedence sets the opposite value.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What does LSDOU stand for?
&lt;/h3&gt;

&lt;p&gt;Local, Site, Domain, Organizational Unit: the order in which Group Policy is processed. Later levels override earlier ones.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does a GPO linked to a security group apply to its members?
&lt;/h3&gt;

&lt;p&gt;GPOs can't be linked to groups, only to sites, domains and OUs. Groups are used for security filtering, to narrow down who a linked GPO applies to.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which wins: Enforced or Block Inheritance?
&lt;/h3&gt;

&lt;p&gt;Enforced. Block Inheritance stops only non-enforced GPOs from above.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://raahul.com.np/blog/group-policy-processing-order-lsdou/" rel="noopener noreferrer"&gt;raahul.com.np&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>activedirectory</category>
      <category>windows</category>
      <category>sysadmin</category>
      <category>security</category>
    </item>
    <item>
      <title>Why my site showed a self-signed certificate on one network only: split DNS behind Cloudflare</title>
      <dc:creator>Rahul Khanal</dc:creator>
      <pubDate>Sat, 05 Dec 2026 09:00:51 +0000</pubDate>
      <link>https://dev.to/khanalrahul/why-my-site-showed-a-self-signed-certificate-on-one-network-only-split-dns-behind-cloudflare-545h</link>
      <guid>https://dev.to/khanalrahul/why-my-site-showed-a-self-signed-certificate-on-one-network-only-split-dns-behind-cloudflare-545h</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; if a site behind Cloudflare shows a valid certificate on most networks but a self-signed one on a single network, that network's DNS resolver is probably not following public DNS. It answers with the origin server's address from an old internal zone, so browsers skip Cloudflare and meet the origin's own certificate. Compare &lt;code&gt;dig&lt;/code&gt; results from the local resolver and a public one, then check which certificate each address serves.&lt;/p&gt;

&lt;h2&gt;
  
  
  The symptom
&lt;/h2&gt;

&lt;p&gt;After I republished my site, it loaded with a valid certificate when checked through public DNS resolvers. On the network I use every day, Chrome showed &lt;em&gt;Your connection is not private&lt;/em&gt;, and the certificate details named a self-signed certificate issued by the hosting server itself.&lt;/p&gt;

&lt;p&gt;Same domain, same browser, different network. That pattern points at DNS, not at the web server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: compare DNS answers
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# the resolver your machine uses right now&lt;/span&gt;
dig +short raahul.com.np

&lt;span class="c"&gt;# public resolvers&lt;/span&gt;
dig +short raahul.com.np @1.1.1.1
dig +short raahul.com.np @8.8.8.8

&lt;span class="c"&gt;# who is authoritative for the domain&lt;/span&gt;
dig +short NS raahul.com.np @1.1.1.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The public resolvers returned Cloudflare addresses, and the NS records were Cloudflare name servers. The local resolver returned a different address: the hosting server's own IP. So the local network kept its own copy of the zone, which was correct before the domain moved to Cloudflare and is stale now. This setup is called split-horizon DNS: different answers depending on who asks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: compare the certificates
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# certificate as seen through Cloudflare&lt;/span&gt;
openssl s_client -connect raahul.com.np:443 -servername raahul.com.np &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;/dev/null 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null \
  &lt;span class="o"&gt;|&lt;/span&gt; openssl x509 -noout -issuer -subject -enddate

&lt;span class="c"&gt;# certificate on the origin, pinned to the address the local resolver gave&lt;/span&gt;
curl -vI --resolve raahul.com.np:443:ORIGIN_IP https://raahul.com.np/ 2&lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt;1 &lt;span class="o"&gt;|&lt;/span&gt; grep -E &lt;span class="s2"&gt;"issuer|subject|expire"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Through Cloudflare the issuer was Google Trust Services, the edge certificate Cloudflare issues automatically. On the origin the issuer and subject were the same server name: a self-signed certificate that the hosting panel creates as a placeholder. Browsers have always rejected that one. Most visitors never saw it because Cloudflare sat in front.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl --resolve&lt;/code&gt; is the useful trick here. It lets you test one exact server address without editing &lt;code&gt;/etc/hosts&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it matters beyond one network
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cloudflare's SSL mode.&lt;/strong&gt; With the origin on a self-signed certificate, Cloudflare can only use the Full mode, which encrypts to the origin but doesn't check its certificate. Full (strict) needs a valid origin certificate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Origin exposure.&lt;/strong&gt; An internal zone that hands out the origin address bypasses Cloudflare's protection for everyone on that network, and it puts the origin IP in places you don't control.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silent drift.&lt;/strong&gt; Nobody notices a stale zone until something changes, such as a migration, a new certificate or a new host.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The fix
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Give the origin a real certificate.&lt;/strong&gt; Use AutoSSL (Let's Encrypt or Sectigo) in cPanel, or a Cloudflare Origin CA certificate, which only Cloudflare trusts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set Cloudflare SSL/TLS to Full (strict)&lt;/strong&gt; once the origin certificate is valid.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remove the stale internal zone,&lt;/strong&gt; or have the network's DNS team remove it, so the local resolver forwards the query to public DNS like everyone else.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test again from both sides&lt;/strong&gt; with the commands above.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Steps 1 to 3 are separate fixes. Step 1 alone makes the error go away on that network, but browsers still skip Cloudflare there. Step 3 alone hides the bad certificate but leaves the origin weak. Do all three.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why does the site work on mobile data but not on Wi-Fi?
&lt;/h3&gt;

&lt;p&gt;Each network uses its own DNS resolver. If one resolver has a different, often older, record for your domain, only clients on that network reach the old address.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I just tell users to switch to 1.1.1.1?
&lt;/h3&gt;

&lt;p&gt;For a test, yes. As a fix, no. The stale record and the self-signed origin certificate are still there for everyone else on the network.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is a self-signed certificate behind Cloudflare a security problem?
&lt;/h3&gt;

&lt;p&gt;In Full mode the traffic to the origin is encrypted but the origin's identity is not checked. Anyone who can intercept that path could impersonate the origin. Full (strict) with a valid certificate closes that gap.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://raahul.com.np/blog/self-signed-certificate-one-network-split-dns-cloudflare/" rel="noopener noreferrer"&gt;raahul.com.np&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>dns</category>
      <category>cloudflare</category>
      <category>ssl</category>
      <category>networking</category>
    </item>
    <item>
      <title>Spam sitemaps in Google Search Console on a domain you own: what they mean and how to remove them</title>
      <dc:creator>Rahul Khanal</dc:creator>
      <pubDate>Sat, 05 Dec 2026 09:00:35 +0000</pubDate>
      <link>https://dev.to/khanalrahul/spam-sitemaps-in-google-search-console-on-a-domain-you-own-what-they-mean-and-how-to-remove-them-351o</link>
      <guid>https://dev.to/khanalrahul/spam-sitemaps-in-google-search-console-on-a-domain-you-own-what-they-mean-and-how-to-remove-them-351o</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; spam sitemaps in your Search Console property, with URLs such as &lt;code&gt;detail.php?sitemap594.xml&lt;/code&gt; on a host you don't use, almost always mean that someone once had write access to a server answering for your domain and used it for SEO spam. Remove the sitemaps, then look for how they got there: unknown owners in Search Console, leftover verification files, old subdomains and stray PHP files.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I found
&lt;/h2&gt;

&lt;p&gt;This week I moved my portfolio to a new build and verified the domain in Google Search Console with a DNS TXT record. The Sitemaps report did not start empty. It listed my new sitemap and five others I had never submitted, all on &lt;code&gt;mail.raahul.com.np&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://mail.raahul.com.np/detail.php?sitemap594.xml
http://mail.raahul.com.np/products.php?sitemap791.xml
... (three more with the same pattern)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;They were submitted on 19 May 2026. Three things made them stand out straight away:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The host.&lt;/strong&gt; I never published a website on the &lt;code&gt;mail&lt;/code&gt; subdomain. It was a mail service name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The pattern.&lt;/strong&gt; A PHP script name with a numbered "sitemap" in the query string is a common sign of generated spam pages. Real sitemaps are usually static files such as &lt;code&gt;/sitemap.xml&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The date.&lt;/strong&gt; It matched nothing I had done on the site.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What spam sitemaps usually mean
&lt;/h2&gt;

&lt;p&gt;A domain property in Search Console covers every subdomain and protocol. If anyone submits a sitemap for any part of it, for example after proving ownership of one subdomain, the sitemap can show up in your report. Spam campaigns such as the Japanese keyword hack work this way. The attacker gets write access to a server, uploads a script that generates thousands of keyword pages, verifies themselves in Search Console with an HTML file, and submits sitemaps so Google indexes the spam pages quickly. Your domain's reputation helps those pages rank.&lt;/p&gt;

&lt;p&gt;So the sitemaps are a symptom. The real question is how someone got write access to a server answering for your domain.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I did
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Checked whether the host still exists.&lt;/strong&gt; &lt;code&gt;mail.raahul.com.np&lt;/code&gt; no longer resolves in public DNS, so the spam pages are not being served today.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dig +short mail.raahul.com.np @1.1.1.1
dig +short mail.raahul.com.np @8.8.8.8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Removed the five sitemaps&lt;/strong&gt; in Search Console (Sitemaps, open each one, the three-dot menu, Remove sitemap). Only &lt;code&gt;https://raahul.com.np/sitemap.xml&lt;/code&gt; is left, with status Success.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Checked the Security issues and Manual actions reports.&lt;/strong&gt; Both were empty. That is good news, but it doesn't prove the site is clean.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Moved the old site out of the web root&lt;/strong&gt; when I published the new one, so no old files are served. The old copy included a public &lt;code&gt;.git&lt;/code&gt; folder, which is a separate leak worth checking for on any site.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Checklist if you find the same thing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Google search:&lt;/strong&gt; &lt;code&gt;site:yourdomain&lt;/code&gt; shows what is still indexed. Spam pages often have shop or pharmacy titles you never wrote.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search Console, Settings, Users and permissions:&lt;/strong&gt; remove any owner you don't recognise. Also remove the method they verified with, such as a &lt;code&gt;google*.html&lt;/code&gt; file or a meta tag, or they can verify again.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hosting panel (cPanel or similar):&lt;/strong&gt; list subdomains, addon domains and their document roots. A forgotten subdomain is a common entry point.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Files:&lt;/strong&gt; look for PHP files you didn't write, recently changed files and files inside upload folders: &lt;code&gt;find ~ -name "*.php" -newermt 2026-05-01&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DNS:&lt;/strong&gt; remove records for hosts you no longer use. Records that point at old servers or cloud resources can be taken over.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Credentials:&lt;/strong&gt; change hosting, DNS provider, CMS and FTP passwords, and turn on two-factor login where you can.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Afterwards:&lt;/strong&gt; resubmit your own sitemap. Request removal of indexed spam URLs with the Removals tool if they still show in search.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Lessons
&lt;/h2&gt;

&lt;p&gt;Domain-wide verification is useful because it shows you everything Google associates with your name, including things you would rather not see. If I had only verified &lt;code&gt;https://raahul.com.np/&lt;/code&gt; as a URL-prefix property, I would never have seen sitemaps on another subdomain. Verify the whole domain and look at every report once, not only the one you came for.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Can someone submit a sitemap to my Search Console without my password?
&lt;/h3&gt;

&lt;p&gt;Not to your account. But they can verify their own ownership of a host on your domain if they can upload a file there or add a meta tag, and from then on they are an owner like you. That is why you remove unknown owners together with their verification tokens.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does removing a sitemap remove the pages from Google?
&lt;/h3&gt;

&lt;p&gt;No. Removing a sitemap only stops it being used for discovery. Pages that no longer exist drop out over time. Use the Removals tool to speed that up.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is my site hacked if Security issues is empty?
&lt;/h3&gt;

&lt;p&gt;Not necessarily clean either. That report only lists problems Google has detected and flagged. Check the server itself.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://raahul.com.np/blog/spam-sitemaps-google-search-console/" rel="noopener noreferrer"&gt;raahul.com.np&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>seo</category>
      <category>security</category>
      <category>webdev</category>
      <category>google</category>
    </item>
  </channel>
</rss>
