Allowing purchases with an expired credit card isn't really a bug, it's sometimes a "feature". If it was valid when the credit card was added to the account, and if a payment were made from it before it expired, it could have subsequently been labelled as a recurring payment, and then the credit card companies will often allow payments to go through, even after it expired.