Jump to content

One real estate site...


sinisake

Recommended Posts

http://www.sinisa.milicevici.com/real_estate/admin/admin.php

 

I know you try to be 1337 and re-direct us, but I am 1337'er and use the stop button (or I could have used a program etc..) So what I am saying is the admin area isn't secure. (Oh, and to prove a point I deleted a user.. sorry)

 

To fix this just set a $_SESSION['admin']; or something with they login, and when someone visits the page do a check... for that session == a username, or alterative make it a field in the table "admin" and add yes next to your username.. etc..

 

also: xss http://www.sinisa.milicevici.com/real_estate/details.php?id=16

 

 

p.s. on the front page you have: http://www.sinisa.milicevici.com/real_estate/faq.php

a link to that but it does not exist.

Link to comment
Share on other sites

Admin Access:

Anyone can access the admin panel by preventing the page from redirecting.

 

Cross Site Scripting:

http://sinisa.milicevici.com/cgi-sys/scgiwrap/<marquee><h1>vulnerable</marquee>

 

Cross Site Scripting:

http://sinisa.milicevici.com/phpinfo.php?<script>alert('vulnerable')</script>

 

Cross Site Scripting:

http://sinisa.milicevici.com/real_estate/details.php?id=<marquee><h1>vulnerable</marquee>

 

Cross Site Scripting:

There is Cross Site Scripting when you register if the fields contain code.

 

DOS:

http://www.sinisa.milicevici.com/real_estate/admin/admin.php/

 

Drop Down Menu:

If you edit the drop down menu on the Listing page you can submit arbitrary values.

 

Full Path Disclosure:

http://sinisa.milicevici.com/cgi-sys/scgiwrap/

 

Full Path Disclosure:

http://sinisa.milicevici.com/phpinfo.php

 

Full Path Disclosure:

http://sinisa.milicevici.com/real_estate/details.php?id[]

 

Full Path Disclosure:

http://sinisa.milicevici.com/real_estate/members/feature_it.php?id[]

 

Full Path Disclosure:

http://sinisa.milicevici.com/real_estate/members/pictures_edit.php?id[]

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/zoranm/public_html/sinisa/real_estate/members/pictures_edit.php on line 75

 

Full Path Disclosure:

There is Full Path Disclosure if you set the PHPSESSID cookie to an invalid value.

Warning: session_start(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /home/zoranm/public_html/sinisa/real_estate/admin/index.php on line 2

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/zoranm/public_html/sinisa/real_estate/admin/index.php:2) in /home/zoranm/public_html/sinisa/real_estate/admin/index.php on line 2

 

Warning: Unknown(): The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in Unknown on line 0

 

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

 

Full Path Disclosure:

There is Full Path Disclosure if you upload an invalid image.

Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in /home/zoranm/public_html/sinisa/real_estate/members/pictures.php on line 137

 

Warning: imagecreatefromjpeg(): 'uploads/big/invalid.jpg' is not a valid JPEG file in /home/zoranm/public_html/sinisa/real_estate/members/pictures.php on line 137

 

Warning: imagesx(): supplied argument is not a valid Image resource in /home/zoranm/public_html/sinisa/real_estate/members/pictures.php on line 145

 

Warning: imagesy(): supplied argument is not a valid Image resource in /home/zoranm/public_html/sinisa/real_estate/members/pictures.php on line 146

 

Warning: Division by zero in /home/zoranm/public_html/sinisa/real_estate/members/pictures.php on line 150

 

Warning: imagecreatetruecolor(): Invalid image dimensions in /home/zoranm/public_html/sinisa/real_estate/members/pictures.php on line 151

 

Full Path Disclosure:

There is Full Path Disclosure on the admin page.

 

User Enumeration:

http://sinisa.milicevici.com/~root

 

User Enumeration:

http://sinisa.milicevici.com/~zoranm

Link to comment
Share on other sites

Ok, guys, you are good and FAST.

Please let me know how to solve this big problem?

Also, one(?) field in form for adding properties wasn't secure... i will see...

Thank you very much, but now i am desperate  :'(

So, what to do, just to put die(); instead of redirection?

Thank you very much!

Link to comment
Share on other sites

:)

Lol,

just tell me how to solve cookie rewriting problem?(just to remove error reporting ,or???)

And i can't even see cgy-sys wrap in ftp client???(i don't understand?)

 

Thank you very much, usefull experience,

But i'll be back :-)

 

Link to comment
Share on other sites

Ok...

solution would be...hm... i don't know -i can't think anymore... :'(

 

Btw, it ibviously that i will need much more than:

 

$var=strip_tags($var);

$var=mysql_real_escape_string($var);

 

:-)

Link to comment
Share on other sites

Uuuh...ok one thing isn't clear to me:

1)how xss was successful? I had feel that all fields are protected.  ???

Also, those things about cookies rewriting...

 

I think that  i removed most of security holes( i thought it first time too, llool)

 

Link to comment
Share on other sites

Ok,

let's try again...

I hope that now just Session Fixation problem is left(i am not familiar with this problem, i must read some things about it...)

:D

 

Of course,I know, you will find something more... :)

 

 

Link to comment
Share on other sites

I didnt find anything (tho I didnt look very hard this time, I will again later, busy with my own site)...

 

One of the MOST annoying things was the "real" email thing, you lose all data if you dont enter a real email... >:(

 

and have to re-type to test it.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.