CWE guides
CWE guides
In-depth guides to the specific CWE weaknesses Tethlyn Audit checks for, grouped by domain. Each explains the weakness, real use-cases, why AI-generated and vibe-coded code raises the risk, and how to detect and fix it.
33 guides across 7 domains
Broken Access Control & Authorization
View domainAuthorization Bypass Through User-Controlled Key (IDOR / BOLA)
An endpoint accepts an object id and acts on it without checking the caller is allowed that specific object, so changing the id reaches someone else's data.
CWE-862Missing Authorization
A privileged action runs without a server-side check that the caller is allowed to perform it, so hiding the button in the UI is the only thing stopping anyone from calling it.
CWE-269Improper Privilege Management
An application assigns, elevates, or fails to drop privileges so a user can act with more authority than their role allows.
CWE-285Improper Authorization
An application performs an action without correctly checking that the caller is permitted to perform it.
CWE-602Client-Side Enforcement of Server-Side Security
A security check is performed only in the client, which an attacker controls, so it can be skipped or altered before the request reaches the server.
CWE-915Improperly Controlled Modification of Dynamically-Determined Object Attributes
An application binds client-supplied fields directly to an object, letting a user set attributes that were never meant to be writable.
Business Logic Vulnerabilities
View domainAuthentication Bypass by Capture-replay
An attacker captures a valid authentication request or token and resends it to gain access, because the server does not detect the replay.
CWE-362Concurrent Execution using Shared Resource with Improper Synchronization
Two or more operations access a shared resource at the same time without proper synchronization, producing results the code never intended.
CWE-367Time-of-check Time-of-use (TOCTOU) Race Condition
A program checks a condition and then acts on it, but the state can change in between, so the action runs on a condition that no longer holds.
CWE-840Business Logic Errors
An application fails to enforce its own business rules, so a user abuses a legitimate workflow to reach an outcome the rules were meant to prevent.
Sensitive Data Exposure & Privacy
View domainExposure of Sensitive Information Due to Incompatible Policies
An API or response returns more data than the user should see, exposing sensitive fields because the output was not filtered to the intended policy.
CWE-306Missing Authentication for Critical Function
A sensitive function or endpoint performs its action without requiring authentication, so anyone who can reach it can use it.
CWE-532Insertion of Sensitive Information into Log File
Sensitive data such as passwords, tokens, or personal information is written into log files, where it is exposed to anyone who can read the logs.
CWE-922Insecure Storage of Sensitive Information
Sensitive information is stored without adequate protection, such as plaintext passwords or unencrypted personal data, so a single access leaks it.
Authentication & Session Security
View domainObservable Response Discrepancy
An application returns different responses for valid and invalid inputs, so an attacker can learn which accounts, emails, or records exist.
CWE-307Improper Restriction of Excessive Authentication Attempts
An authentication endpoint accepts unlimited attempts, so an attacker can guess passwords or codes by trying as many as they like.
CWE-347Improper Verification of Cryptographic Signature
An application accepts a signed token, webhook, or message without properly verifying its signature, so an attacker can forge or tamper with it.
CWE-613Insufficient Session Expiration
Sessions or tokens stay valid too long or never expire, so a stolen or stale credential keeps working long after it should.
CWE-614Sensitive Cookie in HTTPS Session Without Secure Attribute
A session cookie is set without the Secure, HttpOnly, or SameSite flags, so it can be stolen over plain HTTP, read by scripts, or sent in cross-site requests.
Injection & Code Vulnerabilities
View domainSQL Injection
Untrusted input is concatenated into a database query, letting an attacker change what the query does, read, modify, or destroy data they should never reach.
CWE-79Cross-Site Scripting (XSS)
Untrusted input is rendered into a page without being neutralized, so an attacker's script runs in another user's browser with that user's session.
CWE-918Server-Side Request Forgery (SSRF)
The server fetches a URL supplied by the user, letting an attacker aim the server's own privileged network access at internal systems or cloud metadata.
CWE-22Path Traversal
User-controlled input is used to build a file path, letting an attacker reach files outside the intended directory.
CWE-78OS Command Injection
Untrusted input is placed into a command run by a shell, letting an attacker execute their own commands.
CWE-94Code Injection
Untrusted input is evaluated as program code, letting an attacker run arbitrary logic in the application.
CWE-327Use of a Broken or Risky Cryptographic Algorithm
Data is protected with a cryptographic algorithm that is broken or outdated, so the protection can be defeated.
CWE-330Use of Insufficiently Random Values
A security-sensitive value is generated from a predictable source, so an attacker can guess or reproduce it.
CWE-502Insecure Deserialization
Untrusted data is deserialized into objects, letting an attacker trigger code execution or unexpected behavior.
Secret & Credential Exposure
View domainDependency & Supply Chain Risk
View domainUncontrolled Search Path Element
Dependency confusion happens when a package manager resolves an internal package name to a malicious public package because the search path is not controlled.
CWE-506Embedded Malicious Code
Malicious and typosquatted packages carry hidden harmful code that runs when you install or import a dependency you did not mean to trust.
CWE-1104Use of Unmaintained Third Party Components
This weakness is relying on third party components that are no longer maintained or updated, so known flaws in them are never fixed.
CWE-1395Dependency on Vulnerable Third-Party Component
This weakness is shipping software that depends on third party components with publicly known vulnerabilities that already have assigned identifiers and fixes.
See which of these are in your code
Tethlyn Audit scans your repository and its git history for these weaknesses, then ranks each finding by real exploitability and data sensitivity.