Does a professor need a student's permission to cite the student's unpublished essay in their own work?
I imagine that undergraduate essays rarely contribute to the knowledge in a field, but there is nothing stopping them.

There is no rule that you have to hold a PhD to contribute.  You can be a graduate student, an undergraduate, or completely unaffiliated with a university and contribute.