{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,23]],"date-time":"2026-08-23T11:21:05Z","timestamp":1787484065420,"version":"build-2736575974"},"reference-count":37,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T00:00:00Z","timestamp":1750291200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"name":"The New York State","award":["Empire Innovation Program"],"award-info":[{"award-number":["Empire Innovation Program"]}]},{"name":"Research Grants Council (RGC) of Hong Kong","award":["CUHK 24205021"],"award-info":[{"award-number":["CUHK 24205021"]}]},{"DOI":"10.13039\/501100004853","name":"The Chinese University of Hong Kong","doi-asserted-by":"crossref","award":["NEW\/SYC, GRF\/22\/SYC, GRF\/23\/SYC"],"award-info":[{"award-number":["NEW\/SYC, GRF\/22\/SYC, GRF\/23\/SYC"]}],"id":[{"id":"10.13039\/501100004853","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2025,6,19]]},"abstract":"<jats:p>\n                    The X.509 Public Key Infrastructure (PKI) provides a cryptographically verifiable mechanism for authenticating a binding of an entity\u2019s public-key with its identity, presented in a tamper-proof digital certificate. This often serves as a foundational building block for achieving different security guarantees in many critical applications and protocols (\n                    <jats:italic toggle=\"yes\">e.g.<\/jats:italic>\n                    , SSL\/TLS). Identities in the context of X.509 PKI are often captured as names, which are encoded in certificates as composite records with different optional fields that can store various types of string values (\n                    <jats:italic toggle=\"yes\">e.g.<\/jats:italic>\n                    , ASCII, UTF8). Although such flexibility allows for the support of diverse name types (\n                    <jats:italic toggle=\"yes\">e.g.<\/jats:italic>\n                    , IP addresses, DNS names) and application scenarios, it imposes on library developers obligations to enforce unnecessarily convoluted requirements. Bugs in enforcing these requirements can lead to potential interoperability and performance issues, and might open doors to impersonation attacks. This paper focuses on analyzing how open-source libraries enforce the constraints regarding the formatting, encoding, and processing of complex name structures on X.509 certificate chains, for the purpose of establishing identities. Our analysis reveals that a portfolio of simplistic testing approaches can expose blatant violations of the requirements in widely used open-source libraries. Although there is a substantial amount of prior work that focused on testing the overall certificate chain validation process of X.509 libraries, the identified violations have escaped their scrutiny. To make matters worse, we observe that almost all the analyzed libraries completely ignore certain pre-processing steps prescribed by the standard. This begs the question of whether it is beneficial to have a standard so flexible but complex that none of the implementations can faithfully adhere to it. With our test results, we argue in the negative, and explain how simpler alternatives (\n                    <jats:italic toggle=\"yes\">e.g.<\/jats:italic>\n                    , other forms of identifiers such as Authority and Subject Key Identifiers) can be used to enforce similar constraints with no loss of security.\n                  <\/jats:p>","DOI":"10.1145\/3715785","type":"journal-article","created":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T11:15:34Z","timestamp":1750331734000},"page":"1454-1474","source":"Crossref","is-referenced-by-count":1,"title":["On the Unnecessary Complexity of Names in X.509 and Their Impact on Implementations"],"prefix":"10.1145","volume":"2","author":[{"ORCID":"https:\/\/orcid.org\/0009-0007-6961-275X","authenticated-orcid":false,"given":"Yuteng","family":"Sun","sequence":"first","affiliation":[{"name":"The Chinese University of Hong Kong, Sha Tin, Hong Kong"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5817-2786","authenticated-orcid":false,"given":"Joyanta","family":"Debnath","sequence":"additional","affiliation":[{"name":"Stony Brook University, Stony Brook, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0007-0984-1665","authenticated-orcid":false,"given":"Wenzheng","family":"Hong","sequence":"additional","affiliation":[{"name":"Independent, Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1356-6279","authenticated-orcid":false,"given":"Omar","family":"Chowdhury","sequence":"additional","affiliation":[{"name":"Stony Brook University, Stony Brook, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9300-0808","authenticated-orcid":false,"given":"Sze Yiu","family":"Chau","sequence":"additional","affiliation":[{"name":"The Chinese University of Hong Kong, Sha Tin, Hong Kong"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,6,19]]},"reference":[{"key":"e_1_3_1_2_2","unstructured":"Jonathan Birch. 2019. Host\/Split: Exploitable Antipatterns in Unicode Normalization. Black Hat USA 2019 (2019) 1\u201330. https:\/\/www.blackhat.com\/us-19\/briefings\/schedule\/#hostsplit-exploitable-antipatterns-in-unicode-normalization-16145"},{"key":"e_1_3_1_3_2","doi-asserted-by":"publisher","unstructured":"Sharon Boeyen Stefan Santesson Tim Polk Russ Housley Stephen Farrell and David Cooper. 2008. Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile. RFC 5280. doi:10.17487\/RFC5280","DOI":"10.17487\/RFC5280"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","unstructured":"Robert T. Braden. 1989. Requirements for Internet Hosts - Application and Support. RFC 1123. doi:10.17487\/RFC1123","DOI":"10.17487\/RFC1123"},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2014.15"},{"key":"e_1_3_1_6_2","first-page":"209","volume-title":"OSDI","author":"Cadar Cristian","year":"2008","unstructured":"Cristian Cadar, Daniel Dunbar, Dawson R Engler, et al. 2008. Klee: unassisted and automatic generation of high-coverage tests for complex systems programs. In OSDI, Vol. 8. USENIX Association, 209\u2013224."},{"key":"e_1_3_1_7_2","unstructured":"Censys. 2024. Censys Dataset. Website. https:\/\/censys.com\/"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2017.40"},{"key":"e_1_3_1_9_2","volume-title":"Network and Distributed Systems Security (NDSS) Symposium 2019","author":"Chau Sze Yiu","year":"2019","unstructured":"Sze Yiu Chau, Moosa Yahyazadeh, Omar Chowdhury, Aniket Kate, and Ninghui Li. 2019. Analyzing semantic correctness with symbolic execution: A case study on pkcs# 1 v1. 5 signature verification. In Network and Distributed Systems Security (NDSS) Symposium 2019. The Internet Society, San Diego, CA."},{"key":"e_1_3_1_10_2","doi-asserted-by":"crossref","unstructured":"Chu Chen Pinghong Ren Zhenhua Duan Cong Tian Xu Lu and Bin Yu. 2023. SBDT: Search-Based Differential Testing of Certificate Parsers in SSL\/TLS Implementations. In Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis. 967\u2013979.","DOI":"10.1145\/3597926.3598110"},{"key":"e_1_3_1_11_2","doi-asserted-by":"publisher","unstructured":"Chu Chen Cong Tian Zhenhua Duan and Liang Zhao. 2018. RFC-Directed Differential Testing of Certificate Validation in SSL\/TLS Implementations. In 2018 IEEE\/ACM 40th International Conference on Software Engineering (ICSE). 859\u2013870. doi:10.1145\/3180155.3180226","DOI":"10.1145\/3180155.3180226"},{"key":"e_1_3_1_12_2","doi-asserted-by":"crossref","unstructured":"Yuting Chen and Zhendong Su. 2015. Guided differential testing of certificate validation in SSL\/TLS implementations. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering. 793\u2013804.","DOI":"10.1145\/2786805.2786835"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","unstructured":"Adam M. Costello. 2003. Punycode: A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA). RFC 3492. doi:10.17487\/RFC3492","DOI":"10.17487\/RFC3492"},{"key":"e_1_3_1_14_2","unstructured":"CVE-2022-3602. 2022. CVE-2022-3602. https:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2022-3602."},{"key":"e_1_3_1_15_2","unstructured":"cve 2023-0286. 2023. cve-2023-0286. https:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2023-0286."},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/3460120.3484793"},{"key":"e_1_3_1_17_2","first-page":"200","volume-title":"2024 IEEE Symposium on Security and Privacy (SP)","author":"Debnath Joyanta","year":"2024","unstructured":"Joyanta Debnath, Christa Jenkins, Yuteng Sun, Sze Yiu Chau, and Omar Chowdhury. 2024. ARMOR: A Formally Verified Implementation of X. 509 Certificate Chain Validation. In 2024 IEEE Symposium on Security and Privacy (SP). IEEE Computer Society, 200\u2013200."},{"key":"e_1_3_1_18_2","unstructured":"eerimoq. 2023. asn1tools. https:\/\/github.com\/eerimoq\/asn1tools."},{"key":"e_1_3_1_19_2","doi-asserted-by":"crossref","unstructured":"Sascha Fahl Marian Harbach Thomas Muders Lars Baumg\u00e4rtner Bernd Freisleben and Matthew Smith. 2012. Why Eve and Mallory love Android: An analysis of Android SSL (in) security. In Proceedings of the 2012 ACM conference on Computer and communications security. 50\u201361.","DOI":"10.1145\/2382196.2382205"},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","DOI":"10.1145\/2382196.2382204"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","unstructured":"P. Hoffman and M. Blanchet. 2002. Preparation of Internationalized Strings (\u201cstringprep\u201d). RFC 3454 (Proposed Standard). doi:10.17487\/RFC3454","DOI":"10.17487\/RFC3454"},{"key":"e_1_3_1_22_2","unstructured":"UK Statutory Instruments. 2015. The Company Limited Liability Partnership and Business (Names and Trading Disclosures) Regulations 2015. https:\/\/www.legislation.gov.uk\/uksi\/2015\/17\/regulation\/2."},{"key":"e_1_3_1_23_2","unstructured":"UK Statutory Instruments. 2015. SCHEDULE 1 The Company Limited Liability Partnership and Business (Names and Trading Disclosures) Regulations 2015. https:\/\/www.legislation.gov.uk\/uksi\/2015\/17\/schedule\/1."},{"key":"e_1_3_1_24_2","unstructured":"ITU-T. 2019. https:\/\/www.itu.int\/rec\/T-REC-X.520-201910-I\/en."},{"key":"e_1_3_1_25_2","unstructured":"Ulrich K\u00fchn Andrei Pyshkin Erik Tews and Ralf-Philipp Weinmann. 2008. Variants of Bleichenbacher\u2019s Low-Exponent Attack on PKCS#1 RSA Signatures. In Sicherheit 2008: Sicherheit Schutz und Zuverl\u00e4ssigkeit. Konferenzband der 4. Jahrestagung des Fachbereichs Sicherheit der Gesellschaft f\u00fcr Informatik e.V. (GI) 2.-4. April 2008 im Saarbr\u00fccker Schloss."},{"key":"e_1_3_1_26_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2018.00015"},{"key":"e_1_3_1_27_2","unstructured":"Zane Ma Joshua Mason Sarvar Patel Manos Antonakakis Mariana Raykova Zakir Durumeric Phillipp Schoppmann Michael Bailey Karn Seth Sascha Fahl et al. 2021. What\u2019s in a Name? Exploring {CA} Certificate Control. In 30th USENIX Security Symposium (USENIX Security 21). 4383\u20134400."},{"key":"e_1_3_1_28_2","doi-asserted-by":"crossref","unstructured":"Lili Quan Qianyu Guo Hongxu Chen Xiaofei Xie Xiaohong Li Yang Liu and Jing Hu. 2020. SADT: syntax- aware differential testing of certificate validation in SSL\/TLS implementations. In Proceedings of the 35th IEEE\/ACM International Conference on Automated Software Engineering. 524\u2013535.","DOI":"10.1145\/3324884.3416552"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","unstructured":"E. Rescorla. 2000. HTTP Over TLS. RFC 2818 (Informational). doi:10.17487\/RFC2818 Updated by RFCs 5785 7230.","DOI":"10.17487\/RFC2818"},{"key":"e_1_3_1_30_2","doi-asserted-by":"publisher","unstructured":"Peter Saint-Andre and Marc Blanchet. 2017. PRECIS Framework: Preparation Enforcement and Comparison of Internationalized Strings in Application Protocols. RFC 8264. doi:10.17487\/RFC8264","DOI":"10.17487\/RFC8264"},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","unstructured":"P. Saint-Andre and J. Hodges. 2011. Representation and Verification of Domain-Based Application Service Identity within Internet Public Key Infrastructure Using X.509 (PKIX) Certificates in the Context of Transport Layer Security (TLS). RFC 6125 (Proposed Standard). doi:10.17487\/RFC6125","DOI":"10.17487\/RFC6125"},{"key":"e_1_3_1_32_2","unstructured":"Jim Schaad. 2020. CBOR Object Signing and Encryption (COSE): Header parameters for carrying and referencing X.509 certificates. Internet-Draft draft-ietf-cose-x509-08. Internet Engineering Task Force. https:\/\/datatracker.ietf.org\/doc\/draft-ietf-cose-x509\/08\/ Work in Progress."},{"key":"e_1_3_1_33_2","doi-asserted-by":"crossref","first-page":"521","DOI":"10.1109\/SP.2017.46","volume-title":"2017 IEEE Symposium on Security and Privacy (SP)","author":"Sivakorn Suphannee","year":"2017","unstructured":"Suphannee Sivakorn, George Argyros, Kexin Pei, Angelos D Keromytis, and Suman Jana. 2017. \u210d\ud835\udd4dLearn: Automated black-box analysis of hostname verification in SSL\/TLS implementations. In 2017 IEEE Symposium on Security and Privacy (SP). IEEE, IEEE, San Jose, CA, USA, 521\u2013538."},{"issue":"4","key":"e_1_3_1_34_2","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3355048","article-title":"Differential testing of certificate validation in SSL\/TLS implementations: an RFC-guided approach","volume":"28","author":"Tian Cong","year":"2019","unstructured":"Cong Tian, Chu Chen, Zhenhua Duan, and Liang Zhao. 2019. Differential testing of certificate validation in SSL\/TLS implementations: an RFC-guided approach. ACM Transactions on Software Engineering and Methodology (TOSEM) 28, 4 (2019), 1\u201337.","journal-title":"ACM Transactions on Software Engineering and Methodology (TOSEM)"},{"key":"e_1_3_1_35_2","unstructured":"Ka Lok Wu Man Hong Hue Ngai Man Poon Kin Man Leung Wai Yin Po Kin Ting Wong Sze Ho Hui and Sze Yiu Chau. 2023. Back to School: On the (In) Security of Academic VPNs. In 32nd USENIX Security Symposium (USENIX Security 23). 5737\u20135754."},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","DOI":"10.1145\/3558482.3590199"},{"key":"e_1_3_1_37_2","doi-asserted-by":"crossref","unstructured":"Moosa Yahyazadeh Sze Yiu Chau Li Li Man Hong Hue Joyanta Debnath Sheung Chiu Ip Chun Ngai Li Endadul Hoque and Omar Chowdhury. 2021. Morpheus: Bringing The (PKCS) One To Meet the Oracle. In Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security. 2474\u20132496.","DOI":"10.1145\/3460120.3485382"},{"key":"e_1_3_1_38_2","doi-asserted-by":"publisher","unstructured":"K. Zeilenga. 2006. Lightweight Directory Access Protocol (LDAP): Internationalized String Preparation. RFC 4518 (Proposed Standard). doi:10.17487\/RFC4518","DOI":"10.17487\/RFC4518"}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3715785","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,23]],"date-time":"2026-08-23T10:58:14Z","timestamp":1787482694000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3715785"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,19]]},"references-count":37,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2025,6,19]]}},"alternative-id":["10.1145\/3715785"],"URL":"https:\/\/doi.org\/10.1145\/3715785","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,19]]}}}