- Joined
- Jul 24, 2012
- Messages
- 34
- Reaction score
- 1
Does this work with Phoenix?
Update Your "Web-Build"I get this error:To view the content, you need to sign in or register
How could i solve?
Phoenix Compatible? I am using Phoenix 3.7.1 and when i run it the server comes on but when i open my client it stays white
Help me Please
Yes, it does - the cms was made for use with Phoenix.Does this work with Phoenix?
Thanks.That's a pretty nice one you have made there you should try on further steps to either code groups and friend management it would make you get even an bigger step in the community
10/10 Great edit.
Just use the database provided, it should work.Problem with housekeeping, im try login in housekeeping and housekeeping says: Database Error
Unknown column 'prefix' in 'field list'
Script execution was aborted. We apoligize for the possible inconvenience. If this problem is persistant, please contact an Administrator.
How i can get "prefix" column? Give the SQL code please?
Thanks Jak, and there may be some just purely as I didn't remove them all. I only removed the ones people told me about.Looks pretty decent might take a look through the code for exploits later.
Just use the database provided, it should work.
Thanks Jak, and there may be some just purely as I didn't remove them all. I only removed the ones people told me about.
Thanks, I did spend most of the development time on the register as it was terribly done by the previous editor.That's some good work you did there like the /ME and register page ;-) thanks
10/10
If you actually read the thread, you'll see that it's a revised version of my old edit. Therefore, it an edit of the original UberCMS. So yeah, **** off.Its a normal UberCMS not a edit. What was edited?
$id = $bits[0];
$id = mysql_real_escape_string($bits[0]);
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
| http://www.meth0d.org
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/
define('TAB_ID', 5);
define('PAGE_ID', 17);
require_once "global.php";
$articleData = null;
if (isset($_GET['mostRecent']))
{
$getData = dbquery("SELECT * FROM site_news ORDER BY timestamp DESC LIMIT 1");
if (mysql_num_rows($getData) > 0)
{
$articleData = mysql_fetch_assoc($getData);
}
}
else if (isset($_GET['rel']))
{
$rel = $_GET['rel'];
if (strrpos($rel, '-') >= 1)
{
$bits = explode('-', $rel);
$id = mysql_real_escape_string($bits[0]);
$getData = dbquery("SELECT * FROM site_news WHERE id = '" . $id . "' LIMIT 1");
if (mysql_num_rows($getData) > 0)
{
$articleData = mysql_fetch_assoc($getData);
}
}
}
$tpl->Init();
$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('generic');
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-overrides-generic');
$tpl->AddGeneric('head-bottom');
$tpl->AddGeneric('generic-top');
$tpl->Write('<div id="column1" class="column">');
$newslist = new Template('comp-newslist');
if (isset($_GET['archiveMode']))
{
$newslist->SetParam('mode', 'archive');
}
else if (isset($_GET['category']) && is_numeric($_GET['category']))
{
$newslist->SetParam('mode', 'category');
$newslist->SetParam('category_id', $_GET['category']);
}
else
{
$newslist->SetParam('mode', 'recent');
}
$tpl->AddTemplate($newslist);
$tpl->Write('</div>');
$tpl->Write('<div id="column2" class="column">');
$article = new Template('comp-newsarticle');
if ($articleData != null)
{
$article->SetParam('news_article_id', $articleData['id']);
$article->SetParam('news_article_title', clean($articleData['title']));
$article->SetParam('news_article_date', 'Posted ' . clean($articleData['datestr']));
$article->SetParam('news_category', '<a href="/articles/category/' . $articleData['category_id'] . '">' . clean(mysql_result(dbquery("SELECT caption FROM site_news_categories WHERE id = '" . $articleData['category_id'] . "' LIMIT 1"), 0)) . '</a>');
$article->SetParam('news_article_summary', clean($articleData['snippet']));
$article->SetParam('news_article_body', clean($articleData['body'], true));
$tpl->SetParam('page_title', 'News - ' . clean($articleData['title']));
}
else
{
$article->SetParam('news_article_id', 0);
$article->SetParam('news_article_title', 'News article not found');
$article->SetParam('news_article_date', '');
$article->SetParam('news_category', '');
$article->SetParam('news_article_summary', '');
$article->SetParam('news_article_body', "The article you were looking for could not be retrieved. Please press the 'back' button on your browser to return to your previous page.");
$tpl->SetParam('page_title', 'News - News Article not found');
}
$tpl->AddTemplate($article);
$tpl->Write('</div>');
$tpl->AddGeneric('generic-column3');
$tpl->AddGeneric('footer');
$tpl->SetParam('body_id', 'news');
$tpl->Output();
?>
Sorry to bump...
Exploit: article.php
Line: 42
You did not filter it:
PHP:$id = $bits[0];
You should filter it by doing this:
PHP:$id = mysql_real_escape_string($bits[0]);
Or whatever, you could use filter instead of mysql_real_escape_string if you have problems with that, Anyway full patched article.php:
PHP:<?php /*======================================================================= | UberCMS - Advanced Website and Content Management System for uberEmu | ####################################################################### | Copyright (c) 2010, Roy 'Meth0d' | http://www.meth0d.org | ####################################################################### | This program is free software: you can redistribute it and/or modify | it under the terms of the GNU General Public License as published by | the Free Software Foundation, either version 3 of the License, or | (at your option) any later version. | ####################################################################### | This program is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | GNU General Public License for more details. \======================================================================*/ define('TAB_ID', 5); define('PAGE_ID', 17); require_once "global.php"; $articleData = null; if (isset($_GET['mostRecent'])) { $getData = dbquery("SELECT * FROM site_news ORDER BY timestamp DESC LIMIT 1"); if (mysql_num_rows($getData) > 0) { $articleData = mysql_fetch_assoc($getData); } } else if (isset($_GET['rel'])) { $rel = $_GET['rel']; if (strrpos($rel, '-') >= 1) { $bits = explode('-', $rel); $id = mysql_real_escape_string($bits[0]); $getData = dbquery("SELECT * FROM site_news WHERE id = '" . $id . "' LIMIT 1"); if (mysql_num_rows($getData) > 0) { $articleData = mysql_fetch_assoc($getData); } } } $tpl->Init(); $tpl->AddGeneric('head-init'); $tpl->AddIncludeSet('generic'); $tpl->WriteIncludeFiles(); $tpl->AddGeneric('head-overrides-generic'); $tpl->AddGeneric('head-bottom'); $tpl->AddGeneric('generic-top'); $tpl->Write('<div id="column1" class="column">'); $newslist = new Template('comp-newslist'); if (isset($_GET['archiveMode'])) { $newslist->SetParam('mode', 'archive'); } else if (isset($_GET['category']) && is_numeric($_GET['category'])) { $newslist->SetParam('mode', 'category'); $newslist->SetParam('category_id', $_GET['category']); } else { $newslist->SetParam('mode', 'recent'); } $tpl->AddTemplate($newslist); $tpl->Write('</div>'); $tpl->Write('<div id="column2" class="column">'); $article = new Template('comp-newsarticle'); if ($articleData != null) { $article->SetParam('news_article_id', $articleData['id']); $article->SetParam('news_article_title', clean($articleData['title'])); $article->SetParam('news_article_date', 'Posted ' . clean($articleData['datestr'])); $article->SetParam('news_category', '<a href="/articles/category/' . $articleData['category_id'] . '">' . clean(mysql_result(dbquery("SELECT caption FROM site_news_categories WHERE id = '" . $articleData['category_id'] . "' LIMIT 1"), 0)) . '</a>'); $article->SetParam('news_article_summary', clean($articleData['snippet'])); $article->SetParam('news_article_body', clean($articleData['body'], true)); $tpl->SetParam('page_title', 'News - ' . clean($articleData['title'])); } else { $article->SetParam('news_article_id', 0); $article->SetParam('news_article_title', 'News article not found'); $article->SetParam('news_article_date', ''); $article->SetParam('news_category', ''); $article->SetParam('news_article_summary', ''); $article->SetParam('news_article_body', "The article you were looking for could not be retrieved. Please press the 'back' button on your browser to return to your previous page."); $tpl->SetParam('page_title', 'News - News Article not found'); } $tpl->AddTemplate($article); $tpl->Write('</div>'); $tpl->AddGeneric('generic-column3'); $tpl->AddGeneric('footer'); $tpl->SetParam('body_id', 'news'); $tpl->Output(); ?>
If I find more I will update this post or post a new one, Again sorry to bump but I think its needed.