Sunday, 2009-12-06

../irclogs/#mantishelp.2009-12-06.log
--- scribe started ---00:00
nuclear_eclipsehi paulr_01:31
nuclear_eclipsewhat are you going batty over?01:32
dhx_mhi03:42
dhx_mnuclear_eclipse: he's always like that :p03:42
paul__morning10:46
paul__dhx_m: i've got a list :P10:46
dhx_mpaul__: hi :)10:46
dhx_mpaul__: woohoo :D10:46
CIA-21Mantisbt: hickseydr * r26e2d3b6259a /core/html_api.php: Fix #11261: XSS in error output as MantisCoreFormatting isn't loaded11:50
CIA-21Mantisbt: hickseydr master-1.2.x * rca638c79bf6a /core/html_api.php: Fix #11261: XSS in error output as MantisCoreFormatting isn't loaded11:50
CIA-21Mantisbt: hickseydr * r538717ff083f /core/html_api.php: Add extra sanitisation to html_title()11:59
CIA-21Mantisbt: hickseydr master-1.2.x * r908a1fb76308 /core/html_api.php: Add extra sanitisation to html_title()11:59
CIA-21Mantisbt: hickseydr master-1.2.x * rf3d56d77594c /config_defaults_inc.php: Disallow admins from changing _page and _url settings12:41
CIA-21Mantisbt: hickseydr * r8f95c9e3fb34 /config_defaults_inc.php: Disallow admins from changing _page and _url settings12:41
CIA-21Mantisbt: hickseydr * ra2ae23486eec /core/print_api.php: Fix #11262: XSS issues in various print_X_option_list functions14:56
CIA-21Mantisbt: hickseydr master-1.2.x * rce2c32727936 / (lang/strings_english.txt return_dynamic_filters.php): Fix #11263: Refactor and cleanup return_dynamic_filters.php14:56
CIA-21Mantisbt: hickseydr * rf92e62ecfd9a / (lang/strings_english.txt return_dynamic_filters.php): Fix #11263: Refactor and cleanup return_dynamic_filters.php14:56
CIA-21Mantisbt: hickseydr master-1.2.x * r21299299e175 /core/print_api.php: Fix #11262: XSS issues in various print_X_option_list functions14:56
nuclear_eclipsedhx_m: what erros would ever trigger before the plugin system is loaded?15:12
dhx_mnuclear_eclipse: I'm not too sure... just going by what I see... maybe plugins are unloaded upon an error?15:14
nuclear_eclipseshouldn't be15:18
nuclear_eclipseand afaik, nothing that loads before the plugin system will generate an errer messag...15:18
dhx_mhmmm15:20
nuclear_eclipseie, there would have to be a trigger_error() somewhere between the loading of error_api and the loading of plugin_api, and that's only 4 apis...15:20
nuclear_eclipsehelper, db, session, and events apis...15:20
nuclear_eclipseyou can see that in core.php's bootstrap15:21
nuclear_eclipseI did a lot of work a while back after adding plugins to rearrange and clean up the bootstrap process to make plugins a) load earlier, and b) reduce the number of incidental API loads from core apis15:22
dhx_mhmm there are a few cases15:24
dhx_mfor instance:15:24
dhx_mevent_signal()15:24
dhx_mif( !isset( $g_event_cache[$p_name] ) ) {15:24
dhx_merror_parameters( $p_name );15:24
dhx_mtrigger_error( ERROR_EVENT_UNDECLARED, WARNING );15:24
dhx_mreturn null;15:24
dhx_m}15:24
paul__nuclear_eclipse: dhx is just opening can of worms :)15:24
nuclear_eclipseyes, but an event won't be signaled before plugins are loaded...15:25
dhx_mhmmm then I'm not sure15:25
dhx_mall I know is that print_project_menu_bar() had XSS errors and switching from string_display to string_html_specialchars fixed the problem15:26
paul__and probably introduced another tpye of error15:26
dhx_msample URL: http://localhost/mantis/return_dynamic_filters.php?view_type=simple&filter_target=fake15:26
dhx_mwhere you have a project name containing "<script>alert(60);</script>"15:27
dhx_mtry without my patches from today15:27
* nuclear_eclipse is trying15:27
dhx_mok15:27
paul__I still think html api should use string_display15:28
paul__:)15:28
nuclear_eclipsedhx_m: I'm not able to reproduce15:28
nuclear_eclipseoh, mantis stripped the <script> tag from the project name...15:28
dhx_mhmm15:29
dhx_mit doesn't strip it for me on manage_proj_edit_page.php15:30
nuclear_eclipseok15:31
nuclear_eclipsewhen creating the project, it stripped it, but not when updating...15:31
dhx_mok I'll fix that15:31
nuclear_eclipseI still can't reproduce the XSS error though15:31
nuclear_eclipseI get the error, but no alert15:31
nuclear_eclipsebut then again15:32
nuclear_eclipsereturn_dynamic_filters doesn't output the project name anywhere...15:32
dhx_myeah but the error page should print the horizontal project selector menu?15:32
dhx_munless you have it disabled?15:32
nuclear_eclipseit doesn't to me...15:32
dhx_mah15:33
dhx_mlet me find the config option15:33
nuclear_eclipseoh, I have all my errors/warnings set to halt...15:33
dhx_m(you may need more than one project)15:33
dhx_mthat's good15:33
nuclear_eclipsedhx_m: http://imgur.com/o35NQ.png15:33
dhx_moh bad page example15:34
dhx_mactually, pick to15:34
dhx_mhttp://git.mantisbt.org/?p=mantisbt.git;a=commitdiff;h=f92e62ecfd9a6cb25a527eb1418fdf4c6553ae4315:34
dhx_mthat turns the errors into trigger_errors15:35
nuclear_eclipseI still have a hard time believing that you'll find an error message that will trigger before the plugin system is loaded...15:35
dhx_mit could be something else15:35
dhx_mgrab the latest git master and revert http://git.mantisbt.org/?p=mantisbt.git;a=commit;h=26e2d3b6259a3f709012615e5bba174911e2304315:35
paul__event_signal( 'EVENT_LAYOUT_CONTENT_END' );15:36
* paul__ wonders15:36
paul__I think we just need a mantis error page15:36
paul__that erm15:36
paul__is more standard :P15:36
paul__i.e. doesn't do plugin/rss and sorts of stuff15:36
dhx_myeah15:36
paul__so i'm partly thinking about pulling it out of html api atm15:38
nuclear_eclipsedhx_m: I'm just wondering what the potential downfall is of never calling string_display in some places....15:38
paul__some of the string_displays we've added, I didn't realise were needed15:38
paul__also15:38
* paul__ slaps nuclear_eclipse with a brick15:38
* nuclear_eclipse breaks paul__'s knees15:39
paul__dhx_m: have you fixed john's bug yet?15:39
dhx_mhmmm now I can't even reproduce it15:39
dhx_mlet me check15:39
nuclear_eclipsewhat bug?15:39
paul__15:36 < dhx_m> grab the latest git master and revert http://git.mantisbt.org/?p=mantisbt.git;a=commit;h=26e2d3b6259a3f709012615e5bba174911e2304315:40
paul__can we just revert that?15:40
paul__and fix it another way if the error page is an issue15:40
dhx_mI'm checking15:42
nuclear_eclipseI gotta go get some breakfast15:43
nuclear_eclipsecheres15:43
dhx_mnuclear_eclipse: I can reproduce it again in a different place15:52
dhx_mclick "Update" at the bottom of manage_plugin_page.php15:52
dhx_mwhen you have ON == config_get( 'show_project_menu_bar'15:52
dhx_mmy menu bar looks like:15:53
dhx_mAll Projects | TestA<script>alert(52);</script>: 1.1<script>alert(57);</script>: 1.1.1  | TestB15:53
dhx_mand I get an alert popup for both 52 and 5715:54
dhx_mI reset my local copy to Siebrand's last commit 964915c9db27702a4a42eb10117539350e9e4e0215:54
dhx_mthe projects in other words are "TestA<script>alert(52);</script>"15:55
dhx_mand under that, a subproject "1.1<script>alert(57);</script>"15:55
dhx_mpaul__: the dynamic filter bug is fixed now AFAIK :)15:59
paul__:)16:04
paul__i'll check in a bit16:04
paul__i've had to disable wincache for php16:04
paul__i.e. MS's cache16:04
dhx_mok well I've gtg for now16:04
dhx_mah16:04
paul__kk16:04
dhx_mlet me know if there are any more things to fix16:04
dhx_mI already know about the redirection thingy16:04
paul__well16:04
paul__there's 300 things in the file16:04
paul__but some are like yea16:05
paul__dupes/nonissues16:05
dhx_memail maybe?16:05
dhx_mah ok16:05
dhx_mwell either way, cya later :)16:05
nuclear_eclipsedhx_m:16:11
nuclear_eclipsethe spot you mention is because plugins are specifically disabled when updating their priorities, etc, but i cant remember exactly why i made that change...16:12
nuclear_eclipsebut considering that the only people who can set project names are admins, i dont think we should be modifying where we use string_display because of that.....16:14
nuclear_eclipsexss prevention really only needs to worry about what untrusted users can do..16:15
nuclear_eclipseif you cant trust your admin, theres nothing you can do to protect the app or its users16:16

Generated by irclog2html.py