# YzmCMS\_3.6\_Bug

**YzmCMS 3.6 bug**

> \[Suggested description]\
> YzmCMS 3.6\
> allows remote attackers to discover the full path via a direct request to application/install/templates/s1.php.
>
> \[Additional Information]\
> The vulnerability was discovered by downloading the program's source code to local and online deployment tests.
>
> Location:\
> domain/application/install/templates/s1.php
>
> Code:\
> \<?php require './templates/header.php'; ?>
>
> Rows : 10
>
> Return error :\
> Warning: require(./templates/header.php): failed to open stream: No such file or directory in /www/application/install/templates/s1.php on line 10\
> Fatal error: require(): Failed opening required './templates/header.php' (include\_path='.;C:\php\pear') in /www/application/install/templates/s1.php on line 10
>
> Harm:\
> Web Site physical path leakage .
>
> Conditions for Execution:\
> Normal access can
>
> Edition:\
> YzmCMS 3.6
>
> Cause the cause :\
> require(): Failed opening required './templates/header.php' (include\_path='.;C:\php\pear') in /www/application/install/templates/s1.php on line 10, cause path leakage.
>
> POC :\
> <http://127.0.0.1/application/install/templates/s1.php>
>
> fix suggestions :\
> Modify the application source code to avoid information leakage.
>
> \[VulnerabilityType Other]\
> physical path leakage
>
> \[Vendor of Product]\
> YzmCMS
>
> \[Affected Product Code Base]\
> YzmCMS - 3.6
>
> \[Affected Component]\
> /application/install/templates/s1.php , require(./templates/header.php): failed to open stream: No such file or directory , Web Site physical path leakage .
>
> \[Attack Type]\
> Remote
>
> \[Impact Information Disclosure]\
> true
>
> \[Attack Vectors]\
> The vulnerability is triggered by accessing the following URL :\
> <http://domain/application/install/templates/s1.php>
>
> \[Discoverer]\
> kongxin


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kongxin.gitbook.io/yzmcms-3-6-bug/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
