Tuesday, 2009-12-08

../irclogs/#mantishelp.2009-12-08.log
--- scribe started ---00:00
paul__we also need to look at MS guidelines00:00
dhx_mpaul__: we can't... as I showed the other day, sometimes we specifically disable plugins00:00
paul__for their web platform00:00
paul__sure we can00:01
dhx_mMS = Microsoft?00:01
paul__revert that fix and work on error api :)00:01
dhx_mpaul__: but we can't use string_display_*00:01
dhx_mpaul__: but in the interests of decoupling the error API, we should be removing them anyway00:01
paul__i still think we should use string_display when not in error api within html api00:01
dhx_mmaybe... although manage_plugin_install.php and the other plugin management pages disable plugins00:02
dhx_mso it'd be possible to launch an XSS attack against Mantis administrators00:02
dhx_mand besides, why would you ever want to make html escaping optional in an API that is all about HTML output?00:02
nuclear_eclipsedhx_m: I'd rather revert html api and make plugins not get disabled00:40
dhx_mI'm still unclear as to what the point of MantisCoreFormatting is00:41
dhx_mI know you explained it to me a while ago00:41
nuclear_eclipse(talking from myphone btw)00:41
dhx_mah ok, I'm not worried if you'd rather talk about this later when you have a real keyboard ;)00:42
nuclear_eclipsethe point is to allow plugins to replace core formatting methods with something like markdown, bbcode, etc00:42
dhx_mbut the output is always going to be HTTP in these cases00:43
nuclear_eclipsei have a real keyboard on ym g1, just not a real internet connection :=P00:43
nuclear_eclipseedge connection sucks...00:43
dhx_mIMO the purpose of MantisCoreFormatting should be to convert tags like <strong> and <li> and so forth into a format that is applicable for the output type00:44
dhx_mand we have numerous output types... email, SOAP and HTTP00:44
dhx_meach one needs different formatting outputs00:44
nuclear_eclipsewell, that could be an eventual goal...00:44
dhx_mah ok so if you disappear suddenly, I'll know where you went :)00:44
dhx_mI just think it's really silly to have code like <html><title><?php string_display_line( $t_page_title )?></title></html>00:45
dhx_min those cases we know 100% of the time that we want to escape $t_page_title for safe output into only HTML format00:46
dhx_mI'd actually argue that using MantisCoreFormatting is wrong on the basis that you don't want to reintroduce safe HTML tags in many of these cases00:46
dhx_motherwise you get text fields filled with <ul><li>SPAM</li><li>SPAM2</li></ul>00:47
dhx_mthat break the formatting of the page00:47
nuclear_eclipsewell, id argue that in that case we need a better separation of sanitizing output vs formatting output00:48
nuclear_eclipseie, more api functions, and only make some of them hookable by plugins00:49
dhx_myep00:51
nuclear_eclipsethe original design implementation focused only on an immediate replacement of the existing string_display functions00:51
dhx_malthough I still think that everything internally should be treated as unsafe00:51
dhx_mand it is only at output time that we escape the output00:51
nuclear_eclipses/replace/reimpiment/00:51
dhx_mah ok00:52
nuclear_eclipseie, my primary goal in the current implementation was to allow other plugins to hook into formatting methods to add new abilities, like sister site hotlinking00:54
nuclear_eclipseand tbh, i'd be fine with extracting string sanitization into separate api calls, and perhaps repurpose string_display* as formatting output only00:56
dhx_mI'd like that too00:56
dhx_mwell we already have string_html_specialchars()00:57
nuclear_eclipsethat way we could ensure that any call to string_display will sanitize output, regardless of of what plugins are installed00:57
nuclear_eclipsehowever priority #1 in that IMO is ensuring that sanitization wont get in the way of formatting methods beyond the core methods found in coreformattingplugin00:58
nuclear_eclipseie, markdown and bbcode plugins need to be able to allow/output any html output they need, short of scriptw01:01
dhx_mI wouldn't recommend those plugins to anyone at the moment because they're full of XSS flaws01:01
dhx_mthey're not yet ready01:01
dhx_myep, you're right01:02
dhx_mthat is a problem we really need to look into01:02
nuclear_eclipsewell, in a closed mantis environment where users can be trusted, eg where i work, xss is a non-issue01:03
nuclear_eclipseie, id not use markdown on my public tracker, but its a must-have for my employer's internal tracker01:04
dhx_mtrue, but Mantis is also used widely by developers (and open source projects) where the public is invited to use the bug tracker01:04
dhx_mah I see what you mean01:04
dhx_mI haven't looked at Markdown but I assume it would be OK01:05
nuclear_eclipseright, anfdthis is where i say that mantis shouldnt preclude either option and rely on the admins to be smart before selecting markdown if need be01:05
dhx_mbbcode on the other hand... not so OK01:05
dhx_mthese formatting plugins only strike me as being useful in full text fields01:07
nuclear_eclipsewell, markdown in particular does no sanitization at all because it assumes a trusted author/publisher01:07
dhx_mfor single line "spans", if we really do need customisation of things like username colour, I'd argue CSS is a better approach01:07
nuclear_eclipseand yes, they're mostly usefil in multiline fields01:07
dhx_mah ok01:07
nuclear_eclipsebut yes, there are times where formatting is useful in single line fields, like making "*text*" bold01:09
dhx_mhmm01:10
dhx_mI guess it's optional :)01:12
nuclear_eclipsedhx_m: still there?01:46
nuclear_eclipsesorry, my data connection dropped out01:46
dhx_myep01:46
dhx_mlast message seen:  I guess it's optional :)01:46
nuclear_eclipseyep, thank god for `screen` :P01:47
dhx_m:)01:47
kenguestyup01:47
kenguestscreen's very handy ;-)01:47
* nuclear_eclipse runs irssi inside a screne session on server, and attaches to that from home pc, work pc, phone, laptop, family's pcs.... :P01:48
nuclear_eclipseso anywho01:48
nuclear_eclipseI think it would be best if we could extract the sanitization routines in a way that string_display* can call them regardless of plugins installed, and just need to make sure that it doesn't disrupt various needs of formatting plugins01:50
kenguestI know I've asked this before - but how mature is the soap api for mantis?01:50
nuclear_eclipseeither way, if we think we really need to change string api or the way plugins interact with it, we *really* need to make those decisions and changes *before* 1.2 makes a final release...01:51
nuclear_eclipsekenguest: it seems pretty mature -- Eclipse Mylyn uses it rather succesfully01:51
dhx_mbefore?01:51
dhx_mit's a pretty large change01:51
dhx_mbut I guess it's fairly easy01:51
kenguestI'm thinking of [at some stage] developing a email parser that would utilise it for adding items to the tracker that would be mailed to a given address01:51
kenguestnuclear_eclipse: thanks ;-)01:51
nuclear_eclipsedhx_m: I say "before" because I don't want to make a habit of breaking apis and teh way plugins use them on a regular basis01:52
nuclear_eclipsedhx_m: ie, I'd rather make big api changes *before* plugins hit primetime useage01:52
nuclear_eclipsekenguest: talk to giallu, he's alraedy implemented this01:52
nuclear_eclipseI've encouraged him to put it on github/mantisforge, but iirc it's in a rather proprietary state atm01:53
dhx_mnuclear_eclipse: I take back that "easy" part... because we need to send a raw feed to the formatting plugins01:53
kenguestinteresting - thanks again01:53
dhx_mnuclear_eclipse: and then we need to preserve HTML tags that the formatting plugins add01:53
nuclear_eclipsedhx_m: right, it gets more complex the deeper you look at it01:54
dhx_myep01:55
nuclear_eclipseanywho, I gotta run, anything else you need to mention/discuss dhx_m ?02:00
dhx_mnot at the moment, I think I have a better understanding now of where things need to move towards :)02:00
nuclear_eclipseok02:00
nuclear_eclipsecheers02:00
dhx_malthough text parsing isn't going to be fun to implement :p02:00
dhx_mcya later then02:00
nuclear_eclipsehehe02:01
nuclear_eclipsejust ping me here anytime, I'll respond when I'm next attached :P02:01
dhx_mok :)02:02
nuclear_eclipsepaul__: you get a virus or something?13:00
dirtyalhello, has someone used the mantis-> email integration?16:12
dirtyalIt seems the plugins can not be dowloaded from mantisforge.16:13
paul__13:01 < nuclear_eclipse> paul__: you get a virus or something?18:07
paul__hmm?18:07
nuclear_eclipseI got a random, spammy email from your address18:07
paul__oh?18:08
paul__what address?18:08
nuclear_eclipsegrangeway@hotmail.com18:09
paul__probably not me then18:09
paul__what were headers18:09
nuclear_eclipsehttp://pastebin.com/d514be4318:10
paul__probably someone guessed password18:23
paul__i'd guess18:23
paul__8am I was @ work18:24
paul__and ip is in korea18:24
paul__and i wonder why I dont find time to do mantis18:45
paul__fs18:45
paul__:P18:45
dirtyal1has anone integrated mantis to open tickets via email?19:52
nuclear_eclipsedirtyal1: there have been a few various attempts; giallu I think has something for that, but you'll need to talk to him about getting access to the source code19:53
dirtyal1tks, there is a  email.git on mantisforge19:56
dirtyal1but there is nothing there19:56
paul__nuclear_eclipse: pingpong20:59
nuclear_eclipsehowdy21:02
paul__did you fix the plugin issue?21:04
nuclear_eclipsewhat plugin issue/21:04
paul__installer21:04
nuclear_eclipsenot yet -- I'm not sure it's really a security issue though atm21:04
nuclear_eclipseat least not an extremely pressing one21:05
paul__it's an issue.21:05
paul__but yes, granted21:05
nuclear_eclipseit requires a valid form token to execute that page21:05
nuclear_eclipsebasically, the only way that page will ever execute properly is a) when the admin clicks on a link from manage_plugins_page, or b) the admin clicks on a link from a malicious plugin that he's already installed, at which point he's hosed no matter what that page does21:07
nuclear_eclipsegranted, it doesn't make sense, and yes, there should be some protections on that page, which I'll eventually get to, but it's not a security issue IMO21:08
* paul__ needs to get work project out way21:09
paul__i'm trying to clear my desk to focus on mantis21:09
nuclear_eclipsepaul__: do you agree with my reasoning above, or am I missing something?21:11
nuclear_eclipseie, if it's a real security problem, it'll warrant a higher priority on my stack21:12
paul__yea, I agree i think21:28
nuclear_eclipseok21:32
paul__tbh, it's also not that hard to fix21:32
paul__[a-zA-Z0-9]21:32
paul__done!21:32
nuclear_eclipselol21:32

Generated by irclog2html.py