Jump to content

Recommended Posts

I also just preapproved my own page. :)

 

If you want to fix your site so that it is secure, you need to validate and filter ALL user submitted data. That means ALL data. Anything that came in through $_POST, $_GET, $_COOKIE should all be ran through a filter for strings and validated to match a certain criteria. There are a lot of things I can manipulate in your code.

 

For example, put a ' and ; in the title when creating a new page.

 

Database query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';', 'yes', 'guest', '2', 'test', 'test', NOW(), 'yes')' at line 1

True, however I now can not edit pages I do have authorization to either.

 

But you can edit pages you created under edit_page.php, right?

 

Ok I fixed the problem. It was a stupid mistake. I misspelled one of my variables. You should be able to create, edit and delete your own stuff now.

@teynon

I think I have the edit and delete page stuff locked down, FINALLY. Now just got to lock down the create page. I could not recreate or figure out how you deleted the home page this morning but I went back over my code and made the validation as specific as I could possibly think to make it, so could you please do whatever you did this morning to delete my home page and see if it blocks you from deleting the page now. Thanks.

 

I drop another note here when I get the create page stuff locked down.

@teynon

 

***UPDATE***

Still not done with the create page. I decided to refactor and clean up my code it was getting messy. In the process I found an issue with TinyMCE that could allow scripts to be executed after data has been loaded into the database, reloaded from the database and then saved to the database again. The issue lies in the fact that TinyMCE is too good at cleaning up code. I would like to do away with the wysiwyg editor altogether but my mother-in-law will be using the site so I need to keep it for her and probably the wife.

×
×
  • 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.