The security code is the 3 or 4 digit number on the credit card that you have on your account : How to find the security code on a credit card.
To correct/add it to your account then if using your phone then tap on your id in Settings > iTunes & App Store and tap on 'View Apple ID' on the popup and log into your account - that should give you a payment details link on your account's page. If using your computer's iTunes then you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should also be a payment details link.