mirror of
https://github.com/itflow-org/itflow
synced 2026-03-12 16:54:51 +00:00
Add CSRF Checks on Agent ajax endpoints that would update / delete or add something to the db
This commit is contained in:
@@ -408,6 +408,7 @@ ob_start();
|
||||
"ajax.php",
|
||||
{
|
||||
asset_set_notes: 'TRUE',
|
||||
csrf_token: '<?= $_SESSION['csrf_token'] ?>',
|
||||
asset_id: asset_id,
|
||||
notes: notes
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<form action="ajax.php" method="GET" id="newShareLink">
|
||||
<input type="hidden" name="csrf_token" id="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||
<input type="hidden" name="client_id" id="share_client_id" value="">
|
||||
<input type="hidden" name="item_type" id="share_item_type" value="">
|
||||
<input type="hidden" name="item_ref_id" id="share_item_ref_id" value="">
|
||||
|
||||
Reference in New Issue
Block a user