View Issue Details

IDProjectCategoryView StatusLast Update
0004717OXID eShop (all versions)4.02. Session handlingpublic2012-12-03 14:37
Reporterspurvis Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionwon't fix 
Product Version4.6.5 revision 49955 
Summary0004717: Injection of SID info into URL query can result in an invalid URL
DescriptionInjection of SID info into the query string of a SEO URL that includes an anchor (#) will yield an invalid url.

For example, the URL

http://demoshop/About-Us/#test?lang=1

becomes

http://demoshop/About-Us/force_sid=vp62ej417icb27m7nm5i5m5at5&#test?lang=1

The correct result would be

http://demoshop/About-Us/#test?force_sid=vp62ej417icb27m7nm5i5m5at5&lang=1
Steps To Reproduce1. Create a link on a webpage that uses an anchor (I used a banner link pointing to an anchor on a CMS page)
2. Invoke a session (place something in the basket)
3. Use browser options to remove SID cookie and disable further cookies (used Firefox)
4. Refresh page with anchor link
5. Click link and notice the error page with "The requested page '<BAD-URL>' could not be found."
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

aurimas.gladutis

2012-12-03 14:37

reporter   ~0008043

Hi, what we can see here, is that you have entered incorrect address for the url. It should have been http://demoshop/About-Us/?lang=1#test . You can read about adding anchtors to url at http://www.asymmetrics.com/appending-anhors-to-urls-code.asp last chapter. You will see that you need to add anchtor at the very end of url, which is after ?lang=1. One more thing is that even if this would be correct, it would be firefox bug, not the shop one, as you have checked browsers parsing of url.

If you still have any questions, feel free to ask.