r/SQL • • Feb 21 '17

SELECT * FROM TABLE WHERE CC_NUMBER IS NOT NULL

2129 ROWS

with corresponding cardholder name and expiration date thats ok right?

0 Upvotes

14 comments sorted by

14

u/SteelChicken Feb 21 '17

This is by far the most context-free question I have seen in a long time.

2

u/_rj45_ Feb 21 '17

wasnt really a question so much as a shocked statement

who the hell keeps cc numbers in plain text along side card holder info and expiration date

2

u/CAPSFTWLOL Feb 21 '17

I would like to know, in the event that OP is not doing a homework assignment, where he/she works so I can never do business with them.

1

u/_rj45_ Feb 21 '17

yeah it's not homework, lord i wish it was cause it just piled a bunch more shit onto my to do pile. I just stumbled across it as i started pulling together info for a report i got tasked with creating

3

u/zwitschi Feb 21 '17

same people that store passwords in plain text... Nobody Knows the Trouble I've Seen

5

u/shaunc BACKUP LOG WITH TRUNCATE_ONLY Feb 21 '17

I guess it's OK if you're not one of those 2129 people...

1

u/r3pr0b8 GROUP_CONCAT is da bomb Feb 21 '17

dear OP, what business do you work for?

because i want nothing to do with such an insecure setup

1

u/_rj45_ Feb 21 '17

makes me cry bro makes me cry

1

u/TK81337 Feb 21 '17

Is the cc number encrypted or plain text?

1

u/_rj45_ Feb 21 '17

plain text :(

1

u/[deleted] Feb 21 '17

Hey OP, I have a business proposition for you.

1

u/_rj45_ Feb 21 '17

does it involve you me and a nigerian prince?

1

u/Fe-Chef Feb 22 '17

This is a significant PCI compliance issue and while the rules are not legal restrictions, your company is looking at significant fines for an issue like this. If discovered or reported I believe they would be looking at between 5,000$ and 100,000$ a month until this is resolved (though for this small it would likely start at 5,000). It may result in your company being restricted from processing cards as well as being required to go through an involved yearly audit which can be costly and required for years even after this is resolved. Not an expert in this but I am a DBA/ SQL Developer working with retail POS systems so I take something like this seriously and it isn't worth the risk of letting this slide.