This article covers PHP support and vulnerability detection for Mend SAST.
Mend SAST-supported PHP file types
|
File Type |
|---|
|
.php |
|
.php2 * |
|
.php3 * |
|
.php4 * |
|
.php5 * |
|
.php6 * |
|
.phtm * |
* Note: These extensions are marked as ‘Secondary’ file extensions.
They will only be scanned if at least one file with any of the other ‘Primary’ file extensions is present to identify the language as the relevant language.
Mend SAST-supported PHP frameworks
|
Framework |
|---|
|
Cake PHP |
|
CodeIgniter |
|
Kohana |
|
Laravel |
|
Phalcon |
|
Symfony |
|
Yii |
|
Zend |
Mend SAST-supported PHP vulnerability types
The PHP vulnerability types detected by SAST are provided below, organized by CWE ID within each of their identified severities.
PHP high-severity vulnerability types
|
CWE |
Vulnerability Type |
Low Probability Impact |
|---|---|---|
|
CWE-22 |
Path Traversal |
|
|
CWE-73 |
File Manipulation (External Control of File Name/Path) |
|
|
CWE-78 |
Command Injection |
|
|
CWE-79 |
XSS |
|
|
CWE-89 |
SQL Injection |
|
|
CWE-94 |
Code Injection |
|
|
CWE-98 |
File Inclusion |
|
|
CWE-384 |
Session Fixation |
|
|
CWE-502 |
Deserialization of Untrusted Data |
|
|
CWE-639 |
IDOR |
|
|
CWE-643 |
XPath Injection |
|
|
CWE-732 |
Insecure File Permission |
|
|
CWE-918 |
Server-Side Request Forgery |
|
|
CWE-943 |
NoSQL Injection |
|
PHP medium-severity vulnerability types
|
CWE |
Vulnerability Type |
Low Probability Impact |
|---|---|---|
|
CWE-90 |
LDAP Injection |
|
|
CWE-209 |
Error Message Information Exposure |
|
|
CWE-295 |
Improper Certificate Validation |
|
|
CWE-327 |
Weak Crypto |
|
|
CWE-338 |
Weak Random |
|
|
CWE-377 |
Insecure Temporary File |
|
|
CWE-400 |
Sleep DoS |
|
|
CWE-472 |
Parameter Tampering (External Control of Assumed-Immutable Web Parameter) |
|
|
CWE-611 |
XXE |
|
|
CWE-676 |
Misc Dangerous Function |
|
|
CWE-798 |
Hard-Coded Credentials |
|
|
CWE-1336 |
Template Injection |
|
PHP low-severity vulnerability types
|
CWE |
Vulnerability Type |
Low Probability Impact |
|---|---|---|
|
CWE-20 |
Mail Relay |
|
|
CWE-20 |
Memcache Injection |
|
|
CWE-113 |
HTTP Response Header Injection |
|
|
CWE-117 |
Log Injection |
|
|
CWE-326 |
Weak Encryption |
|
|
CWE-328 |
Weak Hash |
|
|
CWE-434 |
Unrestricted File Upload |
|
|
CWE-530 |
Dangerous File Extension |
|
|
CWE-601 |
Open Redirect |
|
|
CWE-941 |
Arbitrary Server Connection |
|
|
CWE-1004 |
Missing HttpOnly Flag |
|
|
CWE-1333 |
ReDoS |
|