> For the complete documentation index, see [llms.txt](https://kongxin.gitbook.io/dedecms-5-7-bug/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kongxin.gitbook.io/dedecms-5-7-bug/master.md).

# DedeCMS\_5.7\_Bug

DedeCMS 5.7 Bug

> \[Suggested description] DedeCMS 5.7 allows remote attackers to discover the full path via a direct request for include/downmix.inc.php or inc/inc\_archives\_functions.php.
>
> \[Additional Information]\
> Fix suggestions:\
> Modify the application source code to avoid information leakage.
>
> The vulnerability was discovered by downloading the program's source code to local and online deployment tests.
>
> Location: include/downmix.inc.php
>
> Code:
>
> helper('downmix');
>
> Rows:13
>
> Return error :
>
> Fatal error: Call to undefined function helper() in /www/include/downmix.inc.php on line 13
>
> Harm:
>
> Web site physical path leakage .
>
> conditions for execution:
>
> Normal access can
>
> Edition:
>
> DedeCMS 5.7
>
> Cause the cause :
>
> Call to undefined function helper(), cause path leakage
>
> POC : <http://127.0.0.1/include/downmix.inc.php>
>
> Location: /dede/inc/inc\_archives\_functions.php
>
> Code:
>
> require\_once(DEDEINC.'/dedehttpdown.class.php');
>
> Rows:11
>
> Return error :
>
> Notice: Use of undefined constant DEDEINC - assumed 'DEDEINC' in /www/dede/inc/inc\_archives\_functions.php on line 11\
> Warning: require\_once(DEDEINC/dedehttpdown.class.php): failed to open stream: No such file or directory in /www/dede/inc/inc\_archives\_functions.php on line 11\
> Fatal error: require\_once(): Failed opening required 'DEDEINC/dedehttpdown.class.php' (include\_path='.;C:\php\pear') in /www/dede/inc/inc\_archives\_functions.php on line 11
>
> Harm:
>
> Web site physical path leakage .
>
> conditions for execution:
>
> Normal access can
>
> Edition:
>
> DedeCMS 5.7
>
> Cause the cause :
>
> require\_once(): Failed opening required 'DEDEINC/dedehttpdown.class.php' (include\_path='.;C:\php\pear') , cause path leakage
>
> POC : <http://127.0.0.1/dede/inc/inc_archives_functions.php>
>
> \[VulnerabilityType Other]\
> Physical path leaks
>
> \[Vendor of Product]\
> dedecms
>
> \[Affected Product Code Base]\
> dedecms - 5.7
>
> \[Affected Component]\
> downmix.inc.php , Call to undefined function helper() , Web site physical path leakage
>
> \[Attack Type]\
> Remote
>
> \[Impact Information Disclosure]\
> true
>
> \[Attack Vectors]\
> The vulnerability can be triggered by visiting the URL below:\
> <http://127.0.0.1/include/downmix.inc.php>\
> <http://127.0.0.1/dede/inc/inc_archives_functions.php>
>
> \[Discoverer]\
> kongxin


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://kongxin.gitbook.io/dedecms-5-7-bug/master.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
