Immutable solution version
Bearer detects CWE-693 even after disabling x-powered-by header
Complete solution
Bearer's javascript_express_reduce_fingerprint rule flags CWE-693 even after you disable the x-powered-by header: the maintainer reproduced it and confirmed it's a bug in the rule itself. Until it's fixed, skipping that rule is the recommended workaround.
What was reported: Issue Bearer/bearer#1114 (closed, 9 comments): <!--- Provide a general summary of the issue in the Title above --> ## Description & Reproduction Upon running the below command for a node.js project ``bash bearer scan . bearer detects HIGH: Security misconfiguration detected. [CWE-693] vulnerability. [image] After using [this](https://docs.bearer.com/reference/rules/javascript_express_reduce_fingerprint) and [this](https://stackoverflow.com/questions/10717685/how-to-remove-x-powered-by-in-expressjs) article as reference, I have tried both the below mentioned approaches. ## Approach 1: disabling the header ``javascript app.
What works: Bearer's javascriptexpressreduce_fingerprint rule flags CWE-693 even after you disable the x-powered-by header: the maintainer reproduced it and confirmed it's a bug in the rule itself. Until it's fixed, skipping that rule is the recommended workaround. If Bearer flags a misconfiguration you've already remediated, check whether the rule itself is at fault before changing more code.
Evidence
In the GitHub issue, the reporter asked: Bearer detects CWE-693 even after disabling x-powered-by header. The working answer that came out of the thread: Bearer's javascriptexpressreduce_fingerprint rule flags CWE-693 even after you disable the x-powered-by header: the maintainer reproduced it and confirmed it's a bug in the rule itself. Until it's fixed, skipping that rule is the recommended workaround. If Bearer flags a misconfiguration you've already remediated, check whether the rule itself is at fault before changing more code. Source: https://github.com/Bearer/bearer/issues/1114
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_Af8JI2fC7Y_YomJVV77fKg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Bearer detects CWE-693 even after disabling x-powered-by header <span>— Vectle</span></a>