X.U.s.t Original: Built IIS to find an ASP program vulnerability

xiaoxiao2021-03-06  38

Build IIS to find an ASP program vulnerability

Author: X.U.S.T

The teacher is happy to be happy: all the rookie, "teacher turns, today to my home" ! The students: dizzy, say so easy, is it a teacher? What? Teacher anger: What? Hey, don't give you some color to see if you don't know, I can be a teacher! Small A, small K, see you two expressions, is it dissatisfied? Let me believe that I have two personal homepage DDOS now? Small A and small K: sweat ... The personal homepage must be DDoS ... you are jealous! I can't afford it? ! The teacher is proud: I am good, if I don't accept the teacher, I still say what this lesson is? Ok, now start class! Student D: Teacher, what is it today? "Halo, yesterday, I just remembered today, I was a teacher, I actually forgot to prepare a class ..." The teacher secretly sent cold sweat, but the teacher saw a wide range of knowledge, it is difficult, "this, since I do this teacher's self-feeling Of course, I am not afraid that everyone is looking for all kinds of questions. Now I am discussing you for 5 minutes. What is it difficult to ask for teachers today! "Students discussed ... 5 minutes passed, students F summed up the results of the discussion: Teacher Now the way the website management system is very good, everyone is using this to do their own website, powerful. I don't know if there is a lot of vulnerabilities that can be used? Teacher: Well, since everyone is exciting, let's take a look. Three products that are easy to produce: MyPower, FreePower and Poweerasy are all very good stuff, you can use them very easy to complete your personal website, the production, development of the company's website, now the way is more than just a single article. Management system, now you can even do download, picture website! It is because of such powerful, now there are more and more people with this system! For example, we often go to WWW.77169.com that is used by this system. "Teacher, don't say this, we all have any functions, don't be interested, we want to know if it is black?" "Hey, you, you know how to do bad things ..." Teacher told the table Laptop, to the official website www.asp163.net downloads the latest "Different Website Management System VER4.03", "In order not to damage the website of others, we will explain this test environment in this unit." "Teacher , The downloaded file is ASP, how to open it? Is it a notepad? "Student Xiao Z carefully asked. "Halo, in my rookie hacker learning class, there is still such a student, counting my grand prize, look back, I will buy lottery tickets", the teacher is really helpless, actually asked how the ASP file is opened ... "Then I am old." Old real teach you. We usually look at the website online, mostly HTML and ASP pages, as for HTML, I don't explain, this classmate in our class understands, and ASP is somewhat different, it is in remote The server is executed. For example, we browse the Microsoft website an ASP page, some scripts of the page are executed in the Microsoft server, returning to us the result of the HTML form. Use ASP to easily make dynamic functionality pages.

"So how can we browse the ASP website?" Microsoft gave us a simple and easy program - use IIS to do a web server, the default supports ASP, you can select 'Add / Remove Windows Components' in the' Add / Remove Windows Components' in the Control Panel, and then in 'Internet Information Serving "there is a choice, the next step knows it. After completing, go to 'Program - Management Tool -Internet Service Manager', generally we can select 'Default Web Site' in local testing, of course, you can also create a new site yourself. The following is the main interface of IIS: Select 'attribute', we have three places to set, 1, 'Web site', in the 'IP address', choose your own computer IP; 2, 'Home Directory' you need to " Local path 'Here you can download the directory after downloading the files you downloaded. Of course, if you want to be lazy, you can extract your ASP file to the wwwroot directory below the INETPUB below the system disk; 3,' Document 'is responsible for setting up your website The default display file of the primary directory or the secondary directory, such as you add a 'index.asp', then call the contents of this file when you open a folder by default. "" I can set this home file is my name? " ", Small A ask", for example, set A.htm or A.ASP? "Of course, as long as the document is added to this home, if you add these two, which one is above, which one is executed, there is a priority order" teacher said. "Default, we download ' Website management system VER4.03 'Home file is index.asp, we can add index.asp in' document '. Below we decompress the package, copy the files in the 'Free Edition' to the wwwroot folder, of course, you can also specify a folder, better security. "Teacher, say, when can the website can see! "" Don't be anxious, " You can enter: http: //192.168.1.9/install.asp, the program prompts you to enter the name of the website, copyright Remember to delete install.asp after executing, otherwise it will be used by people who are interested in. "I know, the teacher!" and then? "A bunch of small dishes stare at the teacher with the eyes of the expectation." Then? " Open your browser, enter your IP, you can see the website! "Sure enough, you can!" Add articles now! "Small C, Xiao D is excited." But ... "The teacher deliberately slowed down the speed of speech." But what kind of teacher? " Can you still run? "Of course, you can run, but today I said so much mainly to give you how to get the path of this article system, physical path.

This is a vulnerability just discovered, I haven't told others! "The people have come to the spirit," the teacher said! "Well, things are like this, now you register a account everywhere, then you will post an article, you will have the page you want to enter the article content, see a prompt box for you to upload the file is not ? "" Just right between the 'Browse' and 'Upload' two buttons, the right mouse is right, see the source code, find the following lines:

change to the following: < Form action = "http://192.168.1.9 /editor/upfile_Article.asp" method = "post" name = "form1" onSubmit = "Return Check ()" ENCTYPE = "Multipart / Form-data"> This is then saved to the desktop, format It is HTM. "Teacher, what can I do?" Why do you add an article, you have to change the code. It seems to be a cross-station attack. "Hehe, a little bit like", the teacher smiled and said "Now we open this file we just modify the code, there will be two inputs Filing of files: Find two picture files, can be one, not a no need, then upload, what did you? "Wow, physical path! "The small dishes are cheered!" Oh, the driving version of our test is the latest 4.03. You can try another version "teacher's words." Below you are free to discuss 10 minutes, then give me a summary. "After 10 minutes ..." Well, now tell your feelings, there is a progress! "Small A:" I will say it first! It is the program must be a way ... (Ming is a nonsense!) "Small E:" must log in to the system, don't you upload the file! "" And, my most insightful! " INC / UPFILE_CLASS.ASP and UPFILE_ARTICLE.ASP exists this vulnerability, after my test, all files for invoing inc / upfile_class.asp UPFILE_ATICLE.ASP, UPFILE_SoftPic.asp, etc. can be successful! "Small K shouted.

"There is also", a small D of the slow half-shot: "To succeed, you must also have the server without blocking the prompt information for Microsoft VBScript runtime. For example, the use of this method will appear in this method. Contact the system administrator. 'This depends on the administrator to set up the IIS. "" Well, we are associated with the contents of the prompt' This button is associated with the collection 'can be known, mainly in / inc / upfile_class. ASP This file is not good enough to repeat it. For example, when we submit two files, the information of the two files is simultaneously written to the database. Since the program only sets up one file, the first written, The second inevitable error. Thus exposing the physical path of the site. "" Well, the students do very good ", the teacher is very satisfied with the effect of this class," Classmates, today, today, today's homework is back to test There is no such problem for the easy product, mypower3.51 and freepower3.62 have this problem! Of course, there should be this problem is more than just a practical program, this you have experimented after the class! Lesson! " Teacher goodbye! "... statement: This article is original original, published in the 12th" hacker X file "in 2004, not allowed, please do not reprint, thank you!

转载请注明原文地址:https://www.9cbs.com/read-83453.html

New Post(0)