Opened 17 years ago
Closed 16 years ago
#11779 closed defect (bug) (fixed)
ms-edit.php creates garbage data for anything that is potentially affected by addslashes() and is on the whole completely unsanitized
| Reported by: | Denis-de-Bernardy | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Security | Version: | 3.0 |
| Severity: | critical | Keywords: | |
| Cc: | Focuses: | multisite |
Description
in addition to not getting the handy strip_slashes_deep(), we have a completely unsanitized query:
// update blogs table
$result = $wpdb->query( "UPDATE {$wpdb->blogs} SET
domain = '".$_POST[ 'blog' ][ 'domain' ]."',
path = '".$_POST[ 'blog' ][ 'path' ]."',
registered = '".$_POST[ 'blog' ][ 'registered' ]."',
public = '".$_POST[ 'blog' ][ 'public' ]."',
archived = '".$_POST[ 'blog' ][ 'archived' ]."',
mature = '".$_POST[ 'blog' ][ 'mature' ]."',
deleted = '".$_POST[ 'blog' ][ 'deleted' ]."',
spam = '".$_POST[ 'blog' ][ 'spam' ]."'
WHERE blog_id = '$id'" );
Change History (7)
#1
@
17 years ago
- Summary SQL injection is possible in ms-edit.php? → SQL injection would be possible in ms-edit.php if it weren't for magic quotes
#4
@
17 years ago
- Summary SQL injection would be possible in ms-edit.php if it weren't for magic quotes → ms-edit.php creates garbage data for anything that can potentially contain a slash and is on the whole completely unsanitized
#5
@
17 years ago
- Summary ms-edit.php creates garbage data for anything that can potentially contain a slash and is on the whole completely unsanitized → ms-edit.php creates garbage data for anything that is potentially affected by addslashes() and is on the whole completely unsanitized
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Denis:
Ryan has blessed a new keyword 'multisite' for when we opt for a component other than Multisite on a ticket. I'm going to start adding it, can you possibly create a report that highlights all Multisite keyword/component tickets?