vendor:
Devalcms
by:
CWH Underground
7.5
CVSS
HIGH
Local File Inclusion
94
CWE
Product Name: Devalcms
Affected Version From: 1.4a
Affected Version To: 1.4a
Patch Exists: NO
Related CWE: N/A
CPE: a:devalcms:devalcms:1.4a
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2008
Devalcms 1.4a Local File Inclusion Vulnerability
Function mystriprelative is a function to prevent user from inserting relative path into variable. As the code above, you can bypass this fuction by something like following Simple Algorithm: [+] When we use '.../...//' Function will convert to '../' [+] When we use './.....//' Function will convert to '../' [+] When we use '.../...//./.....//' Function will convert to '../../' So we must use '.../...//./.....//./.....//etc/passwd%00' Function will convert to '../../../etc/passwd%00'
Mitigation:
Ensure that user input is properly sanitized and validated before being used in a file path.