Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Skuggi on December 30, 2004, 05:45:34 PM

Title: ;ID to &ID fix for some servers.
Post by: Skuggi on December 30, 2004, 05:45:34 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=71)

For servers that do not allows the ;ID or users that cant get there host to fix it like I had.  I changed the files that call up an ;ID in the URL to &ID in order to fix this bug. Tested on 1.0RC2 and 1.0.

!!!Now available as a package!!!
Title: Re: ;ID to &ID fix for some servers.
Post by: [Unknown] on December 30, 2004, 05:57:06 PM
Technically, to be xhtml compliant, it should be &, but that would probably cause this problem all over again :P.

I suggest you take a look at the package SDK and try your hand at making this a package (which means it will be a lot easier to install, even after this release and upgrades past...) - if you have any problems at all, I'm of course willing to help.

Package SDK, anyone? (http://www.simplemachines.org/community/index.php?topic=20319.0)

-[Unknown]
Title: Re: ;ID to &ID fix for some servers.
Post by: Skuggi on December 31, 2004, 02:38:27 AM
Ok this should be gold.

Uploaded to the server in package form.

I made enough space to test the package with a fresh install and it installs/uninstalls perfect. double checked to make sure all the files are written to and that looks good too.

None: was 3am here and didnt notice I uploaded my SNORTCON which was my working name while testing and the first ID_FixPackage.zip that I uploaded cause I forgot to put in the new xml file in it lol. it if you could delete that it would be cool.

I'm uploading the 100% finished version and finally getting some sleep.
Title: Re: ;ID to &ID fix for some servers.
Post by: Skuggi on January 05, 2005, 05:40:58 PM
Thanks for the fix on the mod page :D  I just uploaded the working version of the package (Now tested and working for 1.0 final release and got rid of the bad files.
Title: Re: ;ID to &ID fix for some servers.
Post by: Nidoking on January 05, 2005, 05:47:29 PM
Cool mod! I'm using it on my forum. I haven't noticed any changes in the URL, though? Are they supposed to change if you use Firefox?
Title: Re: ;ID to &ID fix for some servers.
Post by: [Unknown] on January 05, 2005, 06:14:29 PM
Could you update this mod just a bit?  A related issue for some servers is that "ps" cannot be at the end of a URL.  It's easy to fix this - "ps;" works.

Since it's related to this, being a security configuration problem on the server, I thought maybe you'd be willing to incorporate the changes?  They're simple, and I can give them to you, but essentially it just means changing ps" an ps' to ps;"[/t] and ps;' in Subs.php, ManageMembers.php, and ManageMembers.template.php.

If not, that's fine to... just a suggestion to make this more useful ;).

-[Unknown]
Title: Re: ;ID to &ID fix for some servers.
Post by: Midgard on January 11, 2005, 07:50:26 AM
Nice modification... I've coding...
Title: Re: ;ID to &ID fix for some servers.
Post by: Skuggi on January 11, 2005, 11:11:25 AM
Quote from: [Unknown] on January 05, 2005, 06:14:29 PM
Could you update this mod just a bit?  A related issue for some servers is that "ps" cannot be at the end of a URL.  It's easy to fix this - "ps;" works.

Since it's related to this, being a security configuration problem on the server, I thought maybe you'd be willing to incorporate the changes?  They're simple, and I can give them to you, but essentially it just means changing ps" an ps' to ps;"[/t] and ps;' in Subs.php, ManageMembers.php, and ManageMembers.template.php.

If not, that's fine to... just a suggestion to make this more useful ;).

-[Unknown]
yea, I can set that up um... hopefully by the end of next week. As I'm a bit busy till the end of this week. Maybe by Sunday unless... :D  if we dont get busy tonight at work :D
Title: Re: ;ID to &ID fix for some servers.
Post by: Skuggi on January 11, 2005, 11:17:59 AM
Quote from: dF on January 05, 2005, 05:47:29 PM
Cool mod! I'm using it on my forum. I haven't noticed any changes in the URL, though? Are they supposed to change if you use Firefox?

They should.  Where you'd notice the difference is when your doing stuff in the admin panel. or the Login can have an issue with this on some servers like the one I use. The URL Diff is barely noticable.

On a nomal SMF install
http://www.sarcasm-inc.net/cf/index.php?action=manageboards;sa=cat;ID_CAT=2

On a SMF with my mod
http://www.sarcasm-inc.net/cf/index.php?action=manageboards;sa=cat&ID_CAT=2
Title: Re: ;ID to &ID fix for some servers.
Post by: Skuggi on January 11, 2005, 01:20:26 PM
Ok, opened up the files to take a look for ps'  ps" and cant find that at all unless your talking about groups' membergroups" etc.  But didnt look like its going in the URL anywhere. but this will be real easy to throw together tonight.  I'll need to change the name I guess to server security bypass or something to better reflect it.
Title: Re: ;ID to &ID fix for some servers.
Post by: [Unknown] on January 12, 2005, 02:05:24 AM
Quote from: Skuggi on January 11, 2005, 01:20:26 PM
Ok, opened up the files to take a look for ps'  ps" and cant find that at all unless your talking about groups' membergroups" etc.  But didnt look like its going in the URL anywhere. but this will be real easy to throw together tonight.  I'll need to change the name I guess to server security bypass or something to better reflect it.

Yeah, that's what I meant.  It's just action=membergroups that I know of.  It goes into the URL in a few places...

ManageMembers.php, lines: 147, 241, 263, 275, 329, 358... Subs.php line 1377, and ManageMembers.template.php, line 13.

-[Unknown]
Title: Re: ;ID to &ID fix for some servers.
Post by: filipv on January 24, 2005, 08:14:56 AM
I used the mod, but still get these errors
Title: Re: ;ID to &ID fix for some servers.
Post by: [Unknown] on January 24, 2005, 11:03:11 AM
Quote from: filipv on January 24, 2005, 08:14:56 AM
I used the mod, but still get these errors

What errors do you get?  Where?

-[Unknown]
Title: Re: ;ID to &ID fix for some servers.
Post by: MyCampSites on February 18, 2005, 02:16:00 AM
I'm finding other urls in the admin panel that use ; instead of &...  I can't view those pages until I manually edit the url and replace the ; with &.  Will there be an update to SMF that corrects these urls?
Title: Re: ;ID to &ID fix for some servers.
Post by: [Unknown] on February 18, 2005, 02:37:25 AM
Quote from: MyCampSites on February 18, 2005, 02:16:00 AM
I'm finding other urls in the admin panel that use ; instead of &...  I can't view those pages until I manually edit the url and replace the ; with &.  Will there be an update to SMF that corrects these urls?


All URLs within SMF use ; as separators.  Which URLs are you having problems with?

-[Unknown]
Title: Re: ;ID to &ID fix for some servers.
Post by: MyCampSites on February 18, 2005, 02:45:52 AM
I've encountered a number of them.  This is a new installation of SMF from Fantastico provided by hosting company.  I've installed the latest packages too, which fixed the login error mentioned earlier in the topic.  Basically, any url with a ; gives me the error:

"Forbidden
You don't have permission to access /forum/index.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "

This was from the URL:
http://mycampsites.com/forum/index.php?action=permissions;sa=modify;id=-1

as an example...  If I replace the ; with & I can usually proceed.  I can list other problem urls in my next post.

BTW, I tried phpBB as well, and even though I didn't encounter any errors using it I decided to tough it out with SMF because it shows much more potential as a complete product.
Title: Re: ;ID to &ID fix for some servers.
Post by: MyCampSites on February 18, 2005, 02:51:23 AM
other problem urls:
http://mycampsites.com/forum/index.php?action=manageboards;sa=newboard;ID_CAT=1
http://mycampsites.com/forum/index.php?action=theme;sa=settings;id=1;sesc=dd490e81057ef41dc06f6010ebcba2c5
http://mycampsites.com/forum/index.php?action=membergroups;sa=edit;id=1
http://mycampsites.com/forum/index.php?action=permissions;sa=modify;id=-1

That's from checking the top level links, I haven't tried to dig much deeper than that yet.
Title: Re: ;ID to &ID fix for some servers.
Post by: [Unknown] on February 18, 2005, 02:59:32 AM
Yes, these are the URLs this package is meant to fix.  The problem you're encountering doesn't happen for most servers, but only for servers with a certain security setting turned on - one that interferes with other scripts, and is generally a dumb setting anyway.

SMF 1.1 already has a better fix than the modification here built into it.  But, it won't be public for at least a couple months, so in the mean time this patch is a great benefit to those with strangely set up servers.

You're notice EVERY ONE of the links you posted have ";id" in them (or ;ID).  What's happening is something is catching that, and deciding it may be a possible attempt to compromise security (but is wrong.)  As such, it blocks the request.

Those same URLs, on this server, do not give any errors at all - because this server is properly configured :P.  Regardless, it's unlikely your host will turn off a security setting, even if it is blocking legitmate activity and more than likely only protecting another already-patched script... so that's where the problem comes in.

If there is another SMF 1.0.x release, it may have more fixes for this problem built into it.  However, too many changes for a minority in a small version release are bad, because they may cause problems for the majority if something goes wrong.

-[Unknown]
Title: Re: ;ID to &ID fix for some servers.
Post by: MyCampSites on February 18, 2005, 03:04:28 AM
What is the server setting?  My host has been pretty helpful with similar problems.  It wouldn't hurt to ask them...

Thanks!
Title: Re: ;ID to &ID fix for some servers.
Post by: Jerry on February 18, 2005, 03:30:09 AM
it is a problem with SNORT. I think the only way to fix it is to remove SNORT
Title: Re: ;ID to &ID fix for some servers.
Post by: MyCampSites on February 19, 2005, 06:13:58 PM
Thank you , your mod has really helped out.  If you wouldn't mind, I have found a few more URL's that need "modding"...

http://mycampsites.com/forum/index.php?action=theme;sa=settings;id=1
http://mycampsites.com/forum/index.php?action=theme;sa=options;id=1

Title: Re: ;ID to &ID fix for some servers.
Post by: lumom on March 11, 2005, 09:12:44 PM
I used this mod and am still unable to install a new theme.

/mb/index.php?action=theme;sa=install

Also, the new Subs.php file that I uploaded made it so that the bottom of my forum says,

Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is using an ILLEGAL copy of SMF!

(I uploaded each file at  time to figure out which one did that.)

can you help?

I really want to use this message board and am trying so hard to get it to work, but am getting  frustrated, though. :(

tia
Title: Re: ;ID to &ID fix for some servers.
Post by: G-Rard B on March 12, 2005, 01:58:18 PM
Mod won't work.  I get this:

2.     Execute Modification     ./Sources/LogInOut.php     Failure
3.    Execute Modification    ./Sources/Register.php    Failure

I tried uploading the files from the other zip file but that messed up my forums so I had to reinstall.  Help would be appreciated.

Thanks,
Gerard
Title: Re: ;ID to &ID fix for some servers.
Post by: nick_uk on March 28, 2005, 06:11:43 AM
I got the same problems  :'(   Still getting Error 403's and now I have an illegal copy of SMF  :-[

Has anyone got a fix for this, or do we have to wait for SMF 1.1 ?
Title: Re: ;ID to &ID fix for some servers.
Post by: nick_uk on March 29, 2005, 09:09:39 AM
I've done a bit more digging, and it seems that the mod doesn't replace some files that a manual install replaces.  That is probably the reason why only some people are seeing the "unlicenced copy" stuff ?

Title: Re: ;ID to &ID fix for some servers.
Post by: roblef on July 20, 2005, 06:18:37 PM
I'm totally non-technical, but here's what's happening. In uploading the changed files in the Source dir, something is killing the copyright notice. When i upload those files, I get the "illegal copy of SMF" warning at the bottom of the page. I restore the original files there, and the copyright shows up fine. any fixes to this?

thanks
Title: Re: ;ID to &ID fix for some servers.
Post by: [Unknown] on July 20, 2005, 10:42:19 PM
I suggest you use, instead, this solution:

Having problems with mod_security? (http://www.simplemachines.org/community/index.php?topic=34270.0)

-[Unknown]