History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: OSC-424
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Harald Ponce de Leon
Reporter: Sandro Felicioni
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
osCommerce Core

how to get the customers default address id from someone else..

Created: 29/Dec/07 07:30 PM   Updated: 03/Jan/08 06:37 PM
Return to search
Component/s: None
Affects Version/s: 2.2 RC 1
Fix Version/s: 2.2 RC 2

File Attachments: 1. HTML File Codesnippet2.html (15 kb)



 Description  « Hide
There is a bug in the address_book_process.php file. It is simillar to the one I created a few minutes ago (OSC-423), but this is a bit more crictical!

If the user wants to update one of his address book entries he can manipulate his address book with a little hack..

If the user copies the form content from osCommerce and changes some data and submits it again to osCommerce, than address_book_process, doesn't validate the recived data before the db update..

The user just has to change the edit id in the action attribute of the form tag to a not known other id and to change it also in the hidden field like this:
e.g. :
<form name="addressbook" action="http://localhost/_osCommerce/address_book_process.php?edit=11&osCsid=2c0a7f02262a145707b0575aa58f06a3" method="post">

e.g. :
<input type="hidden" name="edit" value="11">

In addition he has to set the checkbox (set as primary..) to true.

Now when he submits the form it's going to set the modified edit id as default id which is related to another person..

For example in the checkout process he can use now an existing foreign address as billing address and so on..

 All   Comments   Change History      Sort Order:
Change by Sandro Felicioni [29/Dec/07 07:30 PM]
Field Original Value New Value
Attachment Codesnippet2.html [ 10130 ]

Change by Harald Ponce de Leon [03/Jan/08 06:37 PM]
Status Open [ 1 ] Closed [ 6 ]
Fix Version/s 2.2 RC 2 [ 10020 ]
Resolution Fixed [ 1 ]
Assignee Harald Ponce de Leon [ hpdl ]