Some spellings walk the line of correctness. For some, it may be a matter of British vs. American preferences. But “impostor,” like the word “adviser,” can be spelled correctly with an -er or an -or, though there are good arguments for only one correct spelling in either case.
Here’s more information about impostor/imposter.
Which does your publication prefer? Check your style book, or perhaps your house style sheet.