Hack Forums
How to copy the certificates of a PDF to another PDF? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: How to copy the certificates of a PDF to another PDF? (/showthread.php?tid=6252159)



How to copy the certificates of a PDF to another PDF? - T000Z - Sep 23, 2023

Hi,

I have a document and it contains certain hidden certificates. How do I copy these certificates to a new pdf?

Is is possible to forge it?

T00Z✌


RE: How to copy the certificates of a PDF to another PDF? - ocokdims - Oct 9, 2023

write to [deleted]


RE: How to copy the certificates of a PDF to another PDF? - DramaKing - Oct 9, 2023

(Sep 23, 2023 08:10 AM)T000Z Wrote:  Hi,

I have a document and it contains certain hidden certificates. How do I copy these certificates to a new pdf?

Is is possible to forge it?

T00Z✌

If you're talking about digital signatures, any change to the PDF (or copying the signature to a new PDF) will invalidate the signature. The certificate contains a public key and a hash of the document and the owner's private key.


RE: How to copy the certificates of a PDF to another PDF? - perm - Oct 11, 2023

This is not possible at all.


RE: How to copy the certificates of a PDF to another PDF? - B3A - Oct 12, 2023

(Sep 23, 2023 08:10 AM)T000Z Wrote:  Hi,

I have a document and it contains certain hidden certificates. How do I copy these certificates to a new pdf?

Is is possible to forge it?

T00Z✌

dont think thats something possible tbh bruv


RE: How to copy the certificates of a PDF to another PDF? - linkinpork - Oct 12, 2023

(Sep 23, 2023 08:10 AM)T000Z Wrote:  I have a document and it contains certain hidden certificates. How do I copy these certificates to a new pdf?


Hi,

You can't "copy" the signatures but you can just request another cert from the PKI provider. No one can tell the difference unless they check the expiry. Which I doubt anyone does.

If they use the Adobe Reader app, the PKI provider needs to be AATL certified (here's how it works). But if they're just viewing it with some shit like Microsoft Word any PFX file from a reputable company would be ok.

Cheers!


RE: How to copy the certificates of a PDF to another PDF? - SIM-5432905 - Oct 12, 2023

(Sep 23, 2023 08:10 AM)T000Z Wrote:  Hi,

I have a document and it contains certain hidden certificates. How do I copy these certificates to a new pdf?

Is is possible to forge it?

T00Z✌

The best way I can think of is to use a PDF editing software like Adobe Acrobat or PDF-XChange Editor. Then, extract the pages containing the certificates from the original PDF. Create a new PDF document and insert the extracted pages into the new PDF. Adjust elements as needed to ensure a seamless match.


RE: How to copy the certificates of a PDF to another PDF? - DramaKing - Oct 13, 2023

(Oct 12, 2023 11:35 PM)m3gapi Wrote:  The best way I can think of is to use a PDF editing software like Adobe Acrobat or PDF-XChange Editor. Then, extract the pages containing the certificates from the original PDF. Create a new PDF document and insert the extracted pages into the new PDF. Adjust elements as needed to ensure a seamless match.

You didn't even understand the question, did you?

(Oct 12, 2023 11:25 PM)linkinpork Wrote:  Hi,

You can't "copy" the signatures but you can just request another cert from the PKI provider. No one can tell the difference unless they check the expiry. Which I doubt anyone does.

If they use the Adobe Reader app, the PKI provider needs to be AATL certified (here's how it works). But if they're just viewing it with some shit like Microsoft Word any PFX file from a reputable company would be ok.

Cheers!

Oh, of course, certainly OP can do this because he would have the private key and wouldn't be trying to send documents as someone else. 😛


RE: How to copy the certificates of a PDF to another PDF? - SIM-5432905 - Oct 13, 2023

(Oct 13, 2023 05:27 AM)DramaKing Wrote:  You didn't even understand the question, did you?


Oops my bad, that was how I interpreted it …


RE: How to copy the certificates of a PDF to another PDF? - linkinpork - Oct 16, 2023

(Oct 13, 2023 05:27 AM)DramaKing Wrote:  Oh, of course, certainly OP can do this because he would have the private key and wouldn't be trying to send documents as someone else. 😛

Hi,

The AATL (PDF) keys are sold in a USB disk. PKI companies sell *.pfx files that bind to Windows Certificate Manager, without the need for a USB key. https://www.digicert.com/signing/document-signing-certificates

I've actually already done this before.

Cheers!

Quick Edit: No one reads past the Common Name. If the original one is by GlobalSign, the other one is by DigiCert, as long as the green check mark is there, no one cares. Whether this is impersonating as someone or not, it doesn't matter.