Papers for

java backend developers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Java tool prevents unauthorized database access by rewriting SQL commands

IDORacle: Template-Guided SQL-Sink Mediation for Object-Level Authorization in Java Applications

Abstract: Insecure Direct Object Reference (IDOR), often modeled as Broken Object-Level Authorization (BOLA), remains prevalent in Java database applications because identity and authorization checks at the controller or service layer are disconnected from SQL execution based on resource identifiers. Existing work largely detects these vulnerabilities but offers limited low-intrusion runtime protection for legacy Java-SQL applications. We present IDORacle, a template-guided SQL-sink interception and rewriting framework for preventing horizontal privilege escalation at runtime. IDORacle propagates authenticated identity context across HTTP requests, asynchronous tasks, and data-access boundaries through a server-side trace identifier. At the MyBatis/JDBC boundary, it extracts SQL templates, computes dual fingerprints, and performs one-time template analysis to generate reusable mediation plans. During execution, it combines subject context, SQL ASTs, table metadata, and cached authorization proofs to permit, rewrite, or block operations. Its guard model supports direct ownership predicates, join-derived ownership, probes for group-owned resources, role-sensitive state transitions, and sensitive-column mediation. A Java-SQL benchmark grounded in real-world CVE reports shows that IDORacle prevents the tested horizontal authorization violations with a worst-case guard latency of 0.17 ms. Redundancy-aware optimization reduces average per-instance overhead by more than 90%, to 0.017 ms for hot SQL templates.

Fri 11 SeptCryptography and Security
The gist
Web applications often make mistakes that let users access data they shouldn't see, a problem known as broken object-level authorization. The authors created IDORacle, a tool that watches and changes database commands on the fly to stop users from accessing data they don’t own or shouldn’t see. It tracks who is making requests and checks the data queries to allow, rewrite, or block them as needed. This helps keep Java applications safer without needing big changes to existing code.
Open 2609.12426v1