Brea­king the Spe­ci­fi­ca­ti­on: PDF Cer­ti­fi­ca­ti­on

Simon Rohl­mann, Vla­dis­lav Mla­de­nov, Chris­ti­an Main­ka, Jörg Schwenk

42nd IEEE Sym­po­si­um on Se­cu­ri­ty and Pri­va­cy (S&P 2021)


Ab­stract

The Por­ta­ble Do­cu­ment For­mat (PDF) is the de-fac­to stan­dard for do­cu­ment ex­chan­ge. The PDF spe­ci­fi­ca­ti­on de­fi­nes two dif­fe­rent types of di­gi­tal si­gna­tu­res to gua­ran­tee the au­then­ti­ci­ty and in­te­gri­ty of do­cu­ments: ap­pro­val si­gna­tu­res and cer­ti­fi­ca­ti­on si­gna­tu­res. Ap­pro­val si­gna­tu­res testi­fy one spe­ci­fic state of the PDF do­cu­ment. Their se­cu­ri­ty has been in­ves­ti­ga­ted at CCS'19. Cer­ti­fi­ca­ti­on si­gna­tu­res are more power­ful and fle­xi­ble. They cover more com­plex work­flows, such as si­gning contracts by mul­ti­ple par­ties. To achie­ve this goal, users can make spe­ci­fic chan­ges to a si­gned do­cu­ment wi­thout in­va­li­da­ting the si­gna­tu­re.

This paper pres­ents the first com­pre­hen­si­ve se­cu­ri­ty eva­lua­ti­on on cer­ti­fi­ca­ti­on si­gna­tu­res in PDFs. We de­scri­be two novel at­tack clas­ses -- Evil An­no­ta­ti­on and Sne­aky Si­gna­tu­re at­tacks which abuse flaws in the cur­rent PDF spe­ci­fi­ca­ti­on. Both at­tack clas­ses allow an at­ta­cker to si­gni­fi­cant­ly alter a cer­ti­fied do­cu­ment's vi­si­ble con­tent wi­thout rai­sing any warnings. Our prac­tical eva­lua­ti­on shows that an at­ta­cker could chan­ge the vi­si­ble con­tent in 15 of 26 view­er ap­p­li­ca­ti­ons by using Evil An­no­ta­ti­on at­tacks and in 8 ap­p­li­ca­ti­ons using Sne­aky Si­gna­tu­re by using PDF spe­ci­fi­ca­ti­on com­pli­ant ex­ploits. We im­pro­ved both at­tacks' ste­alt­hi­ness with ap­p­li­ca­ti­ons' im­ple­men­ta­ti­on is­su­es and found only two ap­p­li­ca­ti­ons se­cu­re to all at­tacks. On top, we show how to gain high pri­vi­le­ged Ja­va­Script exe­cu­ti­on in Adobe.

We re­s­pon­si­bly dis­clo­sed these is­su­es and sup­por­ted the ven­dors to fix the vul­nerabi­li­ties. We also pro­po­se con­cre­te coun­ter­me­a­su­res and im­pro­ve­ments to the cur­rent spe­ci­fi­ca­ti­on to fix the is­su­es.

[pdf]

Tags: cer­ti­fi­ca­ti­on, PDF, pdf-se­cu­ri­ty, pdf-si­gna­tu­res