In this article, we cover Swift support and vulnerability detection for Mend SAST.
Mend SAST-supported Swift file types
|
File Type |
|---|
|
.swift |
Mend SAST-supported Swift frameworks
|
Framework |
|---|
|
N/A |
Mend SAST-supported Swift vulnerability types
The Swift vulnerability types detected by SAST are provided below and are organized by CWE ID within each of their identified severities.
Swift high-severity vulnerability types
|
CWE |
Vulnerability Type |
Low Probability Impact |
|---|---|---|
|
CWE-22 |
Path Traversal |
|
|
CWE-78 |
Command Injection |
|
|
CWE-79 |
XSS |
|
|
CWE-88 |
Argument Injection |
|
|
CWE-89 |
SQL Injection |
|
|
CWE-94 |
Code Injection |
|
|
CWE-502 |
Deserialization of Untrusted Data |
|
|
CWE-643 |
XPath Injection |
|
|
CWE-918 |
Server-Side Request Forgery (SSRF) |
|
|
CWE-939 |
Improper Authorization in Handler for Custom URL Scheme |
|
|
CWE-943 |
NoSQL Injection |
|
Swift medium-severity vulnerability types
|
CWE |
Vulnerability Type |
Low Probability Impact |
|---|---|---|
|
CWE-90 |
LDAP Injection |
|
|
CWE-295 |
Improper Certificate Validation |
|
|
CWE-321 |
Hard-coded Cryptographic Key |
|
|
CWE-327 |
Broken or Risky Cryptographic Algorithm |
|
|
CWE-338 |
Cryptographically Weak PRNG |
|
|
CWE-400 |
Uncontrolled Resource Consumption |
|
|
CWE-611 |
XML External Entity (XXE) |
|
|
CWE-798 |
Hard-coded Credentials |
|
Swift low-severity vulnerability types
|
CWE |
Vulnerability Type |
Low Probability Impact |
|---|---|---|
|
CWE-117 |
Log Injection |
|
|
CWE-328 |
Weak Hash |
|
|
CWE-601 |
Open Redirect |
|
|
CWE-614 |
Sensitive Cookie Without 'Secure' Attribute |
|
|
CWE-1004 |
Cookie Without 'HttpOnly' Flag |
|
|
CWE-1333 |
Regex Denial of Service (ReDoS) |
|