MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Jul 03, 2009, 09:59 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search via SMF
or Google:
modx forums
all of modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Read
Frequently Asked Questions (FAQ)
MODx Community Forums
»
Announcements
»
Important News
»
MODx Security Fix [for 0.9.1]
Pages: [
1
]
2
Go Down
« Previous topic
Next topic »
Send this topic
|
Print
Author
Topic: MODx Security Fix [for 0.9.1] (Read 21369 times)
0 Members and 1 Guest are viewing this topic.
netnoise
Coding Team
Posts: 213
MODx Security Fix [for 0.9.1]
«
on:
Apr 15, 2006, 11:46 AM »
This version of document.parser.inc.php fixes some issues in MODx which were published on yesterday.
Please update your current 0.9.1 MODx installations as soon a possible.
How to patch
Open manager/includes/document.parser.class.inc.php in your favourite text editor and replace the function "getDocumentIdentifier" with the code below.
Code:
function getDocumentIdentifier($method) {
// function to test the query and find the retrieval method
$docIdentifier= $this->config['site_start'];
switch($method) {
case "alias" :
$docIdentifier= $this->db->escape($_REQUEST['q']);
break;
case "id" :
if(!is_numeric($_REQUEST['id'])) {
$this->messageQuit("ID passed in request is NaN!");
} else {
$docIdentifier= intval($_REQUEST['id']);
}
break;
default :
break;
}
return $docIdentifier;
}
«
Last Edit: Jul 03, 2006, 04:36 AM by PaulGregory
»
Logged
Write secure snippets!
Lock down your server!
jwtyler
Member
Posts: 93
Hacking with minimal knowledge
Re: MODx Security Fix
«
Reply #1 on:
Apr 15, 2006, 12:21 PM »
I must have missed it. What exactly was the security issue? Repatching all the paches into the parser is not something I look forward to.
Logged
netnoise
Coding Team
Posts: 213
Re: MODx Security Fix
«
Reply #2 on:
Apr 15, 2006, 01:59 PM »
I am a non windows user myself (but recoded it to DOS CR/LF as the original one is ;-)
Quote
Since the document.parser.class.inc.php you posted includes a bunch of other changes slated for the next release
Oupsie, please see updated posting on top.
«
Last Edit: Apr 15, 2006, 02:12 PM by netnoise
»
Logged
Write secure snippets!
Lock down your server!
vbrilon
Coding Team
Posts: 258
Re: MODx Security Fix
«
Reply #3 on:
Apr 15, 2006, 02:27 PM »
Groovy! Thanks again for the quick catch.
Logged
I have been touched by His noodly appendage
vbrilon
Coding Team
Posts: 258
Re: MODx Security Fix
«
Reply #4 on:
Apr 15, 2006, 02:29 PM »
Quote from: jwtyler on Apr 15, 2006, 12:21 PM
I must have missed it. What exactly was the security issue? Repatching all the paches into the parser is not something I look forward to.
No need to do that. Just replace the one function above.
Logged
I have been touched by His noodly appendage
TobyL
Coding Team
Posts: 1,003
Re: MODx Security Fix
«
Reply #5 on:
Apr 18, 2006, 08:00 AM »
Nice one, thank you.
Can anyone tell me where the message "ID passed in request is NaN!" will find a place in the language file? It will be in there at some stage won't it? I'd like to make that update in an international installation without hardcoding the mesage in the parser class.
Oh, and a small coding question. Does the
Code:
default :
break;
server any purpose? In my simple brain it doesn't make any difference to the flow if you leave it out so why is it there? Am I missing something?
Logged
eForm
|
eForm support
|
eForm @ wiki
rthrash
Foundation
Posts: 10,471
Re: MODx Security Fix
«
Reply #6 on:
Apr 18, 2006, 08:29 AM »
I think the default case is required. And thank you for pointing out the messages should probably go in the language files... can you log that in our Bug (and Support/Feature request tracker), please?
Logged
MODx
is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you
help us help you
,
read the wiki
, and review snippet parameters even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @
Collabpad
work
productively.
work
intelligently.
work
together.
MODx
Current
|
Dev
|
SVN Root
|
JIRA (Bugs)
|
Confluence (Revolution Wiki)
|
Fisheye SVN Browser
Nuker
Jr. Member
Posts: 11
I'm RUSSIAN!
Re: MODx Security Fix
«
Reply #7 on:
Apr 19, 2006, 06:34 AM »
if user type
./index.php?id=24blablabla
in address field then it's get error message about NaN resource.
May'be this code right? User get only
404 page
.
Code:
/*cut*/
if(!is_numeric($_REQUEST['id'])) {
$docIdentifier= 0;
/*paste*/
Logged
sottwell
Documentation Team
Posts: 8,825
Re: MODx Security Fix
«
Reply #8 on:
Apr 19, 2006, 06:37 AM »
I just set it to return to the home page. No fuss, no bother.
Logged
sottwell.com has moved to a lovely Solaris 10 server!
Log in
username guest, password guestuser.
Templates are now becoming available at
http://sottwell.com/templates.html
axiome
Jr. Member
Posts: 14
Re: MODx Security Fix
«
Reply #9 on:
Apr 21, 2006, 03:26 PM »
On special version for free.fr (ModX v0.9.O_Free_Edition), this bug exist ?
Logged
netnoise
Coding Team
Posts: 213
Re: MODx Security Fix
«
Reply #10 on:
Apr 21, 2006, 03:34 PM »
What is "ModX v0.9.O_Free_Edition"
Logged
Write secure snippets!
Lock down your server!
sottwell
Documentation Team
Posts: 8,825
Re: MODx Security Fix
«
Reply #11 on:
Apr 21, 2006, 03:40 PM »
I think it's an edition where the installer was patched to handle the French mysql error messages for the French "Free" hosting service. Davidm knows more about it.
Logged
sottwell.com has moved to a lovely Solaris 10 server!
Log in
username guest, password guestuser.
Templates are now becoming available at
http://sottwell.com/templates.html
Guillaume
Moderators
Posts: 711
The future is built today.
Re: MODx Security Fix
«
Reply #12 on:
Apr 21, 2006, 03:55 PM »
It is right, Sottwell.
Free is a french hoster which hosts website for free. The space drive is big (1Go I think). There are some limitations and most of the CMS (or other php site build) don't work naturally with Free. So it is necessary to patch this application.
Logged
Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
axiome
Jr. Member
Posts: 14
Re: MODx Security Fix
«
Reply #13 on:
Apr 21, 2006, 04:41 PM »
Thank you very much for your responses.
I confirm, Free is a host and it offer 1 Go like web space.
Sorry for my english
Logged
davidm
MODx evangelist
Marketing & Design Team
Posts: 7,026
Software is like sex, it's better when it's free !
Re: MODx Security Fix
«
Reply #14 on:
Apr 21, 2006, 04:51 PM »
Quote from: sottwell on Apr 21, 2006, 03:40 PM
I think it's an edition where the installer was patched to handle the French mysql error messages for the French "Free" hosting service. Davidm knows more about it.
You can find the Free Edition thread
here
. Of course, it's in french, but you'll see there that this version has been downloaded almost 600 times....
Actually the problem with MySQL error message happened with all french host set up to display error message in French (with is now solved with the mysql Errno fix) ... Free was another problem which you helped me fix, Susan :
chmod "locked" by hosting at 700 and 644 : possible to run MODx ?
You might not remember but you helped me fix
all the includes path
, a pretty daunting task which I never updated for 0.9.1
Would it be fair to guess that patching MODx 0.9.0 document.parser.class is perfectly safe ?
Didn't check but was there a change here between 0.9.0 and 0.9.1 ?
«
Last Edit: Apr 21, 2006, 05:02 PM by davidm
»
Logged
.:
nodeo.net
: Pour un web libre, moderne et ouvert ! ::
david-molliere.net
:
Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web
:.
***
Forums modxcms.fr
Participez ŕ l'élaboration du site MODx francophone !
***
! Nouveau !
En live, ne manquez pas les news de modxcms.fr sur Twitter
! Nouveau !
MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accčs pour les utilisateurs finaux.
Config :
Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)
Réalisations sous MODx :
|
pargade-notaires.fr
|
soleil.info
|
gican.asso.fr
|
michelez-notaires.com
|
amadom.gerondicap.com
|
jocelyne-violet.net
Pages: [
1
]
2
Go Up
Send this topic
|
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder & DropMenu
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> Front-end Document Management
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Polls, Calendars, Address Book and Community
=> Third-party integrations
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> Backup & Versioning
===> Doc Finder
===> ManagerManager
===> PHx
=> Templates
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.3
===> 0.9.6.2
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Webworker Lounge
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
International Support & Translations
-----------------------------
=> Internationalization
=> Bulgarian
===> Поддръжка
=====> Често задавани въпроси
=====> Инсталация
=====> Модули, Плъгини, Снипети и код
=====> Дизайн и Шаблони
===> Документация, Ръководства и Превод
=====> Документация
=====> Ръководства
=====> Превод
===> Общество
=====> Съобщения
=====> Представете се
=====> Представете сайта си
=====> Дискусии извън MODx
=> Chinese
=> Czech
===> Oznámení
=====> Důleitá oznámení/novinky
=====> Bezpečnost
===> Komunita
=====> Oznámení
=====> Představte se, prosím
=====> Ukázky práce
=====> Různé aneb cokoli co se jinam nehodí
===> Podpora
=====> FAQ (často kladené otázky)
=====> Instalace
=====> Moduly, pluginy, "snippets & code" (ablony zdrojových kódů)
=====> Design & ablony
===> Dokumentace, tutoriály (návody) a překlady
=====> Dokumentace
=====> Tutoriály (návody)
=====> Překlady (lokalizace)
=> Dutch
===> Ondersteuning
=====> Veel gestelde vragen
=====> Modules, Plugins, Snippets & Code
=====> Design & Templates
===> Documentatie, Tutorials en Vertalingen
=====> Documentatie
=====> Tutorials
=====> Vertalingen
===> Community
=====> Aankondigingen
=====> Stel jezelf voor
=====> Site Showcase
=====> De stamkroeg
=> Filipino
===> Suporta
=====> Kadalasang tanong
=====> Instalasyon
=====> Moduler, Maidadagdag, Karagdagang mga Code
=====> Desenyo at Templates
===> Dokumentasyon, Mga Turo, Mga Salin
=====> Dokumentasyon
=====> Mga Turo
=====> Mga Salin
===> Kumunidad
=====> Anunsyo
=====> Ipakilala ang sarili
=====> Ang Galing ng pinoy
=====> Tsismisan atbp
=> Finnish
===> Tuki
=====> UKK
=====> Asennus
=====> Moduulit, liitännäiset, koodinpätkät
=====> Ulkoasu/Sivustopohjat
===> Dokumentaatio, oppaat ja käännökset
=====> Dokumentaatio
=====> Käännökset
=====> Oppaat
===> Yhteisö
=====> Tiedotteet
=====> Esittele itsesi
=====> MODx sivustosi
=====> Kahvihuone
=> French
===> Support
=====> FAQ
=====> Installation
=====> Module, plugin, snippets
=====> Design/Templates
===> Documentation, Tutoriels et Traductions
=====> Documentation
=====> Traduction
=====> Tutoriels
===> Communauté
=====> Annonces
=====> Présentez vous
=====> Vos sites
=====> Le Bistrot Français
=> German
===> Support (de)
=====> FAQ (de)
=====> Installation (de)
=====> Module, Plugins, Snippets & Code (de)
=====> Design & Templates (de)
===> Dokumentation, Tutorials und Übersetzung
=====> Dokumentation
=====> Tutorials (de)
=====> Übersetzung
===> Community (de)
=====> Ankündigungen
=====> Stellt Euch vor
=====> Beispielseiten
=====> Off Topic / Verschiedenes
=> Hebrew
===> הכרזה
=====> חדשות חשובות
=====> אבטחה
===> תמיכה
=====> התקנה
=====> תיעוד, מדריכים ותרגומים
=====> עיצוב ותבניות
=====> שאלות נפוצות
===> תיעוד, מדריכים ותרגומים
=====> תיעוד
=====> מדריכים
=====> תרגומים
===> קהילה
=====> הודעות
=====> הצג את עצמך
=====> אתרים לדוגמא
=====> כללי
=> Irish
=> Italian
===> Supporto
=====> FAQ
=====> Installazione
=====> Moduli, Plugin, Snippet e altro codice
=====> Web Design e Template
===> Documentazione, Tutorial e Traduzione
=====> Documentazione
=====> Tutorial
=====> Traduzione
===> Comunitŕ
=====> Annunci
=====> Presentazioni
=====> Siti in vetrina
=====> Chiacchiere in libertŕ
=> Japanese
===> サポート
=====> 良くある質問
=====> インストール
=====> モジュール・プラグイン・スニペット・本体
=====> デザインやテンプレート
===> マニュアル・テュートリアル・翻訳
=====> マニュアル
=====> 事例集、テュートリアル
=====> 日本語化
===> コミュニティ
=====> お知らせ
=====> MODxサイト展示場
=====> 自己紹介
=====> 雑談
=====> 国産リソース
=> Persian - فارسي
===> پشتيباني
=====> راهنما
=====> نصب
=====> ماژول , پلاگین ها , کد ها و جزییات
=====> طراحی و قالب ها
===> مستند سازی , آموزش ها و ترجمه ها
=====> مستند سازی
=====> آموزش ها
=====> ترجمه ها
===> انجمن ها
=====> اخبار
=====> معرفی کردن خود
=====> نمایش دادن سایت ها
=====> بحث های عمومی و سایر موضوعات
=> Polish
===> Wsparcie
=====> FAQ
=====> Instalacja
=====> Moduły, pluginy, snipety i kod
=====> Wygląd i szablony
===> Dokumentacja, tutoriale i tłumaczenie
=====> Dokumentacja
=====> Tutoriale
=====> Tłumaczenie
===> Społeczność
=====> Ogłoszenia
=====> Przedstaw się
=====> Twój serwis WWW
=====> Hyde Park
=> Portuguese
===> Suporte
=====> FAQ - Dúvidas Frequentes
=====> Instalaçăo
=====> Módulos, Plugins, Snippets e Código
=====> Design e Templates
===> Documentaçăo, Guias e Traduçőes
=====> Documentaçăo
=====> Guias
=====> Traduçőes
===> Comunidade
=====> Anúncios
=====> Apresente-se!
=====> Bar da esquina (fora de tópico)
=====> Portfólio de Sites
=> Russian
===> Поддержка
=====> ЧАВО (FAQ)
=====> Установка
=====> Модули, плагины, сниппеты и код
=====> Дизайны и шаблоны
===> Документация, Уроки, Перевод
=====> Документация
=====> Уроки
=====> Перевод
===> Сообщество
=====> Объявления
=====> Представьтесь публике
=====> Галерея сайтов
=====> Диван
=> Scandanavian
===> Support
=====> Frĺgor och svar
=====> Installation
=====> Moduler, plugins, snippets och kod
=====> Design & sidmallar
===> Dokumentation, guider och översättningar
=====> Dokumentation
=====> Guider
=====> Översättningar
===> Webbgemenskap
=====> Meddelanden
=====> Presentera dig själv
=====> Visa upp dina webbsidor
=====> Ordet fritt
=> Slovak
=> Spanish
===> Soporte
=====> FAQ
=====> Instalación
=====> Modulos, Plugins, Snippets & Código
=====> Diseńo y plantillas
===> Documentación, Tutoriales y Traducciones
=====> Documentatción
=====> Tutoriales
=====> Traducciones
===> Comunidad
=====> Anuncios
=====> Presentaciones personales
=====> Muestra de sitios
=====> El Café
=> Swedish
=> TÜRKÇE (Turkish)
===> Destek
=====> SSS
=====> Kurulum
=====> Modüller, Pluginler, Snippetlar & Kodlar
=====> Dizayn & Temalar
===> Belgeleme, Eğitmenler ve Çeviri
=====> Belgeleme
=====> Eğitmenler
=====> Çeviri
===> Topluluk
=====> Duyurular
=====> Kendinizi Tanıtın
=====> Site Vitrini
=====> Konu Dışı