Skip to content

Empty location property for network taint operations #321

@eleumasc

Description

@eleumasc

The location property is empty for the fetch.text(), fetch.json(), and WebSocket.MessageEvent.data taint operations.

Expected

{
  "operation": "fetch.text()",
  "builtin": true,
  "source": true,
  "location": {
    "filename": "https://example.org/script.js",
    "function": "f",
    "line": 1,
    "pos": 15,
    "scriptline": 1,
    "scripthash": "35a4393d72afbf6d792d3b0e46f465b6"
  },
  "arguments": []
}

Actual

{
  "operation": "fetch.text()",
  "builtin": true,
  "source": true,
  "location": {
    "filename": "",
    "function": "",
    "line": 0,
    "pos": 0,
    "scriptline": 0,
    "scripthash": "00000000000000000000000000000000"
  },
  "arguments": []
}

Likely related, in some instances of XMLHttpRequest.response taint operations, the location property is empty and the builtin property is false (it should be true).

Example

{
  "operation": "XMLHttpRequest.response",
  "builtin": false,
  "source": true,
  "location": {
    "filename": "",
    "function": "",
    "line": 0,
    "pos": 0,
    "scriptline": 0,
    "scripthash": "00000000000000000000000000000000"
  },
  "arguments": []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions