Unless this bug is harming other peoples gameplay and as you have reported it then i dont see the problem.
In theory at least this is harming other people. If you get rich by selling items you got from a bug, can effect the economy to one degree or another. Not that there is much of one in STO... But the idea is the same, and if you do it, you can get your account banned.
If you're the one who reported the bug, and then kept using it, the odds of you getting into trouble increase because you clearly knew or at least suspected that it was a bug in the first place.