Theme Layout

Boxed or Wide or Framed

Wide

Theme Translation

Display Featured Slider

Featured Slider Styles

Display Grid Slider

yes

Grid Slider Styles

Display Trending Posts

Display Author Bio

Display Instagram Footer

off

Dark or Light Style

Light
Powered by Blogger.

Monday, December 26, 2016

[Pwnable.kr/Toddler's bottle] mistake ( Solved. 16.12.26)

[Pwnable.kr/Toddler's bottle] mistake ( Solved. 16.12.26)


# Problem

 : This problem is about operator priority. 


# How To Solve.

 : First, connect the server ssh mistake@pwnabler.kr -p2222 and check the program source code. 


The problem is the 17th line. A problem arises because comparison operators have higher precedence than arithmetic operators.
First, open("/home/mistake/password",0_RDONLY,0400) <0 is computed, This operation takes the form of a  positive number<0. Therefore, It becomes False and returns 0. Fd=0 is equal to stdio. The first input value is put into pw_buf, the second input value is put into pw_buf2. and compare the xor operation value of pw_buf2 with the value of pw_buf to see the flag if it is the same.


Read more »
Unknown
0 Comments

You Might Also Like

Friday, December 23, 2016

[Medium] HTML Injection - Reflected (POST)

[Medium] HTML Injection - Reflected (POST)


# Introduction

 :BWAPP → Medium→ HTML Injection - reflected (POST)


# Training

 :As before, I did the exercises without reference to the source code. When I input the value used in the previous step, It will be output as plain text as follows.


So, I checked the input values to the server using the buff suite.


I found that the value passed to the server is encoded( <, > encoded to %3C, %3E).If I input this values, I thought that the specific function of html_post.php encode it once and pass it to the server. If I visualize what I think, it is as follows.


When I input the value, It was passed to the server as follows.


When I forward values, I could use the html tags.



Read more »
Unknown
0 Comments

You Might Also Like

[low] HTML Injection - Reflected (POST)

[low] HTML Injection - Reflected (POST)


# Introduction

 :BWAPP → Low→ HTML Injection - reflected (POST)


# Training

 : htmli_post.php uses POST Method to transfer data. So, Variable values sent to the server are not exposed to the URL. You can check the '/var/www/bWAPP/htmli_post.php' for practice, but I used a proxy tool(Burp suite).

First, When I enter a value into a variable, I confirmed that the output is the same as html_get.php. 


One difference is that the variable values are not exposed to the URL, as described above.


I set the proxy settings and modified the variable values using the buff suite.


The modified values are the same as the html tags used in html_get.php



Read more »
Unknown
0 Comments

You Might Also Like

Thursday, December 22, 2016

[High] HTML Injection - Reflected (GET)

[High] HTML Injection - Reflected (GET)


# Introduction

:BWAPP → Medium→ HTML Injection - reflected (GET)


# Training

: At this level, all of the previous level values are output as plain text as shown below.

<Input value is equal to low level>

<Input value is equal to medium level>

 I checked the source code as well as the medium level. First, I checked the source code of htmli_get.php. At the htmli_get.php, I found that using the xss_check_3 function at high level.


Next, At the Functions_external.php, I could see what this function is.


I found that the htmlspecialchars function bypass the input value. This function is a basic function provided by php. It returns special characters used in HTML as UTF-8.
 So, If you want to prevent HTML injections, you can use this function to make the characters used in HTML tags recognizes as text.
Read more »
Unknown
4 Comments

You Might Also Like

[medium] HTML Injection - Reflected (GET)

[medium] HTML Injection - Reflected (GET)


# Introduction.

: BWAPP → Medium→ HTML Injection - reflected (GET)



# Training

: If we enter the input value in the middle step like the low step, the output is as follows.

















I wondered why this is so I checked the source code. The source code is located in /var/www/bWAPP. The contents of the source code are as follows.


I could see that the function xss_check_1 is used at the medium level. The xss_check_1 could be found in functions_external.php.


I could see that < & > convert to another character. Therefore, I typed URL encoding of the character used in the tag. 
  • %3Ch1%3ESuccess%3C%2Fh1%3E
  • %3Cimg src=http://192.168.10.119/bWAPP/images/bee_1.png%3E


The results were as follows.




Read more »
Unknown
0 Comments

You Might Also Like

HTML Injection - Reflected (GET)

HTML Injection - Reflected (GET)


# Introduction.

 : BWAPP → Low → HTML Injection - reflected (GET) 



# Training.

 This 'html_get.php' is a page that prints the user's input value as follows.


And If you check the URL, you can see that the input value and variable name are exposed in the URL. Because it is the GET method.



In order to test the input items, I inserted HTML tags in the First name and Last name.
  • <h1> Success</h1>
  • <img src=http://192.168.10.119/bWAPP/images/bee_1.png>

The input result is as follows.






Read more »
Unknown
0 Comments

You Might Also Like

Follow @SunriseSunsetBlog