Friday, 2010-04-09

*** Quits: micahg (~micah@ubuntu/member/micahg) (Quit: Leaving.)00:23
*** Joins: micahg (~micah@ubuntu/member/micahg)00:25
*** Joins: kirillka (~Miranda@global01.vester.ru)00:36
*** Quits: siebrand (~beis@sm.xs4all.nl) ()01:39
*** Joins: moto-moi (~hylke@cara.xs4all.nl)01:45
*** Joins: davidinc (~d5374b30@gateway/web/freenode/x-ilzcjsugljtkbvnh)01:52
*** Joins: davidinc_ (~d5374b30@gateway/web/freenode/x-pdkzbjyjlegfueaz)02:07
*** Quits: davidinc (~d5374b30@gateway/web/freenode/x-ilzcjsugljtkbvnh) (Ping timeout: 248 seconds)02:09
*** Quits: moto-moi (~hylke@cara.xs4all.nl) (Quit: Ex-Chat)02:28
*** Joins: giallu (~giallu@fedora/giallu)02:29
*** Quits: fanno (~Morten@90.184.93.233) (Read error: Connection reset by peer)02:33
*** Quits: chris38 (~chris38@bayle.eu) (Ping timeout: 245 seconds)02:39
*** Joins: Cupez (~Cupez@unaffiliated/cupertino)02:40
*** Joins: chris38 (~chris38@bayle.eu)02:41
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 276 seconds)03:50
*** Quits: davidinc_ (~d5374b30@gateway/web/freenode/x-pdkzbjyjlegfueaz) (Quit: Page closed)04:10
*** Quits: kirillka (~Miranda@global01.vester.ru) (Quit: kirillka)04:31
*** Joins: rolfkleef (~rolf@urtica.xs4all.nl)04:55
*** Joins: moto-moi (~hylke@cara.xs4all.nl)05:06
*** Quits: rolfkleef (~rolf@urtica.xs4all.nl) (Ping timeout: 246 seconds)06:42
*** Joins: rolfkleef (~rolf@82-171-189-12.ip.telfort.nl)08:05
*** Joins: texens (~cb6ef6e6@gateway/web/freenode/x-zkdpsnynrcytamsw)08:25
texenshi everyone !08:26
nuclear_eclipsehowdy08:27
texensI've come across a conceptual problem while working on a open source PHP web application...08:29
*** Quits: texens (~cb6ef6e6@gateway/web/freenode/x-zkdpsnynrcytamsw) (Ping timeout: 248 seconds)08:33
*** Joins: texens (~cb6ef6e6@gateway/web/freenode/x-qopofgppuvufbpqs)08:44
texenssorry, got disconnected08:44
dhx_mplease continue :)09:01
nuclear_eclipsetexens: I assume you are the one who mailed mantisbt-help regarding attachments?09:02
texensyes :)09:03
texensI thought I should mail it rather than expalin at length on the IRC09:03
nuclear_eclipsethe short reply is that we do absolutely nothing09:03
texensoops..09:03
nuclear_eclipseby default, we store files in the database, but can optionally store them on the filesystem as well09:04
texensdespite the fact that it allows one to upload even zip and .php, .js files09:04
texenshmm..09:04
nuclear_eclipsein the case of putting them in the database, the only option would be to run a scan against the in-memory file before database insertion09:04
nuclear_eclipseif storing on the filesystem, you could technically use a separate process to continually watch for new files in the attachments directory, and immediately scan them as they are added09:05
nuclear_eclipsehowever, I'm honestly not sure of the security/malware implications or effectiveness of either approach09:06
texensdoes Mantis have any hooks to call this *separate process* every time a new file is uploaded?09:06
nuclear_eclipsenot currently09:07
nuclear_eclipsethere have been requests to add plugin hooks around the attachment process, but I haven't yet found a reasonable way to support anything other than very specific usecases with those events, so I haven't implemented anything yet09:08
texenshmm.. I guess it would be a good idea to implement it. what do you say?09:08
nuclear_eclipsetexens: we're always happy to accept and review code submissions :)09:11
texenssure, I'd love to volunteer on this one09:12
nuclear_eclipsetexens: are you familiar with using Git?09:12
texensI'm well versed with svn, and it shouldn't be hard to learn git.09:13
nuclear_eclipseok09:13
nuclear_eclipseif you want, you can set up a public repo on git.mantisforge.org that you can push to for sharing your code with other developers09:14
nuclear_eclipseif you need some documentation on using git, there's a small list of references in the online documentation at http://docs.mantisbt.org/master/en/developers/dev.appendix.html#DEV.APPENDIX.GIT 09:14
texensthanks :)09:16
nuclear_eclipseregarding Mantis, you'll probably want to get familiar with how the event and plugin systems work; there's some documentation at http://docs.mantisbt.org/master/en/developers/ but the code is the best reference, found in mantisbt/core/event_api.php and mantisbt/core/plugin_api.php09:17
texensdoes mantis currently save the uploaded files in some sort of vault?09:19
texensvault = directory with strict permissions?09:19
nuclear_eclipsethat's configurable; by default they all get stored into a single table in the database, otherwise it's up to the Mantis admin to set up a directory and tell Mantis where to put everything09:19
nuclear_eclipsenaturally site admins should be creating a place for attachments outside of the webroot for security reasons, but Mantis won't complain about whatever their choice is09:20
dhx_mtexens: I'm of the view that anti-virus is pointless (ie. a blacklisting approach)09:21
nuclear_eclipsedhx_m: let's not get into that debate ;)09:21
texensnuclear_eclipse: it might not be possible for someone with shared hosting, to keep it outside of the webroot09:22
dhx_mnuclear_eclipse: heh ok :)09:22
nuclear_eclipsecorrect, at which point they should be configuring some sort of .htaccess rules to prevent the files from being accessible through the webserver09:22
texensdhx_m: I guess, I'd like to listen to your justification :)09:22
texenswhy anit-virus is pointless?09:23
* texens is taking a look at file mantis' upload documentation09:23
texens*mantis' file upload documentation09:24
dhx_mtexens: it takes an attacker just a few minutes to adjust their malware/payload to evade anti-virus signatures09:25
dhx_mtexens: which makes AV fairly much useless... what makes it BAD is the false positives it introduces, the chance that a vulnerability exists in the AV scanning engine itself and the performance hit you take09:26
dhx_mtexens: proper separation of user permissions ("sandboxing") defeats most malware09:26
dhx_mtexens: what I'm getting at is the benefits of AV are minimal yet it is expensive for you to use it (cost, performance, administration overheads)09:27
dhx_mtexens: your efforts are better spent securing the system in other more productive ways :)09:27
texensdhx_m: but anti-virus would in most cases, help secure the system from the known viurses09:28
texenssure thing, the evil user can tweak the virus to beat the AV09:28
texensbut keeping the system totally exposed without any protection would be dangerous09:29
texensI use linux and have zero experience with virus, so I might have misconceptions :)09:29
texensdhm_x, please correct me if I'm wrong09:29
dhx_myou can also keep your system patched and configured with a least-privilege principle to beat the "known" viruses09:33
texensWhat about this sandboxing technique? I'm not sure, but I'm guessing it refers to stripping the upload directory of write/execute permissions09:35
dhx_min terms of your email, I'm replying to it now09:38
texensthanks dhx_m :)09:40
*** Quits: rolfkleef (~rolf@82-171-189-12.ip.telfort.nl) (Ping timeout: 248 seconds)09:43
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 264 seconds)09:44
*** Joins: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com)09:50
*** Joins: rolfkleef (~rolf@82.201.4.144)09:55
texensdhx_m: could you please give me an brief overview of the sandboxing technique (or maybe a link to some article?)10:02
dhx_mtexens: http://en.wikipedia.org/wiki/Principle_of_least_privilege10:04
texensthanks dhx_m :)10:05
dhx_mtexens: also a somewhat different method: http://en.wikipedia.org/wiki/Sandbox_%28computer_security%2910:06
*** Quits: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) (Remote host closed the connection)10:06
*** Quits: wolog (~wolog@AOrleans-152-1-19-113.w90-21.abo.wanadoo.fr) (Ping timeout: 268 seconds)10:07
*** Joins: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com)10:07
*** Joins: Suicidal_1337 (~3e60ea11@gateway/web/freenode/x-jccjqadgwuncoojk)10:16
Suicidal_1337hey folks10:17
Suicidal_1337i have a mantis question, someone here who can help me10:17
dhx_mpossibly... depending on what the question is :)10:18
Suicidal_1337i have a runing mantis 1.0 and like to go for 1.2.  I want to migrate my old topics but i wasnt able to find a sql script to update my old 1.0 database. Is there a possibility to do that10:19
*** Joins: giallu (~giallu@fedora/giallu)10:20
*** Joins: wolog (~wolog@AOrleans-152-1-96-219.w90-21.abo.wanadoo.fr)10:20
*** Quits: wolog (~wolog@AOrleans-152-1-96-219.w90-21.abo.wanadoo.fr) (Remote host closed the connection)10:23
Suicidal_1337no idea?10:26
dhx_mafaik you can just use the upgrade feature in the 1.2.x installer10:27
dhx_mof course, make backups of your database, files, attachments, etc before attempting anything10:27
Suicidal_1337with backups it's boring10:38
Suicidal_1337buuut i tried it10:38
Suicidal_1337and the database seems to be upgraded without errors, but i'm not able to see the issues in Mantis10:39
*** Joins: micahg (~micah@ubuntu/member/micahg)10:39
Suicidal_1337wait10:40
*** Joins: mantisbt_45800 (~c27e7a16@gateway/web/freenode/x-dpwbnrqptfifecio)10:40
Suicidal_1337it  works, but i have a problem with the ldap auth... i'm try to fix it...10:40
*** Quits: mantisbt_45800 (~c27e7a16@gateway/web/freenode/x-dpwbnrqptfifecio) (Client Quit)10:41
dhx_ma lot has changed from 1.0 to 1.2 so you'll need to redo your configuration file10:43
Suicidal_1337i've done the config in 1.2 before the import, so the configuration should be fine. Now i have the Problem with ldap, that my users arn't admins cause in the old Database no ldap was used. Is there an admin user by default which i can use?10:45
dhx_madministrator/root10:46
dhx_malthough if you're upgrading, that user may not exist10:46
dhx_myou may need to adjust your database manually to give admin privileges to one of the LDAP user accounts10:46
Suicidal_1337damn! i'm a hacker!10:47
Suicidal_1337works10:47
Suicidal_1337seems like he insert a new row for each ldap user with the reporter rights10:49
Suicidal_1337nie10:49
dhx_mafaik you have to login each user10:49
dhx_musing LDAP10:49
dhx_mthen upgrade their account from within MantisBT user administration10:50
Suicidal_1337yes seems like that... many thanks for the help10:51
dhx_mnp10:52
*** Joins: fanno (~Morten@90.184.93.233)10:57
*** Quits: Suicidal_1337 (~3e60ea11@gateway/web/freenode/x-jccjqadgwuncoojk) (Quit: Page closed)11:18
*** Quits: Cupez (~Cupez@unaffiliated/cupertino) (Quit: I give up...)11:21
*** Joins: fanno1 (~Morten@90.184.93.233)11:27
*** Quits: fanno (~Morten@90.184.93.233) (Ping timeout: 245 seconds)11:27
*** Quits: rolfkleef (~rolf@82.201.4.144) (Ping timeout: 245 seconds)12:08
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 276 seconds)12:19
*** Joins: WaltzingAlong (~WaltzingA@dslb-092-074-125-157.pools.arcor-ip.net)12:50
WaltzingAlongwhat needs to be done for changes to $g_default_show_changed to take effect? clear out the template cache? how to do that?12:51
*** Joins: cobexer (~cobexer@188-23-97-127.adsl.highway.telekom.at)13:24
*** cobexer is now known as \cobexer|away13:40
*** Joins: rolfkleef (~rolf@urtica.xs4all.nl)13:47
*** Quits: rolfkleef (~rolf@urtica.xs4all.nl) (Remote host closed the connection)13:47
*** Joins: micahg (~micah@ubuntu/member/micahg)13:52
*** Quits: texens (~cb6ef6e6@gateway/web/freenode/x-qopofgppuvufbpqs) (Quit: brb)13:58
*** Joins: siebrand (~beis@sm.xs4all.nl)14:01
*** Joins: AzaToth (~azatoth@wikipedia/AzaToth)14:13
paul__dhx_m: ping?14:53
paul__nuclear_eclipse: er, wtf you trying to do????14:54
*** Joins: wolog (~wolog@ASt-Lambert-152-1-37-208.w82-124.abo.wanadoo.fr)15:29
*** Joins: cobexer (~cobexer@188-23-105-33.adsl.highway.telekom.at)15:30
*** Joins: rolfkleef (~rolf@urtica.xs4all.nl)15:31
*** Quits: \cobexer|away (~cobexer@188-23-97-127.adsl.highway.telekom.at) (Ping timeout: 276 seconds)15:34
*** Joins: texens (~cb6ef6e6@gateway/web/freenode/x-huknktealycztuhx)16:01
darynpaul__ there?16:04
*** Quits: WaltzingAlong (~WaltzingA@dslb-092-074-125-157.pools.arcor-ip.net) (Remote host closed the connection)16:05
paul__lo16:46
darynhow do you delete tags on mantisforge ?16:47
paul__dunno16:52
paul__heh16:52
paul__within your repo?16:52
paul__so basically how do you delete tags from within git?16:52
darynwell, i added them from the web interface somehow16:53
darynstray keystrokes or something16:53
darynso they are part of my repo?16:53
nuclear_eclipsepaul__: daryn is talking about the gitweb tagging of repos that allows you to group similar repos by a tag name17:00
nuclear_eclipsebtw paul__, would love it if you could drop the mibbit.git and savedtext.git repos from there ;)17:01
darynnuclear_eclipse what do we need to do for the jquery changes you made?17:04
darynfor $() where it's not in ready17:04
*** Quits: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) (Quit: daryn)17:51
paul__nuclear_eclipse: gonna be working on mantis over next 10 days hopefully17:57
*** Quits: moto-moi (~hylke@cara.xs4all.nl) (Quit: Ex-Chat)18:23
*** texens is now known as texens|away18:39
*** Quits: cobexer (~cobexer@188-23-105-33.adsl.highway.telekom.at) (Read error: Connection reset by peer)18:48
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 248 seconds)19:05
*** Quits: fanno1 (~Morten@90.184.93.233) (Quit: Leaving.)19:17
*** Quits: scribe9343423 (~scribe934@mantisforge.org) (Remote host closed the connection)20:00
*** Joins: scribe9343423 (~scribe934@mantisforge.org)20:00
*** Quits: rolfkleef (~rolf@urtica.xs4all.nl) (Ping timeout: 246 seconds)20:08
*** Quits: AzaToth (~azatoth@wikipedia/AzaToth) (Remote host closed the connection)21:34
*** Joins: pabelanger_ (~pabelange@CPE004010100002-CM00159a090f12.cpe.net.cable.rogers.com)21:51
pabelanger_Hi all.  I was curious if there was an API to allow users to upload files (.txt) directly to an existing issue. as an attachment?21:52
*** Quits: pabelanger_ (~pabelange@CPE004010100002-CM00159a090f12.cpe.net.cable.rogers.com) (Quit: Leaving)22:18
*** texens|away is now known as texens22:56

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!