Skip to content

Commit

Permalink
Fix session exploit with PayPal Express checkout.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpheasey committed Apr 21, 2015
1 parent c3bfb9e commit 35569ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public function startAction()
{
Mage::getSingleton('core/session')->renewSession();
Mage::getSingleton('core/session')->unsSessionHosts();
Mage::getSingleton('checkout/session')->getMessages(true);

// Create session from Gemgento data
if(!empty($_GET['store_id'])) {
Expand All @@ -27,7 +28,8 @@ public function startAction()
}

if(!empty($_GET['quote_id'])) {
Mage::getSingleton('checkout/session')->setQuoteId($_GET['quote_id']);
$quote = Mage::getModel('sales/quote')->load($_GET['quote_id']);
Mage::getSingleton('checkout/session')->replaceQuote($quote);
}

try {
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Gemgento/Paypal/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Gemgento_Paypal>
<version>0.0.1</version>
<version>0.0.2</version>
</Gemgento_Paypal>
</modules>
<frontend>
Expand Down

0 comments on commit 35569ba

Please sign in to comment.