Unlimited source code upload and repair of technology development enterprise websites

Source: Internet
Author: User

It is not so much a technology development-type enterprise website source code unlimited Upload Vulnerability
 
It is better to say that there is an unlimited Upload Vulnerability in the rolling display and uploading System of Jinyu FLASH.
 
Read the code.
 
01 <! -- # Include file = "upload_5xsoft.inc" -->
 
02 <style type = "text/css">
 
03 <! --
 
04 a {font-family: ""; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <% = fontcolor %>; text-decoration: none}
 
05 a: hover {font-family: ""; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <% = fontcolor %>; text-decoration: underline}
 
06 td {font-family: ""; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <% = fontcolor %>}
 
07 br {font-family: ""; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <% = fontcolor %>}
 
08. bk {font-size: 9pt; border: 1px <% = xcolor %> solid}
 
09 body {font-family: ""; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none}
 
10. an {font-family: ""; font-size: 9pt; background-color: <% = bgcolor %>; border: 1px <% = xcolor %> solid; color: <% = fontcolor %>}
 
11. xzy {border: <% = xcolor %> solid; border-width: 0px 1px}
 
12. zx {border: <% = xcolor %> solid; border-width: 0px 0px 1px 1px}
 
13. sxz {border: <% = xcolor %> solid; border-width: 1px 0px 1px 1px}
 
14. s {border: <% = xcolor %>; border-style: solid; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px}
 
15. y {border: <% = xcolor %>; border-style: solid; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 0px; border-left-width: 0px}
 
16. font {font-family: "Arial Black"; font-size: 14pt; color: <% = fontcolor %>}
 
17. x {border: <% = xcolor %>; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px}
 
18. z {border: <% = xcolor %>; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 1px}
 
19. sx {border: <% = xcolor %>; border-style: solid; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px}
 
20 -->
 
21 </style>
 
22 <body bgcolor = "ffffff" leftmargin = "0" topmargin = "0">
 
23 <table width = "100%" height = "100%" border = "0" cellpadding = "0" cellspacing = "0">
 
24 <tr>
 
25 <td align = "center">
 
26 <script language = "Javascript">
 
27 function eimage (smileface)
 
28 {
 
29. login using opener.doc ument. form. eimage. value = smileface;
 
30}
 
31 www.2cto.com
 
32 </script>
 
33 <%
 
34 set upload = new upload_5xSoft
 
35 set file = upload. file ("file1 ")
 
36 formPath = "../flash_images /"
 
37. if file. filesize> 100 then
 
38 fileExt = lcase (right (file. filename, 3 ))
 
39 if fileExt = "asp" then
 
40 Response. Write "invalid file type"
 
41 end if
 
42 end if
 
43 randomize
 
44 ranNum = int (90000 * rnd) + 10000
 
45 filename = formPath & year (now) & month (now) & day (now) & hour (now) & minute (now) & second (now) & ranNum &". "& fileExt
 
46 picname = "flash_images/" & year (now) & month (now) & day (now) & hour (now) & minute (now) & second (now) & ranNum &". "& fileExt
 
47 if file. FileSize> 0 then
 
48 file. SaveAs Server. mappath (FileName)
 
49 end if
 
50 response. write " </img> <br> <a href = Javascript: eimage ('"& picname &"'); window. close ();> I decided to use this image </a> "%>
 
51 </td>
 
52 </tr>
 
53 </table>
 
54 </body>
You can see that nothing is limited.
 
The error message "invalid file" appears when uploading asp files.
 
However, all files are uploaded to the directory.
 
 
 
From the dog's blog
 
Solution: strengthen restrictions
 
 
 
 

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.