Ticket #132 (new defect)

Opened 5 years ago

Last modified 4 years ago

DB resources is vulnerable to (H)SQL injection

Reported by: bruno Owned by: jgou
Priority: major Milestone: 0.5
Component: modules/kauri-dbresources Version: trunk
Keywords: Cc:

Description

DB resources builds queries by injecting parts from the URI into them, unescaped.

See for example this code in JpaUtils?:

where.append(select.toString() + ".id = ");
where.append(segment.isVariable() ? attributes.get(segment.getName()) : segment.getName());

There is some sort of a protection though because of issue #131.

Change History

comment:1 Changed 4 years ago by mpo

  • Milestone changed from 0.3 to 0.5

there is a plan to address some extra features in dbresources post 0.4
see http://kauriproject.org/wiki/g2/319-kauri.html

Note: See TracTickets for help on using tickets.